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

<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>

posted @ 2006-07-27 20:50  MaxIE  阅读(596)  评论(0编辑  收藏  举报