SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: CSS Style switcher
-
Mar 22, 2008, 04:42 #1
- Join Date
- Aug 2006
- Posts
- 375
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
CSS Style switcher
I'm just trying to implement this for the first time, and as far as I can tell have it set up so that it should work, but doesn't seem to be, so I guess I must be doing something wrong somewhere.
The page is here :
link here
So I've uploaded the styleswicher.js file, linked to it in my header, along with two style sheets to try it out :
HTML Code:<link rel="stylesheet" type="text/css" href="standard.css" title="default"/> <link rel="alternate stylesheet" type="text/css" href="medium.css" title="medium" /> <script type="text/javascript" src="/scripts/styleswitcher.js"></script>
HTML Code:<a href="#" onclick="setActiveStyleSheet(’default’); return false;"><img src="smalla.jpg" alt="View this website in standard text size" border="0" align="absbottom"></a> <a href="#" onclick="setActiveStyleSheet('medium'); return false;"><img src="mediuma.jpg" alt="View this website in medium text size" border="0" align="absbottom"></a>
Cheers.
-
Mar 22, 2008, 09:02 #2
- Join Date
- Sep 2006
- Posts
- 731
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bookmarks