what browser are you developing in?  NS has a separate document element
for each layer.  this means that they also have their own images array
etc.  you need to include the layer when refering to the images of a
layer. eg:
    layer1.doc.images['imgName'].src = 'newSource.gif';

I believe in IE, a doc object is created that just points back to the
main document.  This way, both will point to the correct image.

Sean Patrick Floyd wrote:

> Hi,
>
> I have been using DynApi infrequently for about a year, but I'm
> rather new to the sourceforge version. I have a problem. Images
> inside a DynLayer object do not seem to be added to the
> document.images array. document.images.length returns 0. How can I
> access those Images?
>
> I have a number of DynLayers, each of which contains an IMG tag with
> a unique name attribute, and I want to swap Images when the DynLayer
> containing them receives a certain event. The event handling works
> fine, but I can't access the images. I solved the problem temporarily
> by setting the images as background to the DynLayers thru
> setBgImage(), but I don't think that's a very elegant solution. Any
> help?
>
> Thanks in advance,
>
> Sean
> +----------------------------------------+
> | Sean Patrick Floyd   (the Seanizer)    |
> | [EMAIL PROTECTED]      [EMAIL PROTECTED] |
> | http://singbluesilver.manilasites.com/ |
> | http://seanizer.editthispage.com/      |
> | http://seanizer.de/      ICQ: 58466693 |
> +----------------------------------------+
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




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

Reply via email to