PDA

View Full Version : netscape help for layers


kamarthi7
05-06-2003, 09:22 AM
hello,

can anybody please tell me how to access an image which is in the layer(div tag). I want to pass it to a function, and when a link is clicked, I want change the image dynamically in the netscape 4.x browser.

thanks in advance
ANIL

smeagol
05-06-2003, 02:54 PM
You can access the Image like this:

document.images.WhateverYourImageTagsNameIs;

To change the Image SRC:

document.images.WhateverYourImageTagsNameIs.src = 'newphoto.jpg';

Does this help?