Because we needed a way of working out what layer contained the image / link that was being clicked on. NS4 doesn't have any internal method of working out where an image is located within the document structure.
Quang Nguyen wrote: > File: dynlayer.js > Line 287 > > if (is.ns4) { > DynLayer.prototype._setHTML=function(html) { > var sTmp=(this.w==null)?'<NOBR>'+this.html+'</NOBR>':this.html; > this.doc.open(); > this.doc.write(sTmp); > this.doc.close(); > for (var i=0;i<this.doc.images.length;i++) > this.doc.images[i].lyrobj=this; > for (i=0;i<this.doc.links.length;i++) > this.doc.links[i].lyrobj=this; > } > } > else if (is.ie) {...} > else {...} > > Why did the developers wrote the following lines when writing the function > _setHTML? > > for (var i=0;i<this.doc.images.length;i++) > this.doc.images[i].lyrobj=this; > for (i=0;i<this.doc.links.length;i++) > this.doc.links[i].lyrobj=this; > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help -- Michael Pemberton [EMAIL PROTECTED] ICQ: 12107010 _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help