You are here: Technology, Web & Business Forum
: Web Development
: Design
:
I'm designing a website that has a stylesheet switcher. How do I link it to
|
Welcome to the Technology, Web & Business Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Design Talk about web design techniques and ideas in CSS, HTML, etc.
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|||
other pages of the website? Here is the coding for the switcher.
<html><head><title>Style Switcher</title> <script> var StyleFile = "style" + document.cookie.charAt(6) + ".css"; document.writeln('<link rel="stylesheet" type="text/css" href="' + StyleFile + '">'); </script> </head><body><h2>Live in Style</h2><br> <a href="javascript: document.cookie='style='; window.location.reload();">Style 1</a> | <a href="javascript: document.cookie='style=2'; window.location.reload();">Style 2</a> | <a href="javascript: document.cookie='style=3'; window.location.reload();">Style 3</a> </body></html> It works fine on the home page but how do I code for the link rel="stylesheet" type="text/css" href="...... " to use the stylesheet throughout the website?
__________________
Powered by Yahoo! Answers |



Linear Mode
