50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
z_nv=null;
|
|
z_th=new Array()
|
|
z_th[0]='HackTV Light'
|
|
z_th[1]='WebTV Dark'
|
|
z_th[2]='Avegee Red'
|
|
z_th[3]='Pumpkin Orange'
|
|
z_th[4]='WinXP Tan'
|
|
z_th[5]='Ryder Green'
|
|
z_th[6]='SKCro Blue'
|
|
z_th[7]='Win95 Teal'
|
|
z_th[8]='zefie Purple'
|
|
z_th[9]='MattMan Brown'
|
|
z_th[10]='Paper White'
|
|
z_th[11]='Halloween Black'
|
|
|
|
z_def=new Array()
|
|
z_def[0]=0//theme
|
|
|
|
chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@-"//64 possible different values
|
|
function gTN(th){return z_th[parseInt(th)]}
|
|
function gB(nv,off){
|
|
b=nv.charAt(off)
|
|
if(b){return chars.indexOf(b)}
|
|
else{return -1}
|
|
}
|
|
function sB(nv,off,dat){
|
|
prefix=''
|
|
if(off > 0){prefix=nv.substring(0,off)}
|
|
if(off>prefix.length){while(off!=prefix.length){prefix+='.'}}
|
|
dat=chars.charAt(parseInt(dat));
|
|
z_url='client:ConfirmBYOISPSetup?BYOISPProviderName='+prefix+dat+nv.substring(off+1)
|
|
go(z_url)
|
|
}
|
|
function gV(nv,off){
|
|
z_len=0
|
|
switch(off){
|
|
case 0:z_len=z_th.length
|
|
break
|
|
case 1:z_len=z_bgm.length
|
|
break
|
|
}
|
|
z_val=gB(nv,off)
|
|
if(z_val<0||z_val>=z_len){return parseInt(z_def[off])}
|
|
return parseInt(z_val)
|
|
}
|
|
function pp(){
|
|
d.write('<form name=z><input type=hidden name=h value=&pname;></form>')
|
|
z_nv=d.z.h.value
|
|
return parseInt(gV(z_nv,0))//theme
|
|
} |