javaScript精华(1)--超链接变色字体预览图片技术

   最近看了一下js,觉得超链接页面预览技术值得学习。
//-->
</script>
</head>
<body>
<center>
<form name="form">
<h1>将光标移至超链接上看预览</h1>
<a href="example1.html" name="link1" onMouseOver="link1over()" onmouseout="link1out()">这是链接1</a> <br></br>
<a href="example2.html" name="link2" onMouseOver="link2over()" onmouseout="link2out()">这是链接2</a> <br></br>
<a href="example3.html" name="link3" onMouseOver="link3over()" onmouseout="link3out()">这是链接3</a> <br></br>
<a href="example4.html" name="link4" onMouseOver="link4over()" onmouseout="link4out()">这是链接4</a> <br></br>
<a href="example5.html" name="link5" onMouseOver="link5over()" onmouseout="link5out()">这是链接5</a> <br></br>
<img name="imag1" src="imgs/image.gif" width=456 height=228></img>
</form>
</center>
</body>

</html>

图片在imgs文件夹中,imgs与*。html在一起。

 

   view following:

 

 

 

 

你可能感兴趣的:(JavaScript,html)