📄 effects.js
字号:
}
function F_X0(P5,P6,W9){
with(P5){var x=J2('absolute');var y=K1('absolute');var l1=x+I3();var t1=y+I6();var r1=x+I5();var b1=y+I1();}
with(P6){var x=J2('absolute');var y=K1('absolute');var l2=x+I3();var t2=y+I6();var r2=x+I5();var b2=y+I1();}
if (W9=="int")
if((l1>=l2&&l1<=r2)|| (r1>=l2&&r1<=r2)|| (l1<l2&&r1>r2))
if((t1>=t2&&t1<=b2)|| (b1>=t2&&b1<=b2)|| (t1<t2&&b1>b2))
return(true);if (W9=="cont")
if((l1>=l2)&&(r1<=r2))
if((t1>=t2)&&(b1<=b2))
return(true);return(false);}
function F_V0(Z8){with(document){if(F_dragLayer==null)
F_dragLayer=new Array;
var L9=-1;for(var i=(F_dragLayer.length-1);i>-1;i--)
if(F_dragLayer[i].layer==this)
L9=i;if(L9!=-1)
F_dragLayer[L9] ={layer:this,type:Z8};else
F_dragLayer[F_dragLayer.length]={layer:this,type:Z8};
F_S6(this);if(navigator.appName=='Netscape'){document.captureEvents(Event.MOUSEMOVE);this.Q4=window.NOFevent.pageX;this.Q5=window.NOFevent.pageY;
}else{document.onmousemove=F_L6;this.Q4=window.NOFevent.pageX;this.Q5=window.NOFevent.pageY;}
this.fastDrag=false;if(this.A2){this.T7=(this.A2['Drag Started']!=null);this.fastDrag=((!this.T7)&&(this.dragBoundries=="none")&&(this.A2['Dragged']==null)&&(this.dragCollision==null));}
}
}
function F_drag (x,y){if(document.F_dragLayer!=null){for(var i=(document.F_dragLayer.length-1);i>-1;i--){var dObj=document.F_dragLayer[i];var d=dObj.layer;if(d.T7){sendMsg(d.W4,'Drag Started','',null);d.T7=false;}
if(typeof d.Q4=="undefined"){d.Q4=x;d.Q5=y;}
var BA=d.Q4 - x;var BB=d.Q5 - y;
if((d.parent!=null)&&(d.dragBoundries=="to container object")){if( (d.J2('absolute') +d.I3()- d.parent.I3()- d.parent.J2('absolute')- BA)<0)
BA=d.J2('absolute')+d.I3()- d.parent.I3()- d.parent.J2('absolute');if( (d.J2('absolute')+d.I5()- BA)>(d.parent.I5()+d.parent.J2('absolute')))
BA=d.J2('absolute')+d.I5()- (d.parent.I5()+d.parent.J2('absolute'));if( (d.K1('absolute')+d.I1()- BB)>(d.parent.I1()+d.parent.K1('absolute')))
BB=d.K1('absolute')+d.I1()- d.parent.I1()- d.parent.K1('absolute');if( (d.K1('absolute')+d.I6()- d.parent.I6()- d.parent.K1('absolute')- BB)<0)
BB=d.K1('absolute')+d.I6()- d.parent.I6()- d.parent.K1('absolute');}
d.Q4=d.Q4 - BA;d.Q5=d.Q5 - BB;d.offset (-BA,-BB);if(d.A2['Dragged']!=null)sendMsg(d.W4,'Dragged','',null);if (d.dragCollision!=null)F_C3(d,"drag");}
}
}
function F_endDrag (){if(document.F_dragLayer){sendMsg(this.W4,'Drag Ended','',null);if (this.dropCollision!=null)F_C3(this,"drop");var d=new Array(0);for(var i=0;i<document.F_dragLayer.length;i++){if(document.F_dragLayer[i].layer!=this)
d[d.length]=document.F_dragLayer[i];}
if(d.length>0){document.F_dragLayer=d;}else{document.F_dragLayer=null;if(navigator.appName=='Netscape'){document.releaseEvents (Event.MOUSEMOVE);}else{document.onmousemove=null;window.event.returnValue=false
window.event.cancelBubble=true
}
}
}
}
F_prototype("F_E2.prototype.",
"A3","F_A3","C8","F_C8","V0","F_V0","endDrag","F_endDrag");
if(navigator.appName=='Netscape')
{}else{
}
function F_setSrc(Z8){if(typeof this.Q1!="undefined"){
this.Q1.src=Z8;}
}
function F_setLowsrc(Z8){if(typeof this.Q1!="undefined"){
this.Q1.src=Z8;}
}
function F_setImage(Z8){var a=["Image 1 (Normal)","Image 2 (Highlighted)","Image 3 (Depressed)","Image 4 (Selected)","Image 5","Image 6","Image 7","Image 8","Image 9","Image 10"];if (typeof Z8!="object")return(false);
for ( var i=0;i<a.length;i++){
var b=Z8.J8( a[i],"");if(b!=""){this.images[a[i]]=new Object();this.images[a[i]].image=new Image();if(!F_NN)this.images[a[i]].image.src=b;
this.images[a[i]].source=b;this.images[a[i]].complete=false;}
}
if(F_NN){this.setImageLoad();}
return(true);}
function F_setImageLoad(p){if(p){this.images[p].complete=true;}
for ( var i in this.images){with(this.images[i]){if(!complete){image.src=source;
image.onLoad=new Function(this.textRef+".setImageLoad('"+i+"')");break;}else{if(typeof image!="undefined"){image.onLoad=null;}
}
}
}
}
function F_setImageExpression(){var a=["Image 1 (Normal)","Image 2 (Highlighted)","Image 3 (Depressed)","Image 4 (Selected)","Image 5","Image 6","Image 7","Image 8","Image 9","Image 10"];var o=new Object();for ( var i=0;i<a.length;i++){
if(F_setImageExpression.arguments.length>i)
{o[a[i]]=F_setImageExpression.arguments[i];}
}
return(o);}
function F_useImage(Z3){var t=Z3;if(typeof this.Q1!="undefined")
if((typeof this.images[t]!="undefined")&&(this.images[t]!=null))
this.Q1.src=this.images[t].source;}
function F_IEsound(command){if (!(!F_NN&&F_MAC)){
if (command=="play")
if(this.Q1.run)this.Q1.run();
if (command=="stop")
if(this.Q1.stop)this.Q1.stop();if (command=="pause")
if(this.Q1.pause)this.Q1.pause();}
}
function F_AZ(f,Z8){if(typeof Z8=="object"){var Z0=parseInt(Z8.J8( "left",0));var AN=parseInt(Z8.J8( "top",0));var AS=parseInt(Z8.J8( "width",0));var Y5=parseInt(Z8.J8( "height",0));}
if (f=="open"){var n=Z8.J8( "name","myWindow").replace(/\W/gi,"");var p="width="+Z8.J8( "width","")+
",height="+Z8.J8( "height","")+
",top="+Z8.J8( "top","")+
",left="+Z8.J8( "left","")+
",toolbar="+Z8.J8( "toolbar","")+
",location="+Z8.J8( "location","")+
",menubar="+Z8.J8( "menubar","")+
",status="+Z8.J8( "status","")+
",resizable="+Z8.J8( "resizable","")+
",directories="+Z8.J8( "directories","")+
",scrollbars="+Z8.J8("scrollbars","");
var w=(window.open(Z8.J8( "URL",""),n,p))
document.F_windows[n]=w;
if(F_NN)w.focus();
return(w);
}
if (f=="prompt")
return(window.prompt(Z8.J8( "message",""),Z8.J8("defaultValue","")));if (f=="set status"){
window.status=Z8;return(false);}
if (f=="move to")
window.moveTo(Z0,AN);if (f=="move by")
window.moveBy(Z0,AN);if (f=="resize to"){if(navigator.appName=='Netscape')
top.resizeTo(AS,Y5);else
top.resizeTo(AS,Y5);}
if (f=="resize by")
window.resizeBy(AS,Y5);if (f=="scroll to")
window.scrollTo(Z0,AN);if (f=="scroll by")
window.scrollBy(Z0,AN);if (f=="delayed action"){var m='sendMsg("'+this.W4+'","'+Z8.J8("action","")+'")';var d=Z8.J8("delay","60")*1000;var W9="top.frames['"+self.name+"'].sendMsg";if(Z8.J8("continuous",false)){F_setInterval(this.timeoutTest,F_getFrameRef(),m,d);
}else{
F_setTimeout(this.timeoutTest,F_getFrameRef(),m,d);
}
}
if (f=="browser type"){var ms=navigator.appVersion.indexOf("MSIE");var nn=navigator.appName=="Netscape";var ie4=(ms>0)&&(parseInt(navigator.appVersion.substring(ms+5,ms+6))>=4);var nn4=(nn)&&(parseInt(navigator.appVersion.substring(0,1))>=4);var t=Z8;if((t=="Is Navigator")&&(nn4))
return(true);if((t=="Is Internet Explorer")&&(ie4))
return(true);return(false);}
if (f=="message to window"){msg=new F_cMessage(Z8.J8("message",""),new F_Parm(),false,null);var w=document.F_windows[Z8.J8("window","")];if (typeof w=="undefined")
var w=window.open("",Z8.J8("window",""));if(typeof w!="undefined")
if(typeof w.document!="undefined")
if(typeof w.document.objectModel!="undefined"){var target=w.document.objectModel[Z8.J8("object","")];if(typeof target!="undefined"){return(msg.T5(target));}
}
}
return(null);}
function F_commandsInit(){for (var c in this.E4){this.E4[c].A4=F_A4;this.E4[c].A4(c);}
}
function F_A4(AO){
if(AO=="vis"){F_A6(this,new Array(
"Move To","this.W2(F_cMoveTo,msg.data)","Move By","this.W2(F_cMoveBy,msg.data)","Fly","this.W2(F_C1,msg.data)","Iris","this.W2(F_C7,msg.data)","Peek","this.W2(F_E6,msg.data)","Wipe","this.W2(F_F4,msg.data)","Hide","this.hide()","Show","this.show()","Toggle Visibility","this.V6('toggle')","Bring To Front","this.B1()","Send To Back","this.U0()",
"Bring Forward","this.shiftZindex1(1)","Send Backward","this.shiftZindex1(-1)",
"Set Position","this.V3(msg.data)","Get Position","msg.returnValue=this.J9('absolute')","Get Z-Index","msg.returnValue=this.K6()","Set Z-Index","msg.returnValue=this.setIndex(msg.data)","Save Position","this.T3=this.J9('style')","Restore Position","this.restorePosition(this.T3)",
"Set Left","this.V1(msg.data)","Get Left","msg.returnValue=this.J2('absolute')","Set Top","this.V4(msg.data)","Get Top","msg.returnValue=this.K1('absolute')","Set Clip Left","this.U4(msg.data)","Set Clip Top","this.U7(msg.data)","Set Clip Right","this.U6(msg.data)","Set Clip Bottom","this.U3(msg.data)","Get Clip Left","msg.returnValue=this.I3()","Get Clip Top","msg.returnValue=this.I6()","Get Clip Right","msg.returnValue=this.I5()","Get Clip Bottom","msg.returnValue=this.I1()","Start Drag","this.V0(msg.data)","End Drag","this.endDrag()","Constrain Drag","this.dragBoundries=msg.data","Set Collision Detection", "this.A3(msg.data)","Clear Collision Detection","this.C8(msg.data)","Set Masking","this.N6=eval(msg.data)","Get Masking","msg.returnValue=this.N6","Set Filter","this.style.filter=msg.data","Delay","this.AZ('delayed action',msg.data)","Display File","this.setSource(msg.data)",
"Display HTML","this.writeSource(msg.data)","Set Draggable","this.G3=eval(msg.data)","Get Draggable","msg.returnValue=this.G3" ));}
if(AO=="img"){F_A6(this,new Array(
"Set Src","this.setSrc(msg.data)","Set Lowsrc","this.setLowsrc(msg.data)","Set Image", "this.setImage(msg.data)","Use Image", "this.useImage(msg.data)"));F_A5(this,"J3","Src","Lowsrc");
F_A5(this,"V2");
this.A4("vis");}
if(AO=="nav"){this.A4("vis");}
if(AO=="act"){this.A4("vis");}
if(AO=="vid"){
this.A4("vis");}
if(AO=="shk"){F_A6(this,new Array(
"Play","this.Q1.Play()","Stop","this.Q1.Stop()","Rewind", "this.Q1.Rewind()","Go To Frame","this.Q1.GotoFrame(msg.data)"));this.A4("vis");}
if(AO=="jav"){this.A4("vis");}
if(AO=="jbn"){this.A4("vis");}
if(AO=="snd"){if(navigator.appName=='Netscape'){
F_A6(this,new Array(
"Play","this.Q1!=null?this.Q1.play(false):void(0)","Pause","this.Q1!=null?this.Q1.pause():void(0)","Stop","this.Q1!=null?this.Q1.stop():void(0)",
"Get Volume", "msg.returnValue=this.Q1.GetVolume()"));}else{
F_A6(this,new Array(
"Play","this.IEsound('play')","Pause","this.IEsound('pause')","Stop","this.IEsound('stop')"));}
this.A4("vis");}
if(AO=="txt"){
this.A4("vis");F_A6(this,new Array(
"Set Font Weight", "this.style.fontWeight=msg.data","Set Font Size", "this.style.fontSize=msg.data"));}
if(AO=="tbl"){
this.A4("vis");}
if(AO=="tln"){
if(navigator.appName!='Netscape')
F_A6(this,new Array(
"Set Color", "this.style.color=msg.data",
"Set Font Size", "this.style.fontSize=msg.data"));}
if(AO=="chk"){F_A6(this,new Array(
"Check","this.Q1.checked=true","Uncheck","this.Q1.checked=false","Focus","this.Q1.focus()","Blur","this.Q1.blur()",
"Set Checked", "this.Q1.checked=msg.data"));F_A5(this,"J3","Checked");
this.A4("fob");}
if(AO=="rad"){F_A6(this,new Array(
"Select","this.Q1.checked=true","Check","this.Q1.checked=true","Uncheck","this.Q1.checked=false","Focus","this.Q1.focus()","Blur","this.Q1.blur()",
"Set Checked", "this.Q1.checked=msg.data","Get Checked", "msg.returnValue=this.Q1.checked",
"Get Name","msg.returnValue=this.Q1.name"));this.A4("fob");}
if(AO=="tfd"){F_A6(this,new Array(
"Get Default Value", "msg.returnValue=this.Q1.defaultValue","Focus", "this.Q1.focus()","Blur", "this.Q1.blur()","Select", "this.Q1.select()","Set Value", "this.Q1.value=msg.data"));F_A5(this,"J3","Name","Value");this.A4("fob");}
if(AO=="sel"){F_A6(this,new Array(
"Get Selected Value", "msg.returnValue=this.Q1.options[this.Q1.selectedIndex].value","Get Selected Index", "msg.returnValue=this.Q1.selectedIndex","Get Selected Text", "msg.returnValue=this.Q1.options[this.Q1.selectedIndex].text",
"Select", "this.Q1.options[msg.data].selected=true","Restore Default Selection", "F_T4(this)","Delete Option", "this.Q1.options[msg.data]=null","Add Option", "this.Q1.options[this.Q1.length]=new Option(msg.data.J8( 'Option Name',''),msg.data.J8( 'Value',''))","Focus", "this.Q1.focus()","Blur", "this.Q1.blur()"));F_A5(this,"J3","Name","Length","Options");this.A4("fob");}
if(AO=="btn"){F_A6(this,new Array(
"Click", "this.Q1.click()","Focus", "this.Q1.focus()","Blur", "this.Q1.blur()"));F_A5(this,"J3","Name","Value");this.A4("fob");}
if(AO=="doc"){F_A6(this,new Array(
"Set Active Link Color", "document.alinkColor=msg.data","Set Visited Link Color", "document.vlinkColor=msg.data","Set Link Color","document.linkColor=msg.data",
"Go To","this.K7(msg.data)","Go To URL","this.K7(msg.data)","Get Location","msg.returnValue=document.location",
"Set Background Color","document.bgColor=msg.data"));
this.A4("vis");this.A4("win");}
if(AO=="win"){F_A6(this,new Array(
"Set Status Bar", "msg.returnValue=this.AZ('set status',msg.data)","Open Window","msg.returnValue=this.AZ('open',msg.data)","Resize To","this.AZ('resize to',msg.data)","Resize By","this.AZ('resize by',msg.data)","Reposition To","this.AZ('move to',msg.data)","Reposition By","this.AZ('move by',msg.data)","Scroll To","this.AZ('scroll to',msg.data)","Scroll By","this.AZ('scroll by',msg.data)","Close","window.close()","Focus Window","window.focus()","Blur Window","window.blur()","Alert","window.alert(msg.data)","Confirm","msg.returnValue=window.confirm(msg.data)",
"Prompt","msg.returnValue=this.AZ('prompt',msg.data)","Check Browser Type", "msg.returnValue=this.AZ('browser type',msg.data)","Message To Window","this.AZ('message to window',msg.data)","Get Opener","msg.returnValue=window.opener",
"Get Name","msg.returnValue=window.name","Set Name","window.name=msg.data","Check Closing", "this.C2()"));
}
if(AO=="lyr" || AO=="wht"){this.A4("vis");}
if(AO=="fob"){F_A6(this,new Array(
"Get Form", "msg.returnValue=this.H9","Get Form Object", "msg.returnValue=this.I9(this.H9.name)"));}
}
F_R7("F_E2.prototype.",
"setLowsrc",
"setImage","useImage","setImageLoad","setSrc","AZ","IEsound"
);
F_prototype("F_cMain.prototype.",
"commandsInit","F_commandsInit"
);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -