首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

请问一个Chrome中的HTML代码的写法

2013-01-07 
请教一个Chrome中的HTML代码的写法scriptfunction selImg(text) { alert(text)}/script....img id

请教一个Chrome中的HTML代码的写法


<script>
  function selImg(text)
 { alert(text);}
</script>

....
<img id="img1" onclick="selImg(this.src)" onmouseup=""showOrHide(0)" src="face/img1.gif"
value="face/img1.gif" />
....


这段HTML代码在IE下正常, 点击img1显示face/img1.gif, 但是在Chrome下什么都不显示, 要怎么写才对啊?
[解决办法]
经过测试 chrome显示正常 点击img1, alert路径

热点排行