corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » HTML Help » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

Doug

posted on 20th Mar 06 at 20:43

Managed to get it sorted using a cookie to store the choice :D


James

posted on 20th Mar 06 at 15:57

javascript :thumbs:

Do a google for dynamically changing style sheets

[Edited on 20-03-2006 by James]


Doug

Icon depicting mood of post posted on 20th Mar 06 at 15:33

Hi,

Im trying to create a page that has a drop down menu where the user can select what style sheet they want to use....

Now I can cant the style sheet to change when its selected.

Here is the code im using:

<div style="text-align: center">
<p>
This section of the website allows you to change the colour scheme of the website. Please select which colour scheme you prefer.
Please note that your choice will be stored as a cookie on your computer so the site will remember your choice for future visits
</p>

<form name="csschoice">
<div align="center">
<select name="mydropdown">
<option value="kk.css">Style 1</option>
<option value="kk2.css">Style 2</option>
</select>
<input type="button" Value= "change style">
</div>
</form>


So what do I need to do?!
Also how would I store the users choice as a cooie on their computer?

Many many many thanks in advance for anyone who can help me here!