爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
仿淘宝网左右切换内容图片效果
仿淘宝网左右切换内容图片效果
日期:2014-05-18 浏览次数:20137 次
以下是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=utf-8" /> <title>佐佐制造---左右切换内容淘版 </title> <script type="text/javascript"> </script> <style type="text/css"> /* Reset style */ * { margin:0; padding:0; word-break:break-all; } body { background:#FFF; color:#333; font:12px/1.6em Helvetica, Arial, sans-serif; } h1, h2, h3, h4, h5, h6 { font-size:1em; } a { color:#333; text-decoration:none; } a:hover { text-decoration:underline; } ul, li { list-style:none; } fieldset, img { border:none; } em, strong, cite, th { font-style:normal; font-weight:normal; } /* New_pro style */ #new_pro { position:relative; width:315px; height:225px; overflow:hidden; margin:50px 0 8px 50px; background:url(/UploadPic/2008-10/200810101543503.gif) no-repeat 0 0; } #new_pro h3 { height:25px; overflow:hidden; font-size:14px; line-height:27px; text-indent:15px; } #new_pro .current { display:block; } #new_pro .normal { display:none; } #new_pro ul { height:200px; overflow:hidden; padding:3px 0 0 5px; background:url(/UploadPic/2008-10/200810101543503.gif) no-repeat -357px 0; } #new_pro ul li { float:left; padding:4px 8px; } #new_pro ul li img { display:block; width:60px; height:60px; } #new_pro ul li span { display:block; width:60px; height:30px; overflow:hidden; margin-top:2px; line-height:15px; } #ranks_change_bar { position:absolute; top:5px; right:5px; } #ranks_change_bar a { display:block; float:left; width:12px; height:15px; overflow:hidden; margin:0 2px; background:url(/UploadPic/2008-10/200810101543503.gif) no-repeat; text-indent:-9999px; } #ranks_change_bar .previous { background-position:-775px -32px; } #ranks_change_bar .previous:hover { background-position:-775px -16px; } #ranks_change_bar .next { background-position:-788px -32px; } #ranks_change_bar .next:hover { background-position:-788px -16px; } #ranks_change_bar .pages_first { background-position:-775px 0 !important; } #ranks_change_bar .pages_last { background-position:-788px 0 !important; } </style> <script type="text/javascript"> function $(id) { return document.getElementById(id); } function addClass(element,value) { if (!element.className) { element.className = value; } else { newClassName = element.className; newClassName+= " "; newClassName+= value; element.className = newClassName; } } function next() { var ranksChangeBarList = $('ranks_change_bar').getElementsByTagName('a'); var previousbar = ranksChangeBarList[0]; var nextbar = ranksChangeBarList[1]; var proList = $('new_pro').getElementsByTagName('ul'); var len = proList.length; for (var i=0; i<len; i++){ if (proList[i].className == 'current' ) { var currentNum = i; } } if(currentNum == len-1) return; if(currentNum == len-2) { addClass(nextbar,'pages_last'); proList[currentNum].className ='normal' proList[currentNum+1].className = 'current' } else { proList[currentNum].className ='normal' proList[currentNum+1].className = 'current' } previousbar.className= 'previous'; } function previous() { var ranksChangeBarList = $('ranks_change_bar').getElementsByTagName('a'); var previousbar = ranksChangeBarList[0]; </div></div> <div class="clearfix"></div> </div> <nav aria-label="..."> <ul class="pager"> <li class="previous"><a href="4667">上一篇:狡猾的按钮特效</a></li> <li class="next"><a href="1391">下一篇:简单的js随机显示图片特效</a></li> </ul> </nav> <div class="alert alert-warning" role="alert"> <strong>免责声明:</strong> 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。 </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">相关资料<span><a target="_blank" class="pull-right" href="/ItNews/">更多></a></span></h3> </div> <div class="panel-body row"> <ol> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34410' title='迅雷欲3300万美元收购金山快盘 预计9月完成' target="_blank"> 迅雷欲3300万美元收购金山快盘 预计9月完成</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34224' title='虚拟运营商温度有多高?降温OR升温内外有别' target="_blank"> 虚拟运营商温度有多高?降温OR升温内外有别</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/428' title='支付宝被曝严重破绽 隐私平安再受质疑' target="_blank"> 支付宝被曝严重破绽 隐私平安再受质疑</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/6853' title='传运营商高层将变化 专家称需体制革新' target="_blank"> 传运营商高层将变化 专家称需体制革新</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34404' title='中国移动承诺再降4G资费 网络漫游至50个国家' target="_blank"> 中国移动承诺再降4G资费 网络漫游至50个国家</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34449' title='百度吴恩达:图像和音视频搜索是人工智能新方向' target="_blank"> 百度吴恩达:图像和音视频搜索是人工智能新方向</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34215' title='看,网络文学今日之繁盛;忆,纯真去哪了?' target="_blank"> 看,网络文学今日之繁盛;忆,纯真去哪了?</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/10823' title='佳能利润大跌三成 智能终端倒逼相机厂商转型' target="_blank"> 佳能利润大跌三成 智能终端倒逼相机厂商转型</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34251' title='墨迹也要做硬件,工具类应用如何“变异”的' target="_blank"> 墨迹也要做硬件,工具类应用如何“变异”的</a></li></div> </ol> </div> </div> </div> <div class="col-lg-4 hidden-sm hidden-xs"> <!--右边的内容--> <a id="AdPageRight1_AdPageRight" href="http://www.tdyun.com/cloud/?aiyiweb" target="_blank"><img class="img-responsive" src="/images/TdPageAd/vps2.png" alt="香港云服务器 免备案 云主机VPS 国内 独立IP 独享15M 月付SSD" /></a> <script src='/Scripts/AdContentPage300_1.js' language='javascript'></script> <script src='/Scripts/AdContentPage300_2.js' language='javascript'></script> <script src='/Scripts/AdContentPage300_3.js' language='javascript'></script> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">推荐阅读<span><a target="_blank" class="pull-right" href="/ItNews/">更多></a></span></h3> </div> <div class="panel-body"> <ol> <li class="articleAbout"><a href=/ItNews/34268 title='170号码扎堆上市:手机话费私人定制时代到来?' target="_blank"> 170号码扎堆上市:手机话费私人定制时代到来?</a></li> <li class="articleAbout"><a href=/ItNews/34224 title='虚拟运营商温度有多高?降温OR升温内外有别' target="_blank"> 虚拟运营商温度有多高?降温OR升温内外有别</a></li> <li class="articleAbout"><a href=/ItNews/34318 title='在线音乐出现“小米公司”不是没有可能' target="_blank"> 在线音乐出现“小米公司”不是没有可能</a></li> <li class="articleAbout"><a href=/ItNews/34382 title='二维码支付大战的号角注定已经吹响,尚需标准发放' target="_blank"> 二维码支付大战的号角注定已经吹响,尚需标准发放</a></li> <li class="articleAbout"><a href=/ItNews/34149 title='地图导航骤起杀机 百度高德重新定义商业模式' target="_blank"> 地图导航骤起杀机 百度高德重新定义商业模式</a></li> <li class="articleAbout"><a href=/ItNews/34286 title='一大波智能路由器正在袭来:小米、360、极路由大PK' target="_blank"> 一大波智能路由器正在袭来:小米、360、极路由大PK</a></li> <li class="articleAbout"><a href=/ItNews/34319 title='“扫黄打非”下9158否认遭整顿' target="_blank"> “扫黄打非”下9158否认遭整顿</a></li> <li class="articleAbout"><a href=/ItNews/34194 title='微软确认 Surface 计划更多尺寸和LTE 版本' target="_blank"> 微软确认 Surface 计划更多尺寸和LTE 版本</a></li> <li class="articleAbout"><a href=/ItNews/34402 title='不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机' target="_blank"> 不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机</a></li> <li class="articleAbout"><a href=/ItNews/34208 title='小灵通两年都无信号 顾客起诉联通公司' target="_blank"> 小灵通两年都无信号 顾客起诉联通公司</a></li> <li class="articleAbout"><a href=/ItNews/34345 title='阿里入股虎嗅:媒体的脊梁弯了?未必!' target="_blank"> 阿里入股虎嗅:媒体的脊梁弯了?未必!</a></li> <li class="articleAbout"><a href=/ItNews/10834 title='三星维修新规:Galaxy S4主板进水也收费修' target="_blank"> 三星维修新规:Galaxy S4主板进水也收费修</a></li> <li class="articleAbout"><a href=/ItNews/34387 title='银联布局二维码支付,“擦边球”生态不能自救' target="_blank"> 银联布局二维码支付,“擦边球”生态不能自救</a></li> <li class="articleAbout"><a href=/ItNews/34309 title='迪信通神秘免费服务揭谜底:充电宝免费带回家' target="_blank"> 迪信通神秘免费服务揭谜底:充电宝免费带回家</a></li> <li class="articleAbout"><a href=/ItNews/34347 title='微软小冰复活再战移动端:改与米聊、易信和触宝合作' target="_blank"> 微软小冰复活再战移动端:改与米聊、易信和触宝合作</a></li> <li class="articleAbout"><a href=/ItNews/34365 title='特斯拉技术专利开放,要革自己的命?' target="_blank"> 特斯拉技术专利开放,要革自己的命?</a></li> <li class="articleAbout"><a href=/ItNews/16165 title='网络文学竞争白热化 百度多酷文学网上线' target="_blank"> 网络文学竞争白热化 百度多酷文学网上线</a></li> <li class="articleAbout"><a href=/ItNews/34278 title='揭秘:阿里巴巴“无人认领”的三成股权都归谁' target="_blank"> 揭秘:阿里巴巴“无人认领”的三成股权都归谁</a></li> <li class="articleAbout"><a href=/ItNews/34306 title='刘强东:京东上市融资用于开拓三至六线城市' target="_blank"> 刘强东:京东上市融资用于开拓三至六线城市</a></li> <li class="articleAbout"><a href=/ItNews/34190 title='Facebook思科联手推免费WiFi 欲覆盖全美' target="_blank"> Facebook思科联手推免费WiFi 欲覆盖全美</a></li> </ol> </div> </div> </div> </div> <div class="clearfix"></div> <footer class=" footer navbar-bottom"> <em>友情链接:</em> <a href="http://www.aiyiweb.com/" target="_blank">爱易网 </a> <a href="http://www.aiyiweb.com/" target="_blank">云虚拟主机技术 </a> <a href="http://www.aiyiweb.com/" target="_blank">云服务器技术 </a> <a href="http://www.aiyiweb.com/" target="_blank">程序设计技术 </a> <a href="http://www.aiyiweb.com/" target="_blank">开发网站 </a> <a href="http://www.aiyiweb.com/" target="_blank">APP开发教程 </a> <br /> <script type="text/javascript">(function(){document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E'));var bdcs = document.createElement('script');bdcs.type = 'text/javascript';bdcs.async = true;bdcs.src = 'http://znsv.baidu.com/customer_search/api/js?sid=15239353030108964139' + '&plate_url=' + encodeURIComponent(window.location.href) + '&t=' + Math.ceil(new Date()/3600000);var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(bdcs, s);})();</script> Copyright © 2013-2025 爱易网页 当前在线:394人 网站在9时47分1秒内访问总人数:122577人 当前 7.94% <a href="https://beian.miit.gov.cn" target="_blank">粤ICP备18100884号-2 </a> <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script> <script>LA.init({ id: "JszEmKrtpbU59dY5", ck: "JszEmKrtpbU59dY5" })</script> </footer> </div> </body> </html>