F
faraz_mit
Hi,
This might be an easy question or I am missing something but I can't
access the src property of an image tag in IE but I can access the
width property. Is my syntax wrong for accessing the src property. I
also tried getelementById and no luck
I have the following simple javascript function in the head section:
function changeimgsrc(img_src){
alert(document.all.im.src); //DOESN'T work and shows
undefined in IE
alert(document.all.im.width]); // WORKS and shows 360
}
I have the following nested divs in my body:
<div id="horizontal_container" >
<h3 class="horizontal_accordion_toggle">...</h3>
<div class="horizontal_accordion_content">
<div id="mt" ><img id="im" name="im1" width="360" src="images/
com_01_angle.gif" /></div>
....
<div ><a href="#"
onclick="changeimgsrc('cum_01_angel_blue.gif');">test</a> </div>
......
Thanks for your help in advanced.
Ross
This might be an easy question or I am missing something but I can't
access the src property of an image tag in IE but I can access the
width property. Is my syntax wrong for accessing the src property. I
also tried getelementById and no luck
I have the following simple javascript function in the head section:
function changeimgsrc(img_src){
alert(document.all.im.src); //DOESN'T work and shows
undefined in IE
alert(document.all.im.width]); // WORKS and shows 360
}
I have the following nested divs in my body:
<div id="horizontal_container" >
<h3 class="horizontal_accordion_toggle">...</h3>
<div class="horizontal_accordion_content">
<div id="mt" ><img id="im" name="im1" width="360" src="images/
com_01_angle.gif" /></div>
....
<div ><a href="#"
onclick="changeimgsrc('cum_01_angel_blue.gif');">test</a> </div>
......
Thanks for your help in advanced.
Ross