Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/ext
In directory usw-pr-cvs1:/tmp/cvs-serv13318
Modified Files:
inline.js
Log Message:
Fixed NS4.0 bug. Does not allow to reassign a parameter
Index: inline.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/ext/inline.js,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** inline.js 2001/02/04 20:03:24 1.7
--- inline.js 2001/02/07 18:14:30 1.8
***************
*** 9,15 ****
*/
! DynAPI.findLayers=function(dyndoc,or) {
var divs=[];
! or=or||dyndoc;
if (is.ns4) divs=dyndoc.doc.layers;
if (is.ns6) divs=dyndoc.doc.getElementsByTagName("DIV");
--- 9,15 ----
*/
! DynAPI.findLayers=function(dyndoc,pr) {
var divs=[];
! var or=pr||dyndoc;
if (is.ns4) divs=dyndoc.doc.layers;
if (is.ns6) divs=dyndoc.doc.getElementsByTagName("DIV");
***************
*** 52,66 ****
DynLayer.prototype.updateValues=function() {
! if (is.ns) {
this.x=parseInt(this.css.left);
this.y=parseInt(this.css.top);
! this.w=is.ns4? this.css.clip.width : parseInt(this.css.width);
! this.h=is.ns4? this.css.clip.height : parseInt(this.css.height);
! if (is.ns4)
this.clip=[this.css.clip.top,this.css.clip.right,this.css.clip.bottom,this.css.clip.left];
! this.bgColor =
this.doc.bgColor!="this.doc.bgColor"?this.doc.bgColor:null;
this.bgImage =
this.elm.background.src!=""?this.elm.background.src:null;
this.html = this.innerHTML = this.elm.innerHTML = "";
}
! else if (is.ie) {
this.x=this.elm.offsetLeft;
this.y=this.elm.offsetTop;
--- 52,66 ----
DynLayer.prototype.updateValues=function() {
! if (is.ns4) {
this.x=parseInt(this.css.left);
this.y=parseInt(this.css.top);
! this.w=this.css.clip.width;
! this.h=this.css.clip.height;
!
this.clip=[this.css.clip.top,this.css.clip.right,this.css.clip.bottom,this.css.clip.left];
! this.bgColor =
this.doc.bgColor!="this.doc.bgColor"?this.doc.bgColor:null;
this.bgImage =
this.elm.background.src!=""?this.elm.background.src:null;
this.html = this.innerHTML = this.elm.innerHTML = "";
}
! else if (is.ie || is.ns6) {
this.x=this.elm.offsetLeft;
this.y=this.elm.offsetTop;
***************
*** 85,91 ****
};
DynAPI.isDirectChildOf = function(l, parent) {
! if(is.ns) return (l.parentLayer == parent);
! for(var p=l.parentElement;p;p=p.parentElement)
! if(p.tagName.toLowerCase()=='div') return p==parent;
return !parent.tagName;
};
--- 85,94 ----
};
DynAPI.isDirectChildOf = function(l, parent) {
! if(is.ns4) return (l.parentLayer == parent);
! if(is.ns6) {
! for(var
p=l.parentNode;p!=dyndoc.doc;p=p.parentNode)if(p.tagName.toLowerCase()=='div') return
p==parent;
! return !parent.tagName;
! }
! for(var
p=l.parentElement;p;p=p.parentElement)if(p.tagName.toLowerCase()=='div') return
p==parent;
return !parent.tagName;
};
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs