/* ver 2.1 -2001/8/9- */ BaseAddress="/~tukimi/"; SheetFolder="http://127.0.0.1/~tukimi/hello5/style/"; BaseSheet="base"; Deadline="Fri, 31-Dec-2001 23:59:59;" SheetNumber=3; SheetFile=new Array(SheetNumber); SheetFile[0]="cornflowerblue"; SheetFile[1]="black"; SheetFile[2]="no-style"; if(!window.navigator.onLine) { BaseAddress="file:///C:/www/tukimi/public_html/hello/"; SheetFolder="file:///C:/www/tukimi/public_html/hello/style/" }; SheetSelected=document.cookie.split("="); StyleTagStart=''; function ChangeSheet() { SheetSelect=document.Change.StyleSelect.selectedIndex; SheetName=document.Change.StyleSelect.options[SheetSelect].value; document.cookie="Nunber="+SheetName+";expires="+Deadline+";path="+BaseAddress+";"; top.location.reload(); }; if(SheetSelected[1] != SheetFile[2] || document.cookie == "") { NoStyleExcept(); }; function NoStyleExcept() { if(document.cookie == "") { document.write(StyleTagStart+BaseSheet+StyleTagEnd); document.write(StyleTagStart+SheetFile[0]+StyleTagEnd); }else if(SheetSelected[1] != SheetFile[2]){ document.write(StyleTagStart+BaseSheet+StyleTagEnd); document.write(StyleTagStart+SheetSelected[1]+StyleTagEnd); }; };