求图片左右切换js
http://movie.youku.com/
我想要上面那个网站的效果,一次一组图片切换带左右按钮还有下面的4个选项钮,哪位大哥给个代码参考下啊
[解决办法]
可以去模版王 上面下载 ,, 样式我不会写, 就不贴了
[解决办法]
拿去
http://www.csrcode.cn/html/txdm/txtx/3301.htm
[解决办法]
http://www.wangjie.org/ 这个上面有不少我们需要的模板,自己去找找!!!
[解决办法]
{
var p = obj.parentNode.parentNode.getElementsByTagName("img");
var au = getid(n1);
var num = ri(obj);
try//ie下的处理部分
{
with(au)
{
filters[0].Apply();//接收滤镜
ci(obj); //变幻小图的选择.可以放在try以外.
fiterplay(n1,num,"div","f");//设置滤镜中对应部分的显示和隐藏
filters[0].play();//播放滤镜
}
}
catch(e)//ff下的处理部分
{
ci(obj);
fiterplay(n1,num,"div","f");
}
}
var n=0;
function clearAuto() {clearInterval(autoStart);};
function setAuto(){autoStart=setInterval("auto(n)", 4000)}
function auto()
{
var x = getid("simg").getElementsByTagName("td");
n++;
if(n>3)n=0;
play(x[n],"au");
}
function tabs_z(o,n){
var m_n = document.getElementById(o).getElementsByTagName("em");
var c_n = document.getElementById(o).getElementsByTagName("ol");
for(i=0;i<m_n.length;i++){
m_n[i].className=i==n?"tab_on":"";
c_n[i].style.display=i==n?"block":"none";
}
}
</script>
</head>
<body>
<div id="focus_img" style="height:auto">
<table id="focus_warp" cellspacing="0" cellpadding="0" width="963px" border=0>
<tbody>
<tr>
<td>
<div id="au" style="width:963px;height:169px">
<div class="dis" name="f"><a href=""><img height="169px" alt="" src="../images/register.png" width="963px">1</a></div>
<div class="undis" name="f"><a href="" ><img height="169px" alt="" src="../images/pick_ride_2.png"width="963px">2</a></div>
<div class="undis" name="f"><a href="" ><img height="169px" alt="" src="../images/register.png" width="963px">3</a></div>
<div class="undis" name="f"><a href="" ><img height="169px" alt="" src="../images/pick_ride_2.png" width="963px">4</a></div>
<div class="undis" name="f"><a href="" ><img height="169px" alt="" src="../images/register.png" width="963px">5</a></div>
</div>
</td>
</tr>
<div style="clear:both"></div>
<tr class="car_btm" style="margin-left:-4px">
<td>
<table id="simg" cellspacing="0" cellpadding="0" border="0" >
<tbody>
<tr>
<td class="carousel-jumper" onmouseover="javascript:play(this,'au');" style="width:166px;line-height:36px;padding-left:21px"><a href="#">一起来吧! ! !</a></td>
<td class="carousel-jumper" onmouseover="javascript:play(this,'au');" style="width:166px;line-height:36px;padding-left:21px"><a href="#">一日游</a></td>
<td class="carousel-jumper" onmouseover="javascript:play(this,'au');" style="width:166px;line-height:36px;padding-left:21px"><a href="#">工作原理</a></td>
<td class="carousel-jumper" onmouseover="javascript:play(this,'au');" style="width:166px;line-height:36px;padding-left:21px"><a href="#">一日游</a></td>
<td class="carousel-jumper" onmouseover="javascript:play(this,'au');" style="width:166px;line-height:36px;padding-left:21px"><a href="#">选择你的工具</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
样式图片js自己整理
[解决办法]
找找jquery的图片插件,看看看是不是有你想要的。