TOP /すぐに使えるJavaScript スタイルシートを切り替えるU(Cookie)
<link id="sheet"rel="stylesheet" type="text/css" href="001.css">
<form name="cssform">
<select name="select1">
<option value="001.css">blue</option>
<option value="002.css">magenta</option>
<option value="004.css">lime</option>
<option value="003.css">gray</option>
</select>
<input class="but"type="button" value="stylesheet" onClick="changecss(this.form.select1.value)">
</form>
<script type="text/javascript"><!--
cookie_name="css_cookie";
cookie_day=1;            //保存日数
//------------------------------------------------
 theCookie=document.cookie+";";
 start=theCookie.indexOf(cookie_name+"=");
if(start !=-1){
  end=theCookie.indexOf(";",start);
  css=unescape(theCookie.substring(start+cookie_name.length+1,end));
document.getElementById("sheet").href = css;
for ( i = 0; i < document.cssform.select1.options.length; i++) {
    if(document.cssform.select1.options[i].value==css){
document.cssform.select1.options[i].selected =true;
break;
}}
}
function changecss(css){
  document.getElementById("sheet").href = css;
setDay=new Date();
setDay.setTime(setDay.getTime()+(cookie_day*1000*60*60*24));
document.cookie=cookie_name+"="+escape(css)+";expires="+setDay.toGMTString();
}/* himajin.moo.jp */
//--></script>