<!-- http://js.webjx.com/ -->
<!-- http://bbs.webjx.com/-->
<!-- 脚本说明:第一步:把如下代码加入<body>区域中-->
<center>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var rand1 = 0;
var useRand = 0;
images = new Array;
images[1] = new Image();
images[1].src = "/img/200406301.jpg";
images[2] = new Image();
images[2].src = "/img/200406302.jpg";
images[3] = new Image();
images[3].src = "/img/200406303.jpg";
images[4] = new Image();
images[4].src = "/img/200406304.jpg";
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[useRand].src;
}
// End -->
</script>
<a onClick="swapPic();"><img name="randimg" src="/img/200406301.jpg" tppabs="http://www.webjx.com/img/200406301.jpg"></a><br>
<font face="Verdana" size="-2">click image to change</font>
</center>
<!--第二步:把<body>区域中内容改为:-->
<body bgcolor="#fef4d9" OnLoad="swapPic()">
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]