/* --------- style.js -------*/ /* ver 2.0 -2001/7/1- */ SheetFolder="http://www.bc.wakwak.com/~cosa/style/"; BaseSheet="base"; Deadline="Fri, 31-Dec-2001 23:59:59;" Number=3 SheetFile=new Array(Number-1); SheetFile[0]="cornflowerblue"; SheetFile[1]="black"; SheetFile[2]="no-style"; StyleTagStart=''; function ChangeSheet(){ SheetSelect = document.Change.StyleSelect.selectedIndex; SheetName = document.Change.StyleSelect.options[SheetSelect].value; document.cookie="Nunber="+SheetName+";expires="+Deadline; top.location.reload(); } SheetSelected=document.cookie.split("="); if(SheetSelected[1] != SheetFile[2] || document.cookie == "undefined" || document.cookie == ""){NoStyleExcept()}; function NoStyleExcept(){ if(document.cookie == "" || document.cookie == "undefined"){ 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);} } /* --------- change.js -------*/ /* ver 2.0 -2001/7/1- */ NNVersion=""; UseAgent = navigator.userAgent; myTop = UseAgent.indexOf("MSIE",0); if (myTop == -1){ LastVer = UseAgent.indexOf(" ",myTop); NNVer = UseAgent.substring(myTop+9,LastVer-2); NNVersion=navigator.appName+NNVer } if(NNVersion != "Netscape4"){FormWrite()}; function FormWrite(){ document.write('
'); }