现在的位置: 首页 > 综合 > 正文

鼠标放在图片连接上面,预览图片

2012年04月25日 ⁄ 综合 ⁄ 共 481字 ⁄ 字号 评论关闭

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language="javascript">
function showPic()
{
   document.all("lab2").innerHTML="<img src='d:/img/beachball.jpg'>";
}
function hiddenPic()
{
   document.all("lab2").innerHTML="";
}
</script>
</head>

<body>
<label id=lab1 onmouseover=showPic() onmouseout=hiddenPic() style="cursor:hand">浏览图片</label>

<table border="0" width="30%" id="table1">
<tr>
<td><label id=lab2></label>
 </td>
</tr>
</table>

</body>

</html>

抱歉!评论已关闭.