CSS color scheme switching - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CSS color scheme switching (/showthread.php?tid=3887) Pages:
1
2
|
CSS color scheme switching - El Forum - 10-29-2007 [eluser]xwero[/eluser] [quote author="BoltClock" date="1193654390"]So far I've had no luck in using the DOM to alter the href attribute for my color scheme <link />. The solutions that I found all need me to load all stylesheets in the page head.[/quote] I have looked at the same javascript functions as you i guess but i found one where the use the window reload function. I haven't tried it myself but it looks like something that should work but as i said in my previous answer you need to set the cookie value. If i have the time this evening i will try to make a working demo. CSS color scheme switching - El Forum - 10-30-2007 [eluser]xwero[/eluser] Code: $(function(){ I'm using the cookie plugin. ps : no page refresh needed update : html Code: <html> CSS color scheme switching - El Forum - 10-30-2007 [eluser]BoltClock[/eluser] I tried that, and it works wonders. Thanks xwero! CSS color scheme switching - El Forum - 10-31-2007 [eluser]xwero[/eluser] I made it into a fullblown jquery plugin you can get here |