就是QQ空间那种效果,但是,现在在火狐下,点击下面的图,上面没反应,还有点上面的图,链接到下一张时,下面滚动条随之滚动很不协调,,,高手看了就懂得的。
图片就不上传了,建一个文件夹随便放十二张图然后命名为1.jpg--12.JPG谢谢啦,急用!!!!!!<!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>
     <style type="text/css">
    <!--
.rollBox{width:604px; height:117px; vertical-align:middle; overflow:hidden;padding:12px 6px 5px 17px; background-color:#E7E7E7;}
.rollBox .LeftBotton{height:60px;width:14px;background:url(images/left.jpg) no-repeat ;overflow:hidden;float:left;display:inline;margin:27px 5px 0 0;cursor:pointer;}
.rollBox .RightBotton{height:60px;width:12px;background:url(images/right.jpg) no-repeat ;overflow:hidden;float:left;display:inline;margin:27px 0 0 10px;cursor:pointer;}
.rollBox .Cont{width:555px;overflow:hidden;float:left; margin-top:8px;}
.rollBox .ScrCont{width:10000000px;}
.rollBox .Cont .pic{width:132px;float:left;text-align:center; padding:3px;}
.rollBox .Cont .pic img{padding:4px;background:#fff;border:1px solid #ccc;display:block;margin:0 auto;}
.rollBox .Cont .pic p{line-height:26px;color:#505050;}
.rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;}
.rollBox .Cont a:hover{color:#f00;text-decoration:underline;}
.rollBox #List1,.rollBox #List2{float:left;}
-->
    </style>
    </head>
    <body>
    <center>
   <div style="width:641px; height:482px; border:2px solid #E7E7E7; padding:26px 0px 5px 0px;">
    <div><img  id="pic01" name="pic" src="images/1.jpg" width="434" height="288"  onClick="javascript:nextPic(1);"  onmousedown="ISL_GoDown()" onmouseup="ISL_StopDown()" onmouseout="ISL_StopDown()  style="cursor:pointer;">
     </div>
    <div style="height:56px;"></div>
    <div class="rollBox">
    <div class="LeftBotton" onmousedown="ISL_GoUp()" onmouseup="ISL_StopUp()" onmouseout="ISL_StopUp()"></div>
    <div class="Cont" id="ISL_Cont">
    <div class="ScrCont">
    <div id="List1">
    <!-- 图片列表 begin -->
    <div class="pic">
    <a href="#"><img name="1" src="images/1.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
    <div class="pic">
    <a href="#"><img name="2" src="images/2.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
       </div>
    <div class="pic">
    <a href="#"><img name="3" src="images/3.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="4" src="images/4.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="5" src="images/5.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="6" src="images/6.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="7" src="images/7.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="8" src="images/8.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="9" src="images/9.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="10" src="images/10.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="11" src="images/11.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        <div class="pic">
    <a href="#"><img name="12" src="images/12.jpg" onClick="selectP()" width="125" height="82" alt="" /></a>
        </div>
        
    <!-- 图片列表 end -->
    </div>
    <div id="List2"></div>
    </div>
    </div>
    <div class="RightBotton" onmousedown="ISL_GoDown()" onmouseup="ISL_StopDown()" onmouseout="ISL_StopDown()"></div>
    </div>
    
    </div>
   <div style="width:645px; height:29px; background-color:#F4EAE9;"> </div>
   
    </center>
    </body>
    </html>
    <script language="javascript" type="text/javascript"> 
<!--//--><![CDATA[//><!--
//图片滚动列表 mengjia 070816
var Speed = 10; //速度(毫秒)
var Space = 5; //每次移动(px)
var PageWidth = 138; //翻页宽度
var fill = 0; //整体移位
var MoveLock = false;
var MoveTimeObj;
var Comp = 0;
var AutoPlayObj = null;
GetObj("List2").innerHTML = GetObj("List1").innerHTML;
GetObj('ISL_Cont').scrollLeft = fill;
GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);}
GetObj("ISL_Cont").onmouseout = function(){AutoPlay();}
AutoPlay();
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}
function AutoPlay(){ //自动滚动
clearInterval(AutoPlayObj);
AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',50000000); //间隔时间
}
function ISL_GoUp(){ //上翻开始
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
MoveTimeObj = setInterval('ISL_ScrUp();',Speed);
}
function ISL_StopUp(){ //上翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){
Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrUp(){ //上翻动作
if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}
GetObj('ISL_Cont').scrollLeft -= Space ;
}
function ISL_GoDown(){ //下翻
clearInterval(MoveTimeObj);
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
ISL_ScrDown();
MoveTimeObj = setInterval('ISL_ScrDown()',Speed);
}
function ISL_StopDown(){ //下翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){
Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrDown(){ //下翻动作
if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}
GetObj('ISL_Cont').scrollLeft += Space ;
}
function CompScr(){
var num;
if(Comp == 0){MoveLock = false;return;}
if(Comp < 0){ //上翻
if(Comp < -Space){
Comp += Space;
num = Space;
}else{
num = -Comp;
Comp = 0;
}
GetObj('ISL_Cont').scrollLeft -= num;
setTimeout('CompScr()',Speed);
}else{ //下翻
if(Comp > Space){
Comp -= Space;
num = Space;
}else{
num = Comp;
Comp = 0;
}
GetObj('ISL_Cont').scrollLeft += num;
setTimeout('CompScr()',Speed);
}
}
function selectP()
{
pic.src=event.srcElement.src;

event.srcElement.style.borderColor="";

}
var picstr="images/1.jpg,images/2.jpg,images/3.jpg,images/4.jpg,images/5.jpg,images/6.jpg,images/7.jpg,images/8.jpg,images/9.jpg,images/10.jpg,images/11.jpg,images/12.jpg";//根据你的需要把每个图片路径保存在上面的字符串中,用逗号分隔开 
var pics=picstr.split(","); 
var n=0; 
function nextPic(i) 

var o=document.getElementById("pic01"); 
n=n+i; 
if(n>=pics.length) n=pics.length-12; 
if (n <0) n=0; 
o.src=pics[n]; 
} //--><!]]>
</script>