Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/ext
In directory usw-pr-cvs1:/tmp/cvs-serv25976
Modified Files:
inline.js
Log Message:
Use assignElement as a method of DynLayer, not a function. Also removed
setting of innerHTML and elm.innerHTML in NS4, and setting of innerHTML
on the DynLayer (not the elm) for IE and NS6.
Index: inline.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/ext/inline.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** inline.js 2001/02/07 18:14:30 1.8
--- inline.js 2001/03/08 18:54:44 1.9
***************
*** 5,9 ****
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
! Requirements:
dynapi.api [dynlayer, dyndocument, browser]
*/
--- 5,9 ----
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
! Requirements:
dynapi.api [dynlayer, dyndocument, browser]
*/
***************
*** 20,26 ****
var dlyr = new DynLayer(id);
dlyr.parent = dyndoc;
! DynLayer.assignElement(dlyr,divs[i]);
dlyr.created = true;
!
dlyr.dyndoc=or;
if (dyndoc.getClass()!=DynDocument) dlyr.isChild=true;
--- 20,26 ----
var dlyr = new DynLayer(id);
dlyr.parent = dyndoc;
! dlyr.assignElement(divs[i]);
dlyr.created = true;
!
dlyr.dyndoc=or;
if (dyndoc.getClass()!=DynDocument) dlyr.isChild=true;
***************
*** 34,46 ****
if (index>0) dyndoc.doc.window[id.substr(0,index)] =
dyndoc.all[id];
if (is.ns4) {
! for (ict in dlyr.doc.images)
dlyr.doc.images[ict].lyrobj=dlyr;
}
else if (is.ns6) {
! for (ict in dlyr.doc.images)
dlyr.doc.images[ict].lyrobj=dlyr.elm;
}
else {
! for (ict in dlyr.elm.all.tags("img"))
dlyr.elm.all.tags("img")[ict].lyrobj=dlyr;
}
--- 34,46 ----
if (index>0) dyndoc.doc.window[id.substr(0,index)] =
dyndoc.all[id];
if (is.ns4) {
! for (var ict in dlyr.doc.images)
dlyr.doc.images[ict].lyrobj=dlyr;
}
else if (is.ns6) {
! for (var ict in dlyr.doc.images)
dlyr.doc.images[ict].lyrobj=dlyr.elm;
}
else {
! for (var ict in dlyr.elm.all.tags("img"))
dlyr.elm.all.tags("img")[ict].lyrobj=dlyr;
}
***************
*** 60,64 ****
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) {
--- 60,64 ----
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 = "";
}
else if (is.ie || is.ns6) {
***************
*** 69,73 ****
this.bgImage = this.css.backgroundImage;
this.bgColor = this.css.backgroundColor;
! this.html = this.innerHTML = this.elm.innerHTML;
}
this.z = this.css.zIndex;
--- 69,73 ----
this.bgImage = this.css.backgroundImage;
this.bgColor = this.css.backgroundColor;
! this.html = this.elm.innerHTML;
}
this.z = this.css.zIndex;
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs