首页 > 网页特效 > JS幻灯 > 购物网站四屏带缩略图的JS幻灯特效代码

购物网站四屏带缩略图的JS幻灯特效代码

时间:2010-04-13    来源:站长之家

购物网站四屏带缩略图的JS幻灯特效代码,代码应用如下示例:

1.在<head>区加入以下代码

<link href="css/css.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="js/imagerollover.js"></script>

2.在<body>区加入以下代码

<SCRIPT language=javascript>
var m_nPageInitTime = new Date();
var MainTopRoll = new xwzRollingImageTrans("IMG_MAIN_TOP_ROLL_DETAIL", "IMGS_MAIN_TOP_ROLL_THUMBNAIL");
MainTopRoll.addItem("http://www.5icool.org/","images/shower_01.jpg");
MainTopRoll.addItem("http://www.5icool.org/","images/shower_02.jpg");
MainTopRoll.addItem("http://www.5icool.org/","images/shower_03.jpg");
MainTopRoll.addItem("http://www.5icool.org/","images/shower_04.jpg");
</SCRIPT>

3.在底部加入以下代码

    <SCRIPT language=JavaScript>
MainTopRoll.Index =  parseInt('0');
MainTopRoll.install();
    </SCRIPT>

特效推荐

热门特效