简单的图片轮播有左右切换

上传人:宝路 文档编号:22000157 上传时间:2017-11-25 格式:DOCX 页数:3 大小:13.43KB
返回 下载 相关 举报
简单的图片轮播有左右切换_第1页
第1页 / 共3页
简单的图片轮播有左右切换_第2页
第2页 / 共3页
简单的图片轮播有左右切换_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《简单的图片轮播有左右切换》由会员分享,可在线阅读,更多相关《简单的图片轮播有左右切换(3页珍藏版)》请在金锄头文库上搜索。

1、无标题文档.contentall left:100px; position:absolute;.liimg ul li list-style:none; position:absolute; left:0px; height:0px;.liimg ul li img width:400px; height:200px;.left,.rightcolor:#30F; font-size:36px; font-weight:bold;.left position:absolute;left:20px; top:90px; z-index:99;.right position:absolute;le

2、ft:360px; top:90px;z-index:99;a text-decoration:none;.title position:absolute; top:220px; width:200px;.title span cursor:pointer;.backcolor background-color:#ccc;$(function()showanother(););function showanother()var curr=1;var li_length = $(.liimg ul li).length;var t = setInterval(function()play(cur

3、r);if(curr=3)curr=0;elsecurr+;,4000);$(.left).click(function()clearInterval(t);if(curr=3)curr=0;elsecurr+;,4000););function play(curr)$(ul li).eq(curr).fadeIn().siblings().fadeOut();$(.title span).eq(curr).addClass(backcolor).siblings().removeClass(backcolor);$(.title span).click(function()var _index = $(this).index();play(_index););图片轮播 c

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号