Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv14063
Modified Files:
dynlayer.js
Log Message:
fixed image-events (sorry :)
Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** dynlayer.js 2001/02/25 08:54:41 1.31
--- dynlayer.js 2001/02/25 10:40:01 1.32
***************
*** 19,23 ****
this.bgColor=a[5]||null;
this.visible=(a[6]!=false && a[6]!='hidden');
! this.z=a[7]||0;
this.bgImage=a[8]||null;
}
--- 19,23 ----
this.bgColor=a[5]||null;
this.visible=(a[6]!=false && a[6]!='hidden');
! this.z=a[7]||null;
this.bgImage=a[8]||null;
}
***************
*** 67,72 ****
this.doc=this.elm.document;
this.doc.lyrobj=this;
- for (var i in this.doc.images) this.doc.images[i].lyrobj=this;
- for (i=0;i<this.doc.links.length;i++) this.doc.links[i].lyrobj=this;
}
this.elm.lyrobj=this;
--- 67,70 ----
***************
*** 74,89 ****
if (is.def) {
- this.css.left=this.x;
- this.css.top=this.y;
- this.setHTML(this.getInnerHTML(),false);
if (this.w) this.css.width=this.w;
if (this.h) this.css.height=this.h;
if (!this.clip) this.css.clip='rect(0px '+(this.w||0)+'px
'+(this.h||0)+'px 0px)';
} else if (is.ns4) {
this.elm.moveTo(this.x,this.y);
this.doc.write(this.getInnerHTML());
this.doc.close();
! if (this.w) this.css.clip.width=this.w;
! if (this.h) this.css.clip.height=this.h;
}
if (this.bgColor!=null) this.setBgColor(this.bgColor);
--- 72,91 ----
if (is.def) {
if (this.w) this.css.width=this.w;
if (this.h) this.css.height=this.h;
if (!this.clip) this.css.clip='rect(0px '+(this.w||0)+'px
'+(this.h||0)+'px 0px)';
+ this.css.left=this.x;
+ this.css.top=this.y;
+ this.setHTML(this.getInnerHTML(),false);
+ if (is.ie) for (i in this.elm.all.tags("img"))
+this.elm.all.tags("img")[i].lyrobj=this;
+ else if (is.ns6) for (i in this.doc.images)
+this.doc.images[i].lyrobj=this.elm;
} else if (is.ns4) {
+ if (this.w) this.css.clip.width=this.w;
+ if (this.h) this.css.clip.height=this.h;
this.elm.moveTo(this.x,this.y);
this.doc.write(this.getInnerHTML());
this.doc.close();
! for (var i in this.doc.images) this.doc.images[i].lyrobj=this;
! for (i=0;i<this.doc.links.length;i++) this.doc.links[i].lyrobj=this;
}
if (this.bgColor!=null) this.setBgColor(this.bgColor);
***************
*** 91,95 ****
else if (is.ie55 && this.bgImage==null && this.html==null)
this.setBgImage('javascript:null');
if (this.clip) this.setClip(this.clip)
! if (this.z!=null) this.css.zIndex=this.z;
this.css.visibility=this.visible? "inherit" : (is.ns4?"hide":"hidden");
--- 93,98 ----
else if (is.ie55 && this.bgImage==null && this.html==null)
this.setBgImage('javascript:null');
if (this.clip) this.setClip(this.clip)
!
! if (this.z) this.css.zIndex=this.z;
this.css.visibility=this.visible? "inherit" : (is.ns4?"hide":"hidden");
***************
*** 128,132 ****
this.css=this.elm.style;
this.doc=this.parent.doc;
! } else if (is.ns4) {
this.css=elm;
this.doc=elm.document;
--- 131,137 ----
this.css=this.elm.style;
this.doc=this.parent.doc;
! if (is.ie) for (i in this.elm.all.tags("img"))
this.elm.all.tags("img")[i].lyrobj=this;
! else if (is.ns6) for (i in this.doc.images)
this.doc.images[i].lyrobj=this.elm;
! } else if (is.ns4) {
this.css=elm;
this.doc=elm.document;
***************
*** 157,161 ****
}
child.invokeEvent("resize");
! if (child.z!=null) child.css.zIndex=child.z;
child.created=true;
if (child.hasEventListeners) child.captureMouseEvents();
--- 162,166 ----
}
child.invokeEvent("resize");
! if (child.z) child.css.zIndex=child.z;
child.created=true;
if (child.hasEventListeners) child.captureMouseEvents();
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs