写一个点击后改变图片的程序 onclick事件不执行
<html><head><scripttype="text/javascript">functionchangeit(){$("img").attr("src","pic...
<html>
<head>
<script type="text/javascript">
function changeit(){
$("img").attr("src","pics/03.jpg");
}
</script>
</head>
<body>
<img src="pics/02.jpg" onclick="changeit()" id="img"/>
</body>
</html> 展开
<head>
<script type="text/javascript">
function changeit(){
$("img").attr("src","pics/03.jpg");
}
</script>
</head>
<body>
<img src="pics/02.jpg" onclick="changeit()" id="img"/>
</body>
</html> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询