Thanks!
Sam Collett wrote: > > On 23/02/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote: >> well, you can append to the head, example: >> http://ov-staging.informationexperts.com/e.htm >> >> <script type="text/javascript"> >> $(document).ready(function(){ >> $('head').append('<style>body{background:#000;}</style>'); >> }); >> </script> >> >> This does not work in the IEs tho (6, 7), but I am sure something like >> that >> is possible with some tweak. It does work in opera 9 and ff2 >> >> >> -- >> Benjamin Sterling >> http://www.KenzoMedia.com >> http://www.KenzoHosting.com > > I have a function that does that (although it has not been tested in Opera > 9): > http://webdevel.blogspot.com/2006/06/create-css-class-javascript.html > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/How-can-I-create-a-%28style%29-.class-dynamically--tf3276875.html#a9121620 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
