Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q251 How do you access the images in a layer in Netscape?

irt.org | Knowledge Base | DHTML | Q251 [ previous next ]

Q251 How do you access the images in a layer in Netscape?

You need to access the layers document, i.e. document.layer['layername'].document.images['imagename']

The following illustrates two images, one normal image, and another in a layer:

<img src="imageInDocument.gif" name="myImage" width="100" height="100">

<layer name="myLayer">
<img SRC="imageInLayer.gif" name="myImage" width="100" height="100">
</layer>

<script language="JavaScript"><!--
alert(document.layers['myLayer'].document.images['myImage'].src);
alert(document.images['myImage'].src);
//--></script>

Feedback on 'Q251 How do you access the images in a layer in Netscape?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.