?? stm31.js
字號:
// Ver: 3.72
var nOP=0,nOP5=0,nIE=0,nIE4=0,nIE5=0,nNN=0,nNN4=0,nNN6=0,nMac=0,nIEM=0,nIEW=0,nSTMENU=0;var NS4=0;var nVer=0.0;
bDelBorder=0;bAddBorder=0;detectNav();
bFtReg=1;
nTopTb=nIE&&(nMac||nVer<5.5)||nOP&&nVer>=6.0;
if(nNN4){ doitovNN4=getEventCode('doitov',1);doitouNN4=getEventCode('doitou',1);doitckNN4=getEventCode('doitck',1);dombovNN4=getEventCode('dombov',0);dombouNN4=getEventCode('dombou',0); }
var MaxMenuNumber=10;
var HideSelect=1;
var HideObject=0;
var HideIFrame=0;
if(nNN6) HideSelect=0;
if((nIEW&&nVer>=5.5)||nNN6) HideIFrame=0;
var st_ht="";
var st_gcount=0;
var st_rl_id=null;
var st_cl_w,st_cl_h;
var st_cumei=0,st_cumbi,st_cuiti;
var st_rei=/STM([^_]*)_([0-9]*)__([0-9]*)___/;
var st_reb=/STM([^_]*)_([0-9]*)__/;
var st_menus=[];
var st_buf=[];
var st_loaded=0;
var st_scrollid=null;
if(nIE4||nNN4) window.onerror=function(sMsg,sUrl,sLine)
{
alert("Java Script Error\n"+"\nDescription:"+sMsg+"\nSource:"+sUrl+"\nLine:"+sLine);
return true;
}
if(nSTMENU) window.onload=st_onload;
if(nIEM) window.onunload=function(){return true;}
if(typeof(st_jsloaded)=='undefined'){
if(nSTMENU&&!nNN4)
{
var s="<STYLE>\n.st_tbcss{border:none;padding:0px;margin:0px;}\n.st_tdcss{border:none;padding:0px;margin:0px;}\n.st_divcss{border:none;padding:0px;margin:0px;}\n.st_ftcss{border:none;padding:0px;margin:0px;}\n</STYLE>";
for(i=0;i<MaxMenuNumber;i++)
s+="<FONT ID=st_global"+i+"></FONT>";
if(nIEW&&nVer>=5.0&&document.body)
document.body.insertAdjacentHTML("AfterBegin",s);
else
document.write(s);
}
st_jsloaded=1;}
st_state=["OU","OV"];
st_fl_id=["Box in","Box out","Circle in","Circle out","Wipe up","Wipe down","Wipe right","Wipe left","Vertical blinds","Horizontal blinds","Checkerboard across","Checkerboard down","Random dissolve","Split vertical in","Split vertical out","Split horizontal in","Split horizontal out","Strips left down","Strips left up","Strips right down","Strips right up","Random bars horizontal","Random bars vertical","Random filter","Fade",
"Wheel","Slide","Slide push","Spread","Pixelate","Stretch right","Stretch horizontally","Cross in","Cross out","Plus in","Plus out","Star in","Star out","Diamond in","Diamond out","Checkerboard up","Checkerboard left","Blinds up","Blinds left","Wipe clock","Wipe wedge","Wipe radial","Spiral","Zigzag"];
st_fl_string=
[
"Iris(irisStyle=SQUARE,motion=in)","Iris(irisStyle=SQUARE,motion=out)","Iris(irisStyle=CIRCLE,motion=in)","Iris(irisStyle=CIRCLE,motion=out)",
"Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse)","Wipe(GradientSize=1.0,wipeStyle=1,motion=forward)","Wipe(GradientSize=1.0,wipeStyle=0,motion=forward)","Wipe(GradientSize=1.0,wipeStyle=0,motion=reverse)",
"Blinds(bands=8,direction=RIGHT)","Blinds(bands=8,direction=DOWN)",
"Checkerboard(squaresX=16,squaresY=16,direction=right)","Checkerboard(squaresX=12,squaresY=12,direction=down)","RandomDissolve()",
"Barn(orientation=vertical,motion=in)","Barn(orientation=vertical,motion=out)","Barn(orientation=horizontal,motion=in)","Barn(orientation=horizontal,motion=out)",
"Strips(Motion=leftdown)","Strips(Motion=leftup)","Strips(Motion=rightdown)","Strips(Motion=rightup)",
"RandomBars(orientation=horizontal)","RandomBars(orientation=vertical)","","Fade(overlap=.5)",
"Wheel(spokes=16)","Slide(slideStyle=hide,bands=15)","Slide(slideStyle=swap,bands=15)","Inset()","Pixelate(MaxSquare=15)",
"Stretch(stretchStyle=hide)","Stretch(stretchStyle=spin)",
"Iris(irisStyle=cross,motion=in)","Iris(irisStyle=cross,motion=out)","Iris(irisStyle=plus,motion=in)","Iris(irisStyle=plus,motion=out)","Iris(irisStyle=star,motion=in)","Iris(irisStyle=star,motion=out)","Iris(irisStyle=diamond,motion=in)","Iris(irisStyle=diamond,motion=out)",
"Checkerboard(squaresX=16,squaresY=16,direction=up)","Checkerboard(squaresX=16,squaresY=16,direction=left)","Blinds(bands=8,direction=up)","Blinds(bands=8,direction=left)",
"RadialWipe(wipeStyle=clock)","RadialWipe(wipeStyle=wedge)","RadialWipe(wipeStyle=radial)","Spiral(GridSizeX=16,GridSizeY=16)","Zigzag(GridSizeX=16,GridSizeY=16)"
];
st_fl=[]; for(i=st_fl_id.length-1;i>=0;i--) eval("st_fl['"+st_fl_id[i]+"']=i;");
function beginSTM(nam,type,pos_l,pos_t,flt,click_sh,click_hd,ver,hddelay,shdelay_h,shdelay_v,web_path,blank_src)
{
if(!ver) ver='300';
if(hddelay==null) hddelay='1000';
if(shdelay_h==null) shdelay_h='0';
if(shdelay_v==null) shdelay_v='250';
if(!blank_src) blank_src='blank.gif';
eval("sdm_"+nam+"=st_cumei;");
var pos=type;
switch(type)
{
case "absolute":
type="custom";break;
case "custom":
case "float":
pos='absolute';break;
case "relative":
if(!eval(pos_l)&&!eval(pos_t))
{
pos='static';
type='static';
}
break;
case "static":
default:
type='static';pos='static';pos_l='0';pos_t='0';break;
}
if(web_path)
blank_src=web_path+blank_src;
else if(typeof(st_path)!='undefined')
blank_src=st_path+blank_src;
if(web_path==null) web_path='';
st_menus[st_cumei]=
{
bodys: [],
mei: st_cumei,
hdid: null,
block: "STM"+st_cumei+"_",
nam: nam,
type: type,
pos: pos,
pos_l: eval(pos_l),
pos_t: eval(pos_t),
flt: flt,
click_sh: eval(click_sh),
click_hd: eval(click_hd),
ver: eval(ver),
hddelay: eval(hddelay),
shdelay_h: eval(shdelay_h),
shdelay_v: eval(shdelay_v),
web_path: web_path,
blank: bufimg(blank_src),
clicked: false
};
}
function beginSTMB(offset,offset_l,offset_t,arrange,arrow,arrow_w,arrow_h,spacing,padding,bg_cl,bg_image,bg_rep,bd_cl,bd_sz,bd_st,trans,spec,spec_sp,lw_max,lh_max,rw_max,rh_max,bg_pos_x,bg_pos_y,ds_sz,ds_color,hdsp,bd_cl_t,bd_cl_r,bd_cl_b,ds_st)
{
if(!ds_sz) ds_sz=0;
if(!ds_color) ds_color='gray';
if(!hdsp) hdsp=false;
if(!bd_cl_t) bd_cl_t='';
if(!bd_cl_r) bd_cl_r='';
if(!bd_cl_b) bd_cl_b='';
if(!ds_st) ds_st='none';
switch(bg_rep){case 'tile':case 'tiled':{bg_rep='repeat';}break;case 'free':bg_rep='no-repeat';break;case 'tiled by x':bg_rep='repeat-x';break;case 'tiled by y':bg_rep='repeat-y';break;default:break;}
var oldmbi=st_cumbi;var olditi=st_cuiti;st_cumbi=st_menus[st_cumei].bodys.length;st_cuiti=0;
var menu=st_menus[st_cumei];
menu.bodys[st_cumbi]=
{
items: [],
mei: st_cumei,
mbi: st_cumbi,
block: "STM"+st_cumei+"_"+st_cumbi+"__",
par: (st_cumbi ? [st_cumei,oldmbi,olditi] : null),
tmid: null,
curiti: -1,
isshow: false,
isitem: 0,
isstatic: !st_cumbi&&menu.type=='static',
isvisible: !st_cumbi&&menu.type!='custom',
isclick: !st_cumbi&&menu.click_sh,
exec_ed: false,
arrange: arrange,
offset: offset,
offset_l: eval(offset_l),
offset_t: eval(offset_t),
arrow: getsrc(arrow,menu),
arrow_w: eval(arrow_w),
arrow_h: eval(arrow_h),
spacing: eval(spacing),
padding: eval(padding),
bg_cl: bg_cl,
bg_image: getsrc(bg_image,menu),
bg_rep: bg_rep,
bd_st: bd_st,
bd_sz: eval(bd_sz),
bd_cl: bd_cl,
opacity: 100-eval(trans),
spec: spec,
spec_sp: eval(spec_sp),
fl_type: -1,
lw_max: eval(lw_max),
lh_max: eval(lh_max),
rw_max: eval(rw_max),
rh_max: eval(rh_max),
ds_st: ds_st,
ds_sz: ds_st!='none' ? eval(ds_sz) : 0,
ds_color: ds_color,
hdsp: eval(hdsp),
spec_init: 0,
spec_sh: 0,
spec_hd: 0
};
var body=menu.bodys[st_cumbi];
if(st_cumbi) getpar(body).sub=[st_cumei,st_cumbi];
body.z_index= !st_cumbi ? 1000 : getpar(getpar(body)).z_index+10;
if(body.offset=="auto")
{
if(st_cumbi)
body.offset=getpar(getpar(body)).arrange=="vertically" ? "right" : "down";
else
body.offset= "down";
}
if(body.bd_st=="none")
body.bd_sz=0;
if(nSTMENU&&!nNN4&&bd_cl_t!="")
body.bd_cl=(bd_cl_t+" "+bd_cl_r+" "+bd_cl_b+" "+bd_cl);
bufimg(body.bg_image);
body.background=getbg(body.bg_cl,body.bg_image,body.bg_rep);
if(body.mbi&&!getpar(getpar(body)).bufed)
{
bufimg(getpar(getpar(body)).arrow);
getpar(getpar(body)).bufed=true;
}
if(nIEW&&nVer<5.0&&nVer>=4.0&&body.isstatic)
body.speceff='normal';
else if(nIEW&&typeof(st_fl[spec])!='undefined'&&(nVer>=5.5||(nVer<5.5&&st_fl[spec]<=23)))
body.speceff='filter';
else if(nIEW&&spec=="Fade")
body.speceff='fade';
else
body.speceff='normal';
eval(body.speceff+'_init(body);');
}
function appendSTMI(isimage,text,align,valign,image_ou,image_ov,image_w,image_h,image_b,type,bgc_ou,bgc_ov,sep_img,sep_size,sep_w,sep_h,icon_ou,icon_ov,icon_w,icon_h,icon_b,tip,url,target,f_fm_ou,f_sz_ou,f_cl_ou,f_wg_ou,f_st_ou,f_de_ou,f_fm_ov,f_sz_ov,f_cl_ov,f_wg_ov,f_st_ov,f_de_ov,bd_sz,bd_st,bd_cl_r_ou,bd_cl_l_ou,bd_cl_r_ov,bd_cl_l_ov,bd_cl_t_ou,bd_cl_b_ou,bd_cl_t_ov,bd_cl_b_ov,st_text,bg_img_ou,bg_img_ov,bg_rep_ou,bg_rep_ov)
{
if(!bd_cl_t_ou) bd_cl_t_ou='';
if(!bd_cl_b_ou) bd_cl_b_ou='';
if(!bd_cl_t_ov) bd_cl_t_ov='';
if(!bd_cl_b_ov) bd_cl_b_ov='';
if(!st_text) st_text='';
if(!bg_img_ou) bg_img_ou='';
if(!bg_img_ov) bg_img_ov='';
if(!bg_rep_ou) bg_rep_ou='repeat';
if(!bg_rep_ov) bg_rep_ov='repeat';
switch(bg_rep_ou){case 'tile':case 'tiled':bg_rep_ou='repeat';break;case 'free':bg_rep_ou='no-repeat';break;case 'tiled by x':bg_rep_ou='repeat-x';break;case 'tiled by y':bg_rep_ou='repeat-y';break;default:break;}
switch(bg_rep_ov){case 'tile':case 'tiled':bg_rep_ov='repeat';break;case 'free':bg_rep_ov='no-repeat';break;case 'tiled by x':bg_rep_ov='repeat-x';break;case 'tiled by y':bg_rep_ov='repeat-y';break;default:break;}
st_cuiti=st_menus[st_cumei].bodys[st_cumbi].items.length;
var menu=st_menus[st_cumei];
var body=menu.bodys[st_cumbi];
body.items[st_cuiti]=
{
mei: st_cumei,
mbi: st_cumbi,
iti: st_cuiti,
block: "STM"+st_cumei+"_"+st_cumbi+"__"+st_cuiti+"___",
sub: null,
isitem: 1,
txblock: "STM"+st_cumei+"_"+st_cumbi+"__"+st_cuiti+"___"+"TX",
tmid: null,
isimage: eval(isimage),
text: text,
align: align,
valign: valign,
image: [getsrc(image_ou,menu),getsrc(image_ov,menu)],
image_w: eval(image_w),
image_h: eval(image_h),
image_b: eval(image_b),
type: type,
bg_cl: [bgc_ou,bgc_ov],
sep_img: getsrc(sep_img,menu),
sep_size: eval(sep_size),
sep_w: eval(sep_w),
sep_h: eval(sep_h),
icon: [getsrc(icon_ou,menu),getsrc(icon_ov,menu)],
icon_w: eval(icon_w),
icon_h: eval(icon_h),
icon_b: eval(icon_b),
tip: tip,
url: url,
target: target,
f_fm: [f_fm_ou.replace(/'/g,''),f_fm_ov.replace(/'/g,'')],
f_sz: [f_sz_ou,f_sz_ov],
f_cl: [f_cl_ou,f_cl_ov],
f_wg: [f_wg_ou,f_wg_ov],
f_st: [f_st_ou,f_st_ov],
f_de: [f_de_ou,f_de_ov],
bd_st: bd_st,
bd_sz: eval(bd_sz),
bd_cl_r: [bd_cl_r_ou,bd_cl_r_ov],
bd_cl_l: [bd_cl_l_ou,bd_cl_l_ov],
bd_cl_t: [bd_cl_t_ou,bd_cl_t_ov],
bd_cl_b: [bd_cl_b_ou,bd_cl_b_ov],
st_text: st_text,
bg_img: [getsrc(bg_img_ou,menu),getsrc(bg_img_ov,menu)],
bg_rep: [bg_rep_ou,bg_rep_ov]
};
var item=st_menus[st_cumei].bodys[st_cumbi].items[st_cuiti];
if(item.bd_st=="none"||!item.bd_sz)
{
item.bd_sz=0; item.bd_st="none";
}
if(nOP)
{
if(item.bd_st=="ridge") item.bd_st="outset";
if(item.bd_st=="groove") item.bd_st="inset";
}
if(item.bd_st=="inset")
{
var tmclr=item.bd_cl_l; item.bd_cl_l=item.bd_cl_r; item.bd_cl_r=tmclr; item.bd_st="outset";
}
if(bd_cl_t_ou=="")
{
if("none_solid_double_dashed_dotted".indexOf(item.bd_st)>=0)
item.bd_cl_r=item.bd_cl_l;
if(item.bd_st=="outset")
item.bd_st="solid";
item.bd_cl_t=item.bd_cl_l;
item.bd_cl_b=item.bd_cl_r;
}
item.bd_cl=[];
for(i=0;i<2;i++)
item.bd_cl[i]=item.bd_cl_t[i]+" "+item.bd_cl_r[i]+" "+item.bd_cl_b[i]+" "+item.bd_cl_l[i];
if(item.type=="sepline")
bufimg(item.sep_img);
else
{
for(i=0;i<2;i++)
{
bufimg(item.icon[i]);
if(item.isimage)
bufimg(item.image[i]);
bufimg(item.bg_img[i]);
}
}
item.background=[getbg(item.bg_cl[0],item.type=='sepline' ? '' : item.bg_img[0],item.bg_rep[0]),getbg(item.bg_cl[1],item.bg_img[1],item.bg_rep[1])];
}
function endSTMB()
{
var item=getpar(st_menus[st_cumei].bodys[st_cumbi]);
if(item)
{
st_cumei=item.mei;
st_cumbi=item.mbi;
st_cuiti=item.iti;
}
}
function endSTM()
{
var menu=st_menus[st_cumei];
var menuHTML="";
var max_l=nSTMENU ? menu.bodys.length : 1;
for(mbi=0;mbi<max_l;mbi++)
{
var body=menu.bodys[mbi];
var bodyHTML=getBodyTextH(body);
for(iti=0;iti<body.items.length;iti++)
{
var item=body.items[iti];
var itemHTML="";
itemHTML+=(body.arrange=="vertically" ? (nNN4||!nSTMENU ? "<TR HEIGHT=100%>" : "<TR ID="+item.block+"TR>") : "");
itemHTML+=getItemText(item);
itemHTML+=(body.arrange=="vertically" ? "</TR>" : "");
bodyHTML+=itemHTML;
}
bodyHTML+=getBodyTextE(body);
if(body.isstatic||nNN4||!nSTMENU)
menuHTML+=bodyHTML;
else
st_ht+=bodyHTML;
}
if(menuHTML!='')
document.write(menuHTML);
if(nSTMENU&&!(nIEM||(nIEW&&nVer<5.0)))
{
if(st_ht!='')
{
var obj=getob('st_global'+st_gcount,'font');
if(nNN6)
obj.innerHTML=st_ht;
else if(nIE&&nVer>=5.0)
obj.insertAdjacentHTML("BeforeEnd",st_ht);
else
obj.document.write(st_ht);
st_gcount++;
st_ht='';
}
if(!nOP&&!nNN4)
prefix(menu);
}
st_cumei++;st_cumbi=0;st_cuiti=0;
}
function getBodyTextH(body)
{
var s="";
if(nNN4||!nSTMENU)
{
if(nNN4)
{
s+=!body.isstatic ? "<LAYER" : "<ILAYER";
if(body.mbi==0&&getme(body).pos=='absolute')
s+=(" LEFT="+getme(body).pos_l+" TOP="+getme(body).pos_t);
s+=" VISIBILITY=hide";
s+=" ID="+body.block;
s+=" Z-INDEX="+body.z_index;
s+="><LAYER ID="+body.block+"IN>";
}
s+="<TABLE BORDER=0 CELLPADDING="+body.bd_sz+" CELLSPACING=0";
if(body.bd_sz)
s+=" BGCOLOR="+body.bd_cl;
s+="><TD>";
s+="<TABLE BORDER=0 CELLSPACING=0 CELLPADDING="+body.spacing;
if(body.bg_image!="")
s+=" BACKGROUND=\""+body.bg_image+"\"";
if(body.bg_cl!="transparent")
s+=" BGCOLOR="+body.bg_cl;
s+=" ID="+body.block;
s+=">";
}
else
{
var stdiv="position:"+(body.mbi ? 'absolute' : getme(body).pos)+";";
if(body.mbi==0)
{
stdiv+=("float:"+getme(body).flt+";");
stdiv+=("left:"+getme(body).pos_l+"px;");
stdiv+=("top:"+getme(body).pos_t+"px;");
}
stdiv+="z-index:"+body.z_index+";";
stdiv+="visibility:hidden;";
s+=nTopTb ? "<TABLE class=st_tbcss CELLPADDING=0 CELLSPACING=0" : "<DIV class=st_divcss";
s+=getBodyEventString(body);
s+=" ID="+body.block;
s+=" STYLE='";
if(nIEM)
s+="width:1px;";
else if(nIE)
s+="width:0px;";
s+=getFilterCSS(body);
s+=stdiv;
s+="'>";
if(nTopTb)
s+="<TD class=st_tdcss ID="+body.block+"TTD>";
s+="<TABLE class=st_tbcss CELLSPACING=0 CELLPADDING=0";
s+=" ID="+body.block+"TB";
s+=" STYLE='";
s+=getBodyCSS(body);
if(!nOP)
s+="margin:"+body.ds_sz+"px;";
s+="'>";
}
return s;
}
function getBodyTextE(body)
{
if(!nSTMENU)
return "</TABLE></TD></TABLE>";
else if(nNN4)
return "</TABLE></TD></TABLE></LAYER></LAYER>";
else if(nTopTb)
return "</TABLE></TD></TABLE>";
else
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -