<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>2个按钮控制的左右图片滚动特效代码 - www.webdm.cn</title>
<style type="text/css">
a { color:#213f71; font-size:9pt; text-decoration:none;}
a:hover {color:#0066cc; }
.blk_18 {
overflow:hidden;
zoom:1;
font-size:9pt;
border:1px solid #e3e3e3;
background:#eee;
width:692px;
margin-top:8px;
}
.blk_18 .pcont {
width:638px;
float:left;
overflow:hidden;
padding-left:5px;
}
.blk_18 .ScrCont {
width:32766px;
zoom:1;
margin-left:-5px;
}
.blk_18 #List1_1, .blk_18 #List2_1 {
float:left;
}
.blk_18 .LeftBotton, .blk_18 .RightBotton {
width:15px;
height:74px;
float:left;
background:url(http://www.webdm.cn/images/20091006/ax.gif) no-repeat;
}
.blk_18 .LeftBotton {
background-position: 0 0;
margin:8px 5px 0;
}
.blk_18 .RightBotton {
background-position: 0 -100px;
margin:8px 1px 10px 5px;
}
.blk_18 .LeftBotton:hover {
background-position: -20px 0;
}
.blk_18 .RightBotton:hover {
background-position: -20px -100px;
}
.blk_18 .pl img {
display:block;
cursor:pointer;
border:none;
margin:6px auto 1px auto;
}
.blk_18 .pl {
width:105px;
border:1px solid #f3f3f3;
float:left;
float:left;
text-align:center;
line-height:24px;
}
.blk_18 a.pl:hover {
border:1px solid #5dacec;
color:#5dacec;
background:#fff;
}
</style>
<script type="text/javascript">
var Speed_1 = 10; //速度(毫秒)
var Space_1 = 20; //每次移动(px)
var PageWidth_1 = 107 * 6; //翻页宽度
var interval_1 = 5000; //翻页间隔时间
var fill_1 = 0; //整体移位
var MoveLock_1 = false;
var MoveTimeObj_1;
var MoveWay_1="right";
var Comp_1 = 0;
var AutoPlayObj_1=null;
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else
{return eval('document.all.'+objName)}}
function AutoPlay_1(){clearInterval(AutoPlayObj_1);AutoPlayObj_1=setInterval('ISL_GoDown_1();ISL_StopDown_1
();',interval_1)}
function ISL_GoUp_1(){if(MoveLock_1)return;clearInterval
(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="left";MoveTimeObj_1=setInterval('ISL_ScrUp_1();',Speed_1);}
function ISL_StopUp_1(){if(MoveWay_1 == "right"){return};clearInterval(MoveTimeObj_1);if((GetObj
('ISL_Cont_1').scrollLeft-fill_1)%PageWidth_1!=0){Comp_1=fill_1-(GetObj('ISL_Cont_1').scrollLeft
%PageWidth_1);CompScr_1()}else{MoveLock_1=false}
AutoPlay_1()}
function ISL_ScrUp_1(){if(GetObj('ISL_Cont_1').scrollLeft<=0){GetObj('ISL_Cont_1').scrollLeft=GetObj
('ISL_Cont_1').scrollLeft+GetObj('List1_1').offsetWidth}
GetObj('ISL_Cont_1').scrollLeft-=Space_1}
function ISL_GoDown_1(){clearInterval(MoveTimeObj_1);if(MoveLock_1)return;clearInterval
(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="