FirstGateDreamer
08-15-2008, 08:58 PM
I'm using a different example than the style switcher used in PixelPost but this shouldn't matter and I imagine this should be able to work with any kind of alternate stylesheet using js. I would use another example but I'm afraid it would eventually become unstable.
I want to have other pages link to my page but I want some users to automatically get a specific stylesheet.
For example the Dynamic Drive site has a page on Stylesheet switcher
http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
the link on their page that does the swap is
<a href="javascript:chooseStyle('blue-theme', 30)">blue theme</a>
how do I create a link on an external page to this page but using the blue theme stylesheet. I want to keep it simple and hopefully from in an a href tag without making any modifications to their page or having to add all kinds of js on my page.
Where/how do I pass the values/parameters to choose their blue theme in my code on one of my pages? Is there a way to add to the href http kinda like an anchor?
Is there another way to do this instead of using the JS values/parameters but to somehow make the link reference the stylesheet?
It must be possible? Am I dreaming?
I've spent hours looking for an answer but found nothing yet.
I want to have other pages link to my page but I want some users to automatically get a specific stylesheet.
For example the Dynamic Drive site has a page on Stylesheet switcher
http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
the link on their page that does the swap is
<a href="javascript:chooseStyle('blue-theme', 30)">blue theme</a>
how do I create a link on an external page to this page but using the blue theme stylesheet. I want to keep it simple and hopefully from in an a href tag without making any modifications to their page or having to add all kinds of js on my page.
Where/how do I pass the values/parameters to choose their blue theme in my code on one of my pages? Is there a way to add to the href http kinda like an anchor?
Is there another way to do this instead of using the JS values/parameters but to somehow make the link reference the stylesheet?
It must be possible? Am I dreaming?
I've spent hours looking for an answer but found nothing yet.