PDA

View Full Version : Inserting multiple tags


Kevlar
07-22-2002, 08:34 PM
How do I insert the following:

<STYLE>
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//-->
</STYLE>

<SCRIPT SRC="ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, maximus@nsimail.com)
//Site: http://maximus.ravecore.com/
//For full source, and 100's more DHTML scripts, visit http://www.dynamicdrive.com

</SCRIPT>

<SCRIPT SRC="ssmItems.js" language="JavaScript1.2"></SCRIPT>

Into every <head> tag with the "headDef" class?

ronaldb66
07-23-2002, 11:55 AM
Huh? What do you mean exactly?

Anyway: you can include a common style sheet from an external file in various documents with:

<link rel="stylesheet" type="text/css" href="mystyle.css" />

and likewise include common scripts with:

<script src="myscripts.js">
</script>

The style sheet link has to be in the head section (somewhere in between <head> and </head>), the scripts can be either in the head section or in the body section (<body> ... </body>) depending on what's in it.
Of course, you can include multiple styles and multiple scripts this way.

(Information derived from W3Schools (http://www.w3schools.com/))

Kevlar
07-23-2002, 04:51 PM
Also, I've had some problems with CSS. When I use the embed tag or the script tag, the src attribute doesn't seem to work on other page. But attributes like width and height work.