input没有onmouseover事件吗? <input type="image" name="ImageButton1" id="ImageButton1" onmouseover="javascript:this.style.borderWidth='2';this.style.borderColor='#EDF2FB';" src="/Images/column1.gif" border="0" />这个无效。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你写错而已~~最简单你试试<input type="image" onmouseover="alert()" /> <html><head><script type="text/javascript"> function changeStyle(){ document.getElementById("imageTest").style.width="83px";}</script></head><body><form ><input type="image" id="imageTest" onmouseover="changeStyle()" src="1.jpg" ></form></body></html>你要查查input type=image 时的样式名称,像你写的borderColor和borderWidth都对此种情况不起作用 <html><head><STYLE>.applyBorder { border:0.2cm groove orange }.removeBorder { border:none }</STYLE></head><body><form><input type="image" id="imageTest" onmouseover="this.className='applyBorder'"onmouseout="this.className='removeBorder'" src="1.jpg" ></form></body></html>试试这个看看是你要的效果不? 小问题求助!! 简单的setTimeout问题 传参问题 (this) 哪位 JS 达人 知道如何给 动态添加的控件增加属性 谢谢 怎样实现类似www.dpreview.com上左边的特效菜单? 关于xmlhttp处理汉字编码的问题 如何结合html实现程序关键字的高亮显示/蓝色显示呢 虚心请教:如何用JS实现类似COMBOX功能? 如何编辑插件类似3721魔法设置??? 哪为兄台知道JavaScript去掉字符串左右空格的函数怎样写? 一个极难的问题!困扰我很长时间了!关于javascript对移动设备的操作。在线等! 请大家指点:在浏览器中如何访问本地资源呢?
<head>
<script type="text/javascript">
function changeStyle()
{
document.getElementById("imageTest").style.width="83px";
}
</script>
</head>
<body>
<form >
<input type="image" id="imageTest" onmouseover="changeStyle()" src="1.jpg" >
</form>
</body>
</html>你要查查input type=image 时的样式名称,像你写的borderColor和borderWidth都对此种情况不起作用
<head>
<STYLE>
.applyBorder { border:0.2cm groove orange }
.removeBorder { border:none }
</STYLE>
</head>
<body>
<form>
<input type="image" id="imageTest" onmouseover="this.className='applyBorder'"
onmouseout="this.className='removeBorder'" src="1.jpg" >
</form>
</body>
</html>试试这个看看是你要的效果不?