Guest sharkbaitbobby Posted February 9, 2006 Share Posted February 9, 2006 Ok, so today i got this code: <html><head><title>skin</title><link id="foo" rel="StyleSheet" href="skin1.css" type="text/css"><script type="text/javascript"><!--function skinch() { skinid=document.forms[0][0].options[document.forms[0][0].selectedIndex].value; document.getElementById('foo').href=skinid; }//--></script></head><body onLoad="skinch()"><form action="#"><div><select onclick="skinch()" class=select><option value="skin1.css" style="background-color:011340;color:beaded;">1</option><option value="skin2.css" style="background-color:008000;color:ffffff;">2</option><option value="skin3.css" style="background-color:e5ecf9;color:000000;">3</option></select><input type="button" value="»" onclick="skinch()" class="go"></div></form></body></html> now how do I add a cookie that keeps it the same whenever the visitor changes it and goes to another page, and even if the visitor closes out of it? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now