PDA

View Full Version : 'Calling up' an alternative style sheet


Rob_Che
11-25-2008, 11:23 AM
Hi all...
I'm after a 'hint'...
I want a user to be able to click a button and for it to 'call up'
(for want of a better phrase) a new style sheet.

What's the process ? I guess there's a Javascript solution but
would like a pure CSS technique if there is one...

As I say - I'd like to work it out myself but need a point in the
right direction...

Cheers
Rob

domedia
11-25-2008, 02:07 PM
It's a dynamic feature, so CSS cannot do it.
Use the DOM. If you don't want the answer, Google should be able to help out :)

d a v e
11-25-2008, 03:55 PM
try this
http://www.alistapart.com/articles/alternate/

coloeagle
11-25-2008, 09:43 PM
HI Rob,

Will a php script work for you? I have a script that I use on my sites. Short and simple. You can check it out at http://www.providerofchoice.net/accessibility.html

edbr
11-26-2008, 01:42 AM
if you had your stylesheet link as ....="<?php echo $_post['form_value'] :?> (for example) then used a form with values you choose, in this case different name and rename that value as stylesheet that should work i think

Rob_Che
11-26-2008, 12:11 PM
Thanks everyone... PHP is next on my 'list'... ask DJ. I'll be a pro by Christmas.

HI Rob, Will a php script work for you? I have a script that I use on my sites. Short and simple. You can check it out at http://www.providerofchoice.net/accessibility.html

Cheers coloeagle, that's what I need to do except it will just be 'for fun' - changing just a few images / link colors...

I'll look at all the solutions and see what suits...

Cheers guys... I'll keep you posted !
Rob