Putting JS in CSS file...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Putting JS in CSS file...

Post by Dr.CSS »

Anyone know how to call a javascript file from a CSS file?...
Pierre M.

Re: Putting JS in CSS file...

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Putting JS in CSS file...

Post 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...
Pierre M.

Re: Putting JS in CSS file...

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Putting JS in CSS file...

Post 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
Post Reply

Return to “CMSMS Core”