Added: September/25/2005 at 11:07pm | IP Logged
|
|
|
does anyone know how to set a cookie when the style is selected, then read the cookie on page load and set the users style that they selected and saved in the cookie.
Here in the script:
<!--#include file="header.inc"--> <% strStyle = request("style") if len(strStyle) = "0" then strStyle = "mjhs" %> <link rel="stylesheet" type="text/css" href="<%=strStyle%>.css" /> <center> Style Changer:<br> If you think that the website is "dull" with the grey, <i>you</i> can now change it!<br> Just simply click on one of the links below to change the color accordingly.<br><br> <form name="styleform" id="styleform" method="post" action="style.asp"> <select name="style" id="style" onchange="document.forms.styleform.submit();"> <option value="mjhs" <% if strStyle = "mjhs" then %> selected <% end if %>>Gray</option> <option value="tan" <% if strStyle = "tan" then %> selected <% end if %>>Tan</option> <option value="yellow" <% if strStyle = "yellow" then %> selected <% end if %>>Yellow</option> %> </select>
<Br>Note: There more colors coming available
|