Cascading Style Sheets or JavaScript Sheets

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Cascading Style Sheets

CSS - Short for Cascading Style Sheets, a new feature being added to that gives both developers and more control over how are displayed. With CSS, designers and users can create that define how different elements, such as headers and links, appear.

1) Copy the following from <STYLE to </STYLE>

<STYLE TYPE-"type/css">


BODY {background: #CCCCCC}
A:link {color: #FF0000; text-decoration: none; font-variant: normal; text-transform: none}
A:visited {color: #FF9933; text-decoration: none}
BODY {background-image: url(http://www.bsjp.co.uk/files/greyspec.gif); }
BODY{background-attachment: fixed}


</STYLE>

2) Highlight all the .html coding in a new document and paste your code in

3) Save the file with the name background and as a file type .CSS

4) Open a new file and save it with the name test and make sure it is a .htm or .html file

5) Above the </Head> paste <LINK REL=stylesheet HREF="HERE_HERE_HERE" TYPE="text/css">

6) Highlight the HERE_HERE_HERE hit delete. Refresh. Locate the background file

 

CSS Tutorials - http://www.htmlgoodies.com/beyond/css.html

Back to top

 

 

 

 

 

 

 

 

 

 

 

 

 

 

JavaScript Sheets

 

1) Copy the following from <!-- to // -->

<!--
function click() {
if (event.button==2) {
alert('Please, do not save the pictures');
}
}
document.onmousedown=click
// -->

2) Highlight all the .html coding in a new document and paste your code in

3) Save the file with the name dontsave and as a file type .JS

2) Open the file names test

4) Below the </Head> paste

<SCRIPT SRC="HERE_HERE_HERE">
</SCRIPT>

5) Highlight the HERE_HERE_HERE hit delete. Refresh. Locate the dontsave file.

 

JavaScript tutorials - http://www.htmlgoodies.com/beyond/js.html

For JavaScript codes, visit http://javascript.internet.com

Back to top