用css+jquery 实现 图片滑动效果,哪位大侠有代码。
就是那种1234点击每个都会有不同图片显示在同一个地方的。
网上有,结果发现出不来。。。
回复讨论(解决方案)
<!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=utf-8" /><title>无标题文档</title><script src="http://dealer.xxauto.com/JS/jquery-1.4.2.min.js" type="text/javascript"></script><script type="text/javascript"> $(document).ready(function(){ $("#tip span").bind("click",function(){ change($(this).html()); }); change(1); }); var change = function(id){ if (typeof(isround)!='undefined') clearTimeout(isround); var bigimg =$("#pic img"); var smallimg = $("#tip span"); var text = $("#text p"); smallimg.each(function(i){ bigimg.eq(i).attr("class","undis"); smallimg.eq(i).attr("class",""); text.eq(i).attr("class","undis"); }); bigimg.eq(id-1).attr("class","dis"); smallimg.eq(id-1).attr("class","current"); text.eq(id-1).attr("class","dis"); var next = id >= smallimg.size()?1:parseInt(id)+1; isround=setTimeout('change('+next+')', 4000); }</script><style>body, p, ul, li, dd, dt, dl, ol, form, h1, h2, h3, h4, h5 { margin:0; padding:0; }body { font-size:12px; color:#000; text-align:left }i, em { font-style:normal; }img { border:none; vertical-align:middle; }ul, li { list-style:none; min-height:12px; }a { color:#555; text-decoration:none; }a:hover { color:#cc0000; text-decoration:underline; }.undis{display:none;}.dis{display:block!important;}#pic{position:absolute;top:0;left:0;z-index:9;width:308px;height:258px;}#pic img{width:308px;height:258px;float:left;}#textbg{position:absolute;left:0;bottom:0;z-index:99;width:308px;height:27px;background:url(http://mat1.gtimg.com/sports/nba2011/images/flash_bg.png);_background:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src="http://mat1.gtimg.com/sports/nba2011/images/flash_bg.png");}#text{position:absolute;left:0;bottom:0;z-index:999;width:308px;height:27px;line-height:27px;color:#fff;}#text p{width:100%;height:27px;line-height:27px;color:#fff;text-align:center;font-size:14px;}#text p a{color:#fff;}#tip{width:308px;height:15px;position:absolute;right:0;bottom:28px;z-index:999;text-align:right;}#tip span{width:16px;height:15px;line-height:15px;background:#7B7B7B;cursor:pointer;display:inline-block;margin-left:1px;text-align:center;color:#fff;}#tip span.current{background:#000;}</style></head><body><div id="pic"> <a href="http://zhibo.sports.qq.com/sports/1162/index.html"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/224/17/723/47017634.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <a href="http://sports.qq.com/a/20110220/000515.htm#p=1"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/184/194/722/46997704.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <a href="http://sports.qq.com/a/20110220/000465.htm"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/122/189/722/46996367.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <a href="http://sports.qq.com/a/20110220/000356.htm"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/112/185/722/46995337.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <a href="http://sports.qq.com/a/20110220/000417.htm"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/93/187/722/46995828.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <a href="http://sports.qq.com/a/20110220/000303.htm#p=2"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/20/180/722/46993970.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <a href="http://sports.qq.com/a/20110220/000262.htm"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/61/177/722/46993246.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <a href="http://sports.qq.com/a/20110220/000324.htm#p=1"><img class="undis lazy" src="/static/imghwm/default1.png" data-src="http://img1.gtimg.com/sports/pics/hv1/205/181/722/46994410.jpg" border="0" alt="用css+jquery 实现 图片滑动效果_html/css_WEB-ITnose" ></a> <div id="textbg"></div> <div id="text"> <p class="undis"><a href="http://zhibo.sports.qq.com/sports/1162/index.html">正在直播全明星东西部对抗赛皇帝对决科比</a></p> <p class="undis"><a href="http://sports.qq.com/a/20110220/000515.htm#p=1">全明星扣篮大赛格里芬击败麦基得冠军</a></p> <p class="undis"><a href="http://sports.qq.com/a/20110220/000465.htm">全明星三分球大赛热火琼斯闪耀捧杯</a></p> <p class="undis"><a href="http://sports.qq.com/a/20110220/000356.htm">亚特兰大队捧杯瞬间霍福德笑开怀</a></p> <p class="undis"><a href="http://sports.qq.com/a/20110220/000417.htm">全明星技巧挑战赛库里28.2秒成功夺魁</a></p> <p class="undis"><a href="http://sports.qq.com/a/20110220/000303.htm#p=2">科比星光大道留手脚印模成篮坛第一人</a></p> <p class="undis"><a href="http://sports.qq.com/a/20110220/000262.htm">纳什闪电离婚内幕曝光前妻与巴博萨偷情生子</a></p> <p class="undis"><a href="http://sports.qq.com/a/20110220/000324.htm#p=1">腾讯直击全明星美女明星黄奕现场微博爆料</a></p> </div> <div id="tip"><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span><span>7</span><span>8</span></div> </div></body>
你看看行不 。之前改了qq的 。
XML/HTML code?1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677nbsp;html PUBLIC "-//W3……
谢谢 可以的

公众号网页更新缓存,这玩意儿,说简单也简单,说复杂也够你喝一壶的。你辛辛苦苦更新了公众号文章,结果用户打开还是老版本,这滋味,谁受得了?这篇文章,咱就来扒一扒这背后的弯弯绕绕,以及如何优雅地解决这个问题。读完之后,你就能轻松应对各种缓存难题,让你的用户始终体验到最新鲜的内容。先说点基础的。网页缓存,说白了就是浏览器或者服务器为了提高访问速度,把一些静态资源(比如图片、CSS、JS)或者页面内容存储起来。下次访问时,直接从缓存里取,不用再重新下载,速度自然快。但这玩意儿,也是个双刃剑。新版本上线,

本文讨论了使用HTML5表单验证属性,例如必需的,图案,最小,最大和长度限制,以直接在浏览器中验证用户输入。

本文展示了使用CSS为网页中添加有效的PNG边框。 它认为,与JavaScript或库相比,CSS提供了出色的性能,详细介绍了如何调整边界宽度,样式和颜色以获得微妙或突出的效果

本文讨论了html&lt; datalist&gt;元素,通过提供自动完整建议,改善用户体验并减少错误来增强表格。Character计数:159

本文讨论了HTML&lt; meter&gt;元素,用于在一个范围内显示标量或分数值及其在Web开发中的常见应用。它区分了&lt; meter&gt;从&lt; progress&gt;和前

本文解释了HTML5&lt; time&gt;语义日期/时间表示的元素。 它强调了DateTime属性对机器可读性(ISO 8601格式)的重要性,并在人类可读文本旁边,增强Accessibilit

本文讨论了HTML&lt; Progress&gt;元素,其目的,样式和与&lt; meter&gt;元素。主要重点是使用&lt; progress&gt;为了完成任务和LT;仪表&gt;对于stati


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

mPDF
mPDF是一个PHP库,可以从UTF-8编码的HTML生成PDF文件。原作者Ian Back编写mPDF以从他的网站上“即时”输出PDF文件,并处理不同的语言。与原始脚本如HTML2FPDF相比,它的速度较慢,并且在使用Unicode字体时生成的文件较大,但支持CSS样式等,并进行了大量增强。支持几乎所有语言,包括RTL(阿拉伯语和希伯来语)和CJK(中日韩)。支持嵌套的块级元素(如P、DIV),

SublimeText3 英文版
推荐:为Win版本,支持代码提示!

Dreamweaver Mac版
视觉化网页开发工具

Atom编辑器mac版下载
最流行的的开源编辑器

禅工作室 13.0.1
功能强大的PHP集成开发环境