Greetings,
  Somewhere I remember reading that when you resize
ns4, the setHTML command creates a new layer in ns4. 
It does not overwrite the existing layer but creates a
new one.  I am working on problems with buttonimage.js
and kept getting an error that the images array [name]
(image is set in the html code using the img tag and a
name ) had no properties after a resize.  I changed
the code to look for the image by number and the
resize works normally.  Before I suggest a change in
the buttonimage.js, can somebody clarify this for me? 
Getting old and the memory seems to be fading....
Original code in buttonimage change function:

BtImMenu.prototype.change = function(img) {
        if (img) this.doc.images[this.id+"Image"].src =
img.src;
};

Changed to:

        if (img && !is.ns4)
this.doc.images[this.id+"Image"].src = img.src;
        if (img && is.ns4) this.doc.images[0].src = img.src;

With this change, the resize works under ns4.
Comments, suggestions?

Cheers,
Dave C.  "You Changed What?!?"

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to