***图形特效***图片响应鼠标变换
把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件--------------------------------------------------------------------------------
脚本说明:
第一步:把如下代码加入<body>区域中
<center>
<script language="javascript">
<!-- begin
var rand1 = 0;
var userand = 0;
images = new array;
images = new image();
images.src = "image1.gif";
images = new image();
images.src = "image2.gif";
images = new image();
images.src = "image3.gif";
images = new image();
images.src = "image4.gif";
function swappic() {
var imgnum = images.length - 1;
do {
var randnum = math.random();
rand1 = math.round((imgnum - 1) * randnum) + 1;
} while (rand1 == userand);
userand = rand1;
document.randimg.src = images.src;
}
//end -->
</script>
<a onclick="swappic();"><img name="randimg" src="image1.gif" tppabs="http://www.csdn.net/javascript/image1.gif">http://code.ik8.com/html/image1.gif</a><br>
<font face="verdana" size="-2">click image to change</font>
</center>
第二步:把<body>区域中内容改为:
<body bgcolor="#fef4d9" onload="swappic()">
--------- ------- - --------------- ------
http://www.huoyue .com.cn 活跃 网,活跃人群的论坛,访问活跃网, 将给 您带来意想不到的收 获,还可以免费 为您开论坛,让您免费拥有与朋友、网友交流的论坛。你 是年轻人吗?你活跃你就上!
页:
[1]