关于img显示图片问题
<input type= "image " src= "../../images/arrow_down.gif " onclick= "rdo1click() " alt= "Submit " id= "img " name= "img " title= "fffff "/> 这样一个东西
rdo1click()的定义这样:
function rdo1click()
{
document.all( "img ").src= "../../images/FlowmessageGray.gif ";
return false;
}
但是点击后图片的src还是没有变化,我想让点击后图片变为FlowmessageGray.gif上的,该怎么做?
------解决方案--------------------这么写没有什么问题,只是对于IE可以。
如果要兼容firefox,要用document.getElementById( "img ").src
------解决方案-------------------- <input type= "image " src= "../../images/arrow_down.gif " onclick= "this.scr= 'aa.jpg '; " alt= "Submit " id= "img " name= "img " title= "fffff "/>