From: Daniel H. <dhe...@ya...> - 2000-11-04 19:00:08
|
The same for me .... Congratulation for this API .. I used Dynapi from Dan and just discovered this new great api. I started to port my old apps to this API, and It seems that some Dan's libs are missing. I started a quick (& dirty port) of the wipe. see attached file. Maybe it could help ??? Just an example : having a layer, then you can wipe it from center to corners layer.setClip([layer.h/2,layer.w/2,layer.h/2,layer.w/2]); layer.wipeTo(0,layer.w,layer.h,0); An other question: what is the simplest way to get the current mouse position without using events (I tried the target.x & target.y, seems fine except that events on IE5 very very very slow (why?) and some eratic behavior) Thanks. Daniel Herlemont http://www.yats.com/finance (try this and you will find some (very old) usage of the DynLayer // // wipe.js // function DynLayerWipeInit(clipTop,clipRight,clipBottom,clipLeft) { this.setClip([clipTop,clipRight,clipBottom,clipLeft]); } function DynLayerWipeTo(endt,endr,endb,endl,num,speed,fn) { var a=this.getClip(); var distt = (endt!=null)? endt-a[0] : 0 var distr = (endr!=null)? endr-a[1] : 0 var distb = (endb!=null)? endb-a[2] : 0 var distl = (endl!=null)? endl-a[3] : 0 this.wipeStart(distt,distr,distb,distl,endt,endr,endb,endl,num,speed,fn) } function DynLayerWipeBy(distt,distr,distb,distl,num,speed,fn) { var a=this.getClip(); this.wipeStart(distt,distr,distb,distl,distt+a[0],distr+a[1],distb+a[2],dist l+a[3],num,speed,fn) } function DynLayerWipeStart(distt,distr,distb,distl,endt,endr,endb,endl,num,speed,fn) { if (this.wipeActive) return if (!speed) speed=15; if (!num) num=1000/speed; if (!fn) fn = null this.wipeActive = true var a=this.getClip(); this.wipe(distt/num,distr/num,distb/num,distl/num,endt,endr,endb,endl,a[0],a [1],a[2],a[3],num,1,speed,fn) } function DynLayerWipe(dt,dr,db,dl,endt,endr,endb,endl,st,sr,sb,sl,num,i,speed,fn) { if (!this.wipeActive) return if (i++ < num) { this.setClip([st+i*dt,sr+i*dr,sb+i*db,sl+i*dl]) setTimeout(this+".wipe("+dt+","+dr+","+db+","+dl+","+endt+","+endr+","+endb+ ","+endl+","+st+","+sr+","+sb+","+sl+","+num+","+i+","+speed+",\""+fn+"\")", speed) } else { this.wipeActive = false this.setClip([endt,endr,endb,endl]) eval(fn) } } // to be called at DynApi.onLoad function DynLayerPrototypeWipeInit() { DynLayer.prototype.wipeInit = DynLayerWipeInit; DynLayer.prototype.wipeTo = DynLayerWipeTo; DynLayer.prototype.wipeBy = DynLayerWipeBy; DynLayer.prototype.wipeStart = DynLayerWipeStart; DynLayer.prototype.wipe = DynLayerWipe; } ----- Original Message ----- From: Jason LaFosse <ja...@go...> To: <dyn...@li...> Sent: Saturday, November 04, 2000 4:20 PM Subject: [Dynapi-Help] core.ext.slide.htm example not working in 2001030b > Not sure if anyone else is aware of this but I have found that the > core.ext.slide.htm example does not work (IE5) in the latest distribution: > dynapi-2000.10.30b.zip, however it was working in the: > dynapi20001024-full.zip version. > > Pax, > Jason > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |