No,  because of the way that NS handles images you need to use a different
method.  Try using the following for NS.

myLayer.doc.images[0];

where 'myLayer' is the name of the layer you create.

-----Original Message-----
From: Nuno Ferreira [mailto:[EMAIL PROTECTED]]
Sent: 02 April 2001 12:16
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] Accessing an image src property crossbrowser


Hi guys,

I have defined and image inside a DynLayer using setHTML().
the image has name="testname".

In IE I can just use "document.testname.src" and it works fine.
but in NN it doesn't work (maybe because NN treats each layer as a separate
document).

Do you know a way of accessing an image src property (for rollovers and
such) for an
image that is inside a DynLayer that works in both browsers?

NunoF


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

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

Reply via email to