Main Stylesheet & Java Script

admin

Administrator
Staff member
Hi to All

This is in regard to the main stylesheet, "link rel=stylesheet.." etc.

On "HTML GOODIES" (which refers to these forums) I found the following with respect to the main stylesheet:

<LINK REL=stylesheet HREF=http://www.webdeveloper.com/forum/archive/index.php/"http://www.your.page/fred.css" TYPE="text/css">

TYPE="text/css" tells the browser that what it is reading is text that will act as a Cascading Style Sheet. If the document isn't text with a .css suffix - no dice.
___

What I'd like to do is put a java script for a menu pop-up in the main stylesheet. It's rather long and I'd prefer not to have to repeat it on each page. Does "no dice" mean it's not possible or is there a way to do this?

If so, would anyone know of a CSS way for pop-up hidden menus?

Thank YouNo you can do it. No dice just means that the specific file that link rel is related to has to be .css. You can just add in your regular <script src=http://www.webdeveloper.com/forum/archive/index.php/""> and it will work like it normally does. If you want to look for css menus, try dynamic drive (<!-- m --><a class="postlink" href="http://dynamicdrive.com">http://dynamicdrive.com</a><!-- m -->). They have a lot of them.timboyk12

Funny you should mention it since I had considered the Dynamic Drive menus.

I guess my hesitation was due to reading here and there that it wasn't wise to mix too much java with css.

Thanks

DanV
 
Back
Top