📄 effects.js
字号:
function F_C1(Z5,Z8){
this.type="move";this.object=Z5;this.E5=new F_B8(Z5,Z8);
if(F_NN&&(Z5.parent!=null)){var AV=Z5.K1('absolute')- (Z5.parent.K1('absolute')+Z5.parent.I6());var N2=Z5.J2('absolute')- (Z5.parent.J2('absolute')+Z5.parent.I3());var A8=Z5.parent.I2()- AV;var T1=Z5.parent.I7()- N2;}else{var AV=Z5.K1('absolute')- Z5.J7();var N2=Z5.J2('absolute')- Z5.J6();var A8=Z5.K3()- AV;var T1=Z5.K4()- N2;}
var D4=Z5.I7();var D5=Z5.I2();var d=this.E5.F8;
if((d==0)|| (d>270))
{var p=F_calcDirection(d,N2+D4,AV+D5);}
else
{if(d<=90)
{var p=F_calcDirection(d,T1,AV+D5);}
else
{if(d<=180)
{var p=F_calcDirection(d,T1,A8);}
else
{if(d<=270)
{var p=F_calcDirection(d,N2+D4,A8);}
}
}
}
this.E5.U9(p.x,-p.y,0,0,0,0);}
F_C1.prototype=new F_effectPrototype;
function F_cMoveBy(Z5,Z8){
this.type="move";this.object=Z5;this.E5=new F_B8(Z5,Z8);this.E5.showHide="";this.E5.S7=false;
var x=Z8.J8( "x",0);var y=Z8.J8( "y",0);
this.E5.U9(x,y,0,0,0,0);}
F_cMoveBy.prototype=new F_effectPrototype;
function F_cMoveTo(Z5,Z8){
this.type="move";this.object=Z5;this.E5=new F_B8(Z5,Z8);this.E5.showHide="";this.E5.S7=false;
if(Z8=="Saved Position"){var x=Z5.T3.x - Z5.J2('style');var y=Z5.T3.y - Z5.K1('style');}else{
var x=Z8.J8( "x",0)- Z5.J2('absolute');var y=Z8.J8( "y",0)- Z5.K1('absolute');}
this.E5.U9(x,y,0,0,0,0);}
F_cMoveTo.prototype=new F_effectPrototype;
function F_E6(Z5,Z8){
this.type="transition";this.object=Z5;this.E5=new F_B8(Z5,Z8);
var width=Z5.I7();var height=Z5.I2();var p=F_calcDirection(this.E5.F8,width,height);
var t=new B9(0,0,0,0,0,0);t.x=p.x;t.y=-p.y;F_B3(this.E5.F8,t,p);this.E5.U9(t.x,t.y,t.top,t.right,t.bottom,t.left);}
F_E6.prototype=new F_effectPrototype;
function F_F4(Z5,Z8){
this.type="transition";this.object=Z5;this.E5=new F_B8(Z5,Z8);
this.E5.F8=(180+this.E5.F8)%360;var width=Z5.I7();var height=Z5.I2();var p=F_calcDirection(this.E5.F8,width,height);var t=new B9(0,0,0,0,0,0);F_B3(this.E5.F8,t,p);this.E5.U9(t.x,t.y,t.top,t.right,t.bottom,t.left);}
F_F4.prototype=new F_effectPrototype;
function F_C7(Z5,Z8){
this.type="transition";this.object=Z5;this.E5=new F_B8(Z5,Z8);
var width=Math.ceil(Z5.I7()/2);var height=Math.ceil(Z5.I2()/2);
this.E5.U9(0,0,height,-width,-height,width);}
F_C7.prototype=new F_effectPrototype;
function F_effectPrototype(){this.M4=F_G9;this.start=F_H3;this.finish=F_G7;this.stop=F_effectStop;this.restart=F_effectRestart;this.U1=F_U1;}
function F_U1(){return(this.E5.H1(new Date()));}
function F_H3(){this.object.U8();if(!document.main.D6)
sendMsg(this.object.W4,(this.type=="move"?'Motion Started':'Transition Started'),'',this);this.E5.H1("start");this.U1();}
function F_G7(){this.E5.H1("finish");if(!document.main.D6){sendMsg(this.object.W4,(this.type=="move"?'Motion Ended':'Transition Ended'),'',this);if(this.E5.message!="")
sendMsg(this.object.W4,this.E5.message,'',this);}
this.object.C4();this.object.S5();}
function F_G9(){if(document.main.D6)
return(false);
clearTimeout(this.timer);this.E5.H1("finish");return(true);}
function F_effectStop(){clearTimeout(this.timer);return(true);}
function F_effectRestart(){this.timer=setTimeout( this.object.textRef+'.U2("'+this.type+'");',this.E5.rate);return(true);}
function F_B8 (Z5,Z8){
this.object=Z5;if(typeof(Z8)=="string"){this.duration=10;this.inDuration=2;this.outDuration=2;this.rate=10;this.repeat=1;this.reverse=true;this.F8=(F_I8 (Z8)% 360);this.showHide=F_L1 (Z8);this.message="";}else{
this.duration=Z8.J8( "duration",10);this.inDuration=Z8.J8( "inDuration",2);this.outDuration=Z8.J8( "outDuration",2);
if(this.duration==0)this.duration=1;if(this.inDuration>=this.duration){this.inDuration=this.duration-1;this.outDuration=0;}else{if((this.inDuration+this.outDuration)>=this.duration){this.outDuration=this.duration - this.inDuration - 1;}
}
this.rate=Z8.J8( "rate",10);this.repeat=Z8.J8( "repeat",1);
this.reverse=(Z8.J8( "reverse",false));
this.F8=Z8.J8( "direction",90)% 360;this.showHide=Z8.J8( "hide","show").toLowerCase();this.message=Z8.J8( "message","");}
this.S7=true;
this.I=2 * this.inDuration / Math.PI;this.O=2 * this.outDuration / Math.PI;this.Mid=this.duration - this.inDuration - this.outDuration;this.factor=1/(this.Mid+this.I+this.O);this.midTest=this.inDuration+this.Mid;this.inRad=Math.PI / (2 * this.inDuration);this.outRad=Math.PI / (2 * this.outDuration);
this.H6=false;this.offset=new B9(0,0,0,0,0,0);
this.H2();}
function B9(x,y,top,right,bottom,left){this.x=Math.floor(x);this.y=Math.floor(y);this.top=Math.floor(top);this.right=Math.floor(right);this.bottom=Math.floor(bottom);this.left=Math.floor(left);}
F_R7("F_B8.prototype.",
"G8","H1","U9","F9","H2"
);
function F_H1(AM){var d=this.object;if(AM=="start")
{
if (this.showHide!="")this.object.V6("inherit");return(true);}
if(AM=="finish")
{
if ((this.showHide=="hide")&!this.H6)d.V6("hidden");this.H6=false;if (this.S7)
this.F9(0);return(false);}
var AD=this.G8(AM);if (this.showHide=="show")AD=1 - AD;if (this.H6)AD=1 - AD;this.F9(AD);if(AM.getTime()>this.endTime)
{
if(--this.repeat>0){
if(this.reverse){
this.H6=!this.H6;}
this.H2();
}else{return(false);
}
}
if (d.moveCollision!=null)F_C3(d,"move");return(true);}
function F_F9(AD){
var d=this.object;with(this.dest){
var O6=new B9(
Math.ceil(x * AD),
Math.ceil(y * AD),
Math.ceil(top * AD),
Math.ceil(right * AD),
Math.ceil(bottom * AD),
Math.ceil(left * AD));}
var a=(O6.x - this.offset.x);
var b=(O6.y - this.offset.y);
if((a!=0)|| (b!=0)){
d.offset(a,b);}
with(d.style){if(navigator.appName=='Netscape')
{clip.top=clip.top+(O6.top - this.offset.top);clip.right=clip.right+(O6.right - this.offset.right);clip.bottom=clip.bottom+(O6.bottom - this.offset.bottom);clip.left=clip.left+(O6.left- this.offset.left);
}else{
with(d){this.object.U5(new F_E9(
I3()+(O6.left- this.offset.left),I6()+(O6.top - this.offset.top),I5()+(O6.right - this.offset.right),I1()+(O6.bottom - this.offset.bottom)
));}
}
}
this.offset=O6;}
function F_G8(AM){
with(this){var time=(AM.getTime()- this.startTime)/(100)
if ( time<inDuration){
return((I - (Math.cos(time *inRad)* I))* factor);}
else{if ( time<=midTest){
return((time - inDuration+I)* factor);}
else{
if ( time>=duration)return(1);return(((Math.sin((time - inDuration - Mid)* outRad)* O)+I+Mid)* factor);}
}
}
}
function F_U9(x,y,top,right,bottom,left){this.dest=new B9(x,y,top,right,bottom,left);}
function F_H2(){this.startTime=(new Date()).getTime();this.endTime=this.startTime+(this.duration*100);
}
function F_U2(AO){var Y0=this[AO];
if(Y0!=null){if(Y0.U1())
Y0.timer=F_setTimeout(this.timeoutTest,this.textRef,'U2("'+Y0.type+'")',Y0.E5.rate);
else
this.H4(AO);}
}
function F_W2(Y0,Z8){var t=new Y0(this,Z8);if(this[t.type]!=null){
if(!this[t.type].M4())
return(false);}
this[t.type]=t;this[t.type].start();
this[t.type].timer=F_setTimeout(this.timeoutTest,this.textRef,'U2("'+this[t.type].type+'")',this[t.type].E5.rate);
return(true);}
function F_H4(AO){var t=this[AO];this[AO]=null;t.finish();}
F_prototype("F_E2.prototype.",
"U2","F_U2","H4","F_H4","W2","F_W2");
function F_calcDirection(F8,AS,Y5)
{F8=F8 % 360;AB=F8 * (Math.PI/180);if ((F8 % 90)==0)
{BA=0;BB=0;if(F8==0)BB=Y5;if(F8==90)BA=AS;if(F8==180)BB=-Y5;if(F8==270)BA=-AS;}
else
{
BA=AS;BB= AS / Math.tan(AB);if(F8>=180)
{BB=-BB;BA=-BA;}
if (Math.abs(BB)>Y5)
{BB=Y5;BA=Y5 * Math.tan(AB);if((F8>90)&&(F8<270))
{BB=-BB;BA=-BA;}
}
}
return(new F_E7(BA,BB));}
function F_B3(F8,clip,R3){if((F8==0)|| (F8>270)){clip.left=-R3.x;clip.top=R3.y;
}
else
if(F8<=90){clip.right=-R3.x;clip.top=R3.y;
}
else
if(F8<=180){clip.right=-R3.x;clip.bottom=R3.y;
}
else
if(F8<=270){clip.left=-R3.x;clip.bottom=R3.y;
}
}
function F_L1 (AI){if (AI.substring(0,2)=="In")return("show");if (AI.substring(0,3)=="Out")return("hide");return("");}
function F_I8 (AI){
var t=AI;if (t.indexOf("Top Right")!=-1)return (45);if (t.indexOf("Top Left")!=-1)return (315);if (t.indexOf("Bottom Right")!=-1)return (135);if (t.indexOf("Bottom Left")!=-1)return (225);if (t.indexOf("Top")!=-1)return (0);if (t.indexOf("Bottom")!=-1)return (180);if (t.indexOf("Right")!=-1)return (90);if (t.indexOf("Left")!=-1)return (270);return(0)
}
function F_C8 (){this.dragCollision=null;this.dropCollision=null;
this.moveCollision=null;
}
function F_A3 (Z8){var o=Z8.J8( "objectID",null);if(document.objectModel[o]){
var t=Z8.J8( "when","drop")+"Collision";if(this[t]==null)
this[t]=new Array(0);this[t][this[t].length]=new F_B6(
o,
Z8.J8( "message","collision"),
Z8.J8( "type","intersection"));}
}
function F_B6(F7,message,type){this.F7=F7;this.message=message;this.type=type;this.AX=false;this.X0=F_X0;}
function F_S6(G4){with(G4){if(dragCollision!=null)
for ( var i=0;i<dragCollision.length;i++)
dragCollision[i].AX=false;if(dropCollision!=null)
for ( var i=0;i<dropCollision.length;i++)
dropCollision[i].AX=false;if(moveCollision!=null)
for ( var i=0;i<moveCollision.length;i++)
moveCollision[i].AX=false;}
}
function F_C3(G4,AR){var c=G4[AR+"Collision"];var o=false;for ( var i=0;i<c.length;i++){var o=false;var d=c[i];var P4=document.objectModel[d.F7];if ((d.type=="intersection")&&F_X0(G4,P4,"int"))
o=true;if ((d.type=="not intersection")&&!F_X0(G4,P4,"int"))
o=true;if ((d.type=="contained by")&&F_X0(G4,P4,"cont"))
o=true;if ((d.type=="not contained by")&&!F_X0(G4,P4,"cont"))
o=true;if ((d.type=="contains")&&F_X0(P4,G4,"cont"))
o=true;if ((d.type=="not contains")&&!F_X0(P4,G4,"cont"))
o=true;if ((d.type=="mouse inside")&&F_R4(P4,window.NOFevent.pageX,window.NOFevent.pageY))
o=true;if ((d.type=="mouse not inside")&&!F_R4(P4,window.NOFevent.pageX,window.NOFevent.pageY))
o=true;if(o){if (d.AX==false){sendMsg(G4.W4,d.message,d.F7,G4.W4);d.AX=true;}
}
else
d.AX=false;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -