loading javasctipy from css

topic posted Wed, April 2, 2008 - 5:14 PM by  michael
is it possible?

Why in gods name would i want to?

I am working within the confines of a clients annoying CMS designed by someone else who is unresponsive to my requests. So i have access to the CSS but have yet to find access to the entire header template so that I can link to js. So in thinking about workarounds is there a way to have a notation in a stylesheet to load a js file? I know you can load css with JS but what about vice versa?
posted by:
michael
San Diego
  • Re: loading javasctipy from css

    Wed, April 2, 2008 - 5:39 PM
    What CMS is it? I would look to find a module that allowed me to add stylesheets tot he head or to creating that module myself. If its got decent architecture to it you should be able to intercept the response and add things to it before its rendered. assuming you have access to source to look at or that it is one with decent documentation (Drupal, Joomla, ModX, etc..).

    However more directly... no. However you could jsut put the script tag in the page. Kinda ugly but itd work... assumign the CMS doesnt escape it hehe.

Recent topics in "Web Design"

Topic Author Replies Last Post
RoR-- is this a really bad idea? Jesse 2 Yesterday, 9:55 PM
e-commerce, ssl gertie 1 Yesterday, 9:50 PM
rss virgin david 3 Yesterday, 9:41 AM
Switching to a server tech vs. existing search engine rankings?? SMSapphire 1 July 21, 2008