> I'm pretty sure this is bass-ackwards, but I need to be able to over-ride an > embedded stylesheet with an external one, if the external one exists. I was > thinking it might be possible to do using javascript something like this... > > The embedded stylesheet would be included in the js code. On page load, the > script checks to see if the external stylesheet exists and then either writes > it or the included one to the page's <head>. > > Anybody have any experience with / thoughts about the viability of this > approach? Happy to explain more about the problem / constraints if desired.
Not in CSS, so that is off-topic. However, I don't see it as a big problem. On the server side try to fetch the stylesheet and if the result is zilch just write out the local one. You could even do it in AJAX, but that is a bit pointless as you need a server side component anyways (as AJAX cannot reach files outside the same domain). -- Chris Heilmann Blog: http://www.wait-till-i.com Writing: http://icant.co.uk/ Binaries: http://www.onlinetools.org/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
