Execute JavaScript from CSS -
Execute JavaScript from CSS -
part of html page.
<head> <title>overview</title> <link href="mystyle.css" rel=stylesheet type="text/css">
i know it's unusual question, possible add together javascript code mystyle.css ?
edit1: html generated 3rd party software have no command on it. css file static , not alter (i thought add together javascript executed css file). in other words can add together mystyle.css
//css declaration... <script src="myjs.js">
it possible in limited ways - see using javascript in css . can write out css rules via javascript: http://davidwalsh.name/add-rules-stylesheets . or can create 2 different css classes , apply them elements via javascript, e.g. jquery's http://api.jquery.com/addclass/ or native javascript equivalent.
i'm guessing want utilize variables within css don't have repeat css in several different places? of techniques, if take guess @ help accomplish want in way won't regret later, recommend css preprocessor http://lesscss.org/
javascript css
Comments
Post a Comment