[jQuery] Thickbox CSS - Including in Thickbox.js?

[jQuery] Thickbox CSS - Including in Thickbox.js?


Hi all,
Here is a question I have, and perhaps this is doable (I can't see why not),
but why don't the *box scripts like Thickbox, Lightbox, etc, just write the
CSS in the Javascript file, and eliminate the need to include a CSS file (or
it's contents in your CSS)?
For instance, I know Safari has issues appending child elements to the head,
but scriptaculous just does a simple document.write to brute-force the
script in there. Why not with style elements?
Perhaps there is some issue I am not seeing, but couldn't this be fairly
easily done?
The project I am working on is rather large, and editing the CSS file is a
bit of a pain, so I was wondering if it would be easier to just do this in
the JS?
IMO, there appear to be two ways to do this:
document.write the styles in the head between two style tags, OR use jQuery
to add the CSS styles to the elements each.
Any thoughts before I give this a go? I don't want to waste an hour doing
something if someone else has tried it and found it impossible.
Thanks guys,
--
View this message in context: http://www.nabble.com/Thickbox-CSS---Including-in-Thickbox.js--tf3022867.html#a8396709
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/