J
john_woo
Hi,
if I can get the div object, I'm wondering how to get all the images
within this div. ex.
<div id="123" style="position: relative; width: 1690px; height:
239px;">
<img style="position: absolute; left: 0px; top: 0px; width: 1000px;
height: 239px;" src="/images/fragment?
&left=0&top=0&width=1000&height=239"/>
<img style="position: absolute; left: 1000px; top: 0px; width: 690px;
height: 239px;" src="/portal/fragment?
&left=1000&top=0&width=690&height=239"/>
<div id="aaa" .....>
<img.../>
</div>
I use firefox. I've tried:
var aDiv = document.getElementById("123");
var divimges = aDiv.getElementsByTagName('img');
but it returns all images in all div.
if I can get the div object, I'm wondering how to get all the images
within this div. ex.
<div id="123" style="position: relative; width: 1690px; height:
239px;">
<img style="position: absolute; left: 0px; top: 0px; width: 1000px;
height: 239px;" src="/images/fragment?
&left=0&top=0&width=1000&height=239"/>
<img style="position: absolute; left: 1000px; top: 0px; width: 690px;
height: 239px;" src="/portal/fragment?
&left=1000&top=0&width=690&height=239"/>
<div id="aaa" .....>
<img.../>
</div>
I use firefox. I've tried:
var aDiv = document.getElementById("123");
var divimges = aDiv.getElementsByTagName('img');
but it returns all images in all div.