演示图书
<html>
<head>
<title>演示图书</title>
<script language="JavaScript" type="text/JavaScript">
<!--
' 轮换显示图书封面数组 ad
var ad = new Array(5);
ad[1] = "wlsjk_x.jpg";
ad[2] = "wyzh.jpg";
ad[3] = "SQL_x.jpg";
ad[4] = "java_x.jpg";
ad[5] = "Dwv_MX.jpg";
var adindex=0;
' 轮换图书封面函数 show ad()
function showad() {
if (adindex == 5) { adindex = 0; }
adindex++;
document.ad.src = ad[adindex];
timerID=setTimeout("showad()",1000);
}
' 轮换链接 addr 函数 Go ad()
function Goad() { //V1.0
if(adindex==1){var addr="Banner1link.htm";window.navigate(addr);}
if(adindex==2){var addr="Banner2link.htm";window.navigate(addr);}
if(adindex==3){var addr="Banner3link.htm";window.navigate(addr);}
if(adindex==4){var addr="Banner4link.htm";window.navigate(addr);}
if(adindex==5){var addr="Banner5link.htm";window.navigate(addr);}
}
//-->
</script>
</head>
' 装载 图书封面函数 show ad()
<body OnLoad="showad();">
<p align="center" class="style1 style2">演示图书封面;</p>
<table border="0" width="100%" align="center">
<tr>
<td><div align="center">
<a href="javascript:Goad();">
' 插入图书封面
<img src="wyzh.jpg" name="ad" width="150" height="180" border="0" id="ad">
</a> </div></td>
</tr>
</table>
</body>
</html>