Page 1 of 1
Putting JS in CSS file...
Posted: Tue Dec 12, 2006 11:16 am
by Dr.CSS
Anyone know how to call a javascript file from a CSS file?...
Re: Putting JS in CSS file...
Posted: Tue Dec 12, 2006 10:01 pm
by Pierre M.
Reading your other support posts, I'm sure you know a CSS can "import" another one.
So, what is this April 1st question ? Would you like your CSS to be dynamic ?
I mean : what for would you like your CSS depend on some JS ?
PM
Re: Putting JS in CSS file...
Posted: Tue Dec 12, 2006 11:14 pm
by Dr.CSS
I'm trying to set up a template but I don't want to put the JS call in the head, would like it to come with the CSS...
Will try the import...
Re: Putting JS in CSS file...
Posted: Tue Dec 12, 2006 11:31 pm
by Pierre M.
I'm still missing your point. "setting up a template" means (x)HTML+CSS to me, no JS.
Some need some JS in some cases to make the obsolete version of IE work... but this obsolete version doesn't support import IIRC.
And calling the JS from the header or calling the JS somewhat from the CSS from the header is quite the same, isn't it ?
PM
Re: Putting JS in CSS file...
Posted: Wed Dec 13, 2006 12:21 am
by Dr.CSS
The CSS is read diff. than a JS so I run into it not working...
I'm trying for a master template that can change styles with a click of a button, but some of them use JS for rounded corners w/o images and it will round other templates/CSS if it is in the head...
http://www.multiintech.com/index.php?page=niftycubes