getting img src

A

Andrew Poulos

I've got some HTML in a frame that looks a bit like this

<div id="lowerpanel">
<img id="a" src="questions/1_1_1L0.png" alt="a">
<img id="b" src="pics/x.gif" alt="b">
<img id="c" src="questions/1_1_1L2.png" alt="c">
....
</div>

and some code in the frameset that looks like this

var imgs =
frameref.getElementById("lowerPanel").getElementsByTagName("img");

for (var i = 0, num = imgs.length; i < num; i++) {
alert( imgs.id ); // show a, b, c...
alert( imgs.src ); // always shows .../pics/x.gif
}

The src is not shown correctly in IE 6 only???

Andrew Poulos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,060
Latest member
BuyKetozenseACV

Latest Threads

Top