Under IE you can use createStyleSheet() and cssText:

  var s = document.createStyleSheet().cssText = '.something { color: red }';

More info can be found here:

  http://www.quirksmode.org/dom/changess.html

Karl

On 2/23/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
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to