JimO wrote:
Just curious if there is a way to link style sheets on the fly without
having to load two separate versions of a page.
AFAIK There are at least two ways to do this.
1.)To select a stylesheet per-pageload (session) use document.write()
outside of a function so that it will write as the page is being created
and simply output a string with your '<link rel="stylesheet"
href="'+foo+'" type="text/css">'
2.)To select multiple stylesheets per session
load the files via XMLHTTP , parse them into an MyCSS object and
overwrite the existing CSS memory object's values with those
of the MyCSS object.
NOTE: For Opera support I think one would have to apply the values
of MyCSS individually to the html elements, as the reason I wrote
such code is that Opera's javascript can't *see* CSS stylesheets
--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML/CSS,Javascript,TCP ...
--`