Click to See Complete Forum and Search --> : Main Stylesheet & Java Script


DanV
06-14-2005, 01:01 PM
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.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 You

timboyk12
06-14-2005, 01:31 PM
No 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=""> and it will work like it normally does. If you want to look for css menus, try dynamic drive (http://dynamicdrive.com). They have a lot of them.

DanV
06-14-2005, 09:46 PM
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