日期:2014-05-16  浏览次数:20310 次

js轮换问题?
html:

<!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>无标题文档</title>
<script type="text/javascript" src="untitled1.js"></script>
</head>
<body>

<div style="width:1000px; border:1px solid red; margin:10px auto; height:200px;">
<div style="float:left; height:200px; width:50px;">

<a style="height:20px; width:50px; background-color:#996600;" onmousedown="ISL_GoUp_1()" onmouseup="ISL_StopUp_1()" onmouseout="ISL_StopUp_1()" href="javascript:void(0);" target="_self"><<</a>

</div>
<div style="width:900px; overflow:hidden; height:200px; float:left" id="ISL_Cont_1">
<div style="width:32766px; zoom:1;">
<div id="List1_1">
<div style=" height:150px;width:298px; float:left; border:1px solid black;">11</div>
<div style=" height:150px;width:298px; float:left; border:1px solid black;">22</div>
<div style=" height:150px;width:298px; float:left; border:1px solid black;">33</div>
</div>
<div id="List2_1">
    
</div>
</div>

</div>
<div style="float:right; height:200px; width:50px;">
            <a  style="height:20px; width:50px; background-color:#996600;"  onmousedown="ISL_GoDown_1()" onmouseup="ISL_StopDown_1()" onmouseout="ISL_StopDown_1()" href="javascript:void(0);" target="_self">>></a>

</div>
</div>

</body>
</html>


js:

var Speed_1 = 10; //速度(毫秒)
var Space_1 = 20; //每次移动(px)
var PageWidth_1 = 300; //翻页宽度
var interval_1 = 5000; //翻页间隔时间
var fill_1 = 0; //整体移位
var MoveLock_1 = false;
var MoveTimeObj_1;
var MoveWay_1="left";
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)}