鼠标放在图片连接上面,预览图片
<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>