这是一款jquery焦点图图片切换特效,在底部显示切换按钮,带左右切换箭头按钮显示,过渡切换样式随机显示噢。
<!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" /> <meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren"> <meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。"> <title>jquery焦点图切换多种样式加载过渡效果_武鸣人</title> <style type="text/css"> /* The Nivo Slider styles */ .nivoSlider { position:relative; } .nivoSlider img { position:absolute; top:0px; left:0px; } /* If an image is wrapped in a link */ .nivoSlider a.nivo-imageLink { position:absolute; top:0px; left:0px; width:100%; height:100%; border:0; padding:0; margin:0; z-index:60; display:none; } /* The slices in the Slider */ .nivo-slice { display:block; position:absolute; z-index:50; height:100%; } /* Caption styles */ .nivo-caption { position:absolute; left:0px; bottom:0px; background:#000; color:#fff; opacity:0.8; /* Overridden by captionOpacity setting */ width:100%; z-index:89; } .nivo-caption p { padding:5px; margin:0; } .nivo-caption a { display:inline !important; } .nivo-html-caption { display:none; } /* Direction nav styles (e.g. Next & Prev) */ .nivo-directionNav a { position:absolute; top:45%; z-index:99; cursor:pointer; } .nivo-prevNav { left:0px; } .nivo-nextNav { right:0px; } /* Control nav styles (e.g. 1,2,3...) */ .nivo-controlNav a { position:relative; z-index:99; cursor:pointer; } .nivo-controlNav a.active { font-weight:bold; } /*====================*/ /*=== Reset Styles ===*/ /*====================*/ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-style:inherit; font-size:100%; font-family:inherit; vertical-align:baseline; } body { line-height:1; color:black; background:white; } table { border-collapse:separate; border-spacing:0; } caption, th, td { text-align:left; font-weight:normal; } blockquote:before, blockquote:after, q:before, q:after { content:""; } blockquote, q { quotes:"" ""; } /* HTML5 tags */ header, section, footer, aside, nav, article, figure { display: block; } /*===================*/ /*=== Main Styles ===*/ /*===================*/ body { font:14px/1.6 Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif; color:#2d3536; background:#e8e0c0 url(/img/20240421_www_wuming_ren_1.png) repeat; text-shadow:0 1px 0 #fff; } a, a:visited { color:#2d3536; text-decoration:none; border-bottom:1px dotted #826a4d; } a:hover, a:active { color:#9e805c; text-decoration:none; } /*============================*/ /*=== Custom Slider Styles ===*/ /*============================*/ #slider-wrapper { background:url(/img/20240421_www_wuming_ren_2.png) no-repeat; width:998px; height:392px; margin:50px 50px 50px 50px; padding-top:74px; margin-top:50px; } #slider { position:relative; width:618px; height:246px; margin-left:190px; background:url(/img/20240421_www_wuming_ren_3.gif) no-repeat 50% 50%; } #slider img { position:absolute; top:0px; left:0px; display:none; } #slider a { border:0; display:block; } .nivo-controlNav { position:absolute; left:260px; bottom:-42px; } .nivo-controlNav a { display:block; width:22px; height:22px; background:url(/img/20240421_www_wuming_ren_4.png) no-repeat; text-indent:-9999px; border:0; margin-right:3px; float:left; } .nivo-controlNav a.active { background-position:0 -22px; } .nivo-directionNav a { display:block; width:30px; height:30px; background:url(/img/20240421_www_wuming_ren_5.png) no-repeat; text-indent:-9999px; border:0; } a.nivo-nextNav { background-position:-30px 0; right:15px; } a.nivo-prevNav { left:15px; } .nivo-caption { text-shadow:none; font-family: Helvetica, Arial, sans-serif; } .nivo-caption a { color:#efe9d1; text-decoration:underline; } /*====================*/ /*=== Other Styles ===*/ /*====================*/ .clear { clear:both; } </style> </head> <body style="text-align:center"> <a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr> <!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。--> <script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script> <script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script> 需要加载js文件,请刷新页面后看效果! <div id="wrapper"> <div id="slider-wrapper"> <div id="slider" class="nivoSlider"> <a href="https://www.wuming.ren/" target="_blank"><img src="/img/20240421_www_wuming_ren_6.jpg" alt="" title="武鸣人一号图片" /></a> <a href="https://www.wuming.ren/" target="_blank"><img src="/img/20240421_www_wuming_ren_7.jpg" alt="" title="武鸣人二号图片" /></a> <a href="https://www.wuming.ren/" target="_blank"><img src="/img/20240421_www_wuming_ren_8.jpg" alt="" title="武鸣人三号图片" /></a> <a href="https://www.wuming.ren/" target="_blank"><img src="/img/20240421_www_wuming_ren_9.jpg" alt="" title="武鸣人四号图片" /></a> </div> </div> </div> <script type="text/javascript" src="/img/jquery_wuming_ren.js"></script> <script type="text/javascript" src="/img/jquery_slider.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </body> </html>
本文来自武鸣人网站,转载请注明出处