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+css制作漂亮五屏焦点图切换特效_武鸣人</title> <style type=text/css> ul li{list-style-type:none;} IMG { BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px } .box_wuming_ren{margin:0px auto;WIDTH: 416px; HEIGHT: 260px;} #slider_wuming { POSITION: absolute; WIDTH: 416px; HEIGHT: 243px; CLEAR: both; } * HTML #slider_wuming { POSITION: absolute; WIDTH: 416px; HEIGHT: 243px; CLEAR: both; } #slider_wuming .cont_wuming { POSITION: relative; MARGIN-TOP: 15px; WIDTH: 416px; HEIGHT: 243px; OVERFLOW: hidden } #slider_wuming .cont_wuming IMG { WIDTH: 416px; HEIGHT: 243px } #slider_wuming DIV.slides { POSITION: absolute; TOP: 0px; LEFT: 0px } #slider_wuming UL.slides { POSITION: absolute; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; TOP: 0px; PADDING-TOP: 0px; LEFT: 0px } #slider_wuming UL.slides DL { WIDTH: 584px; FLOAT: left; HEIGHT: 43px; PADDING-TOP: 3px } #slider_wuming UL.slides DT { LINE-HEIGHT: 18px; WIDTH: 400px; FLOAT: left; HEIGHT: 39px; COLOR: #777777; MARGIN-LEFT: 3px } #slider_wuming UL.slides DT A { COLOR: #777777; FONT-SIZE: 12px } #slider_wuming UL.slides DD { TEXT-ALIGN: center; LINE-HEIGHT: 18px; WIDTH: 180px; FONT-FAMILY: "黑体"; FLOAT: left; HEIGHT: 39px; COLOR: #333333; FONT-SIZE: 16px } #slider_wuming UL.slides DD A { FONT-FAMILY: "黑体"; COLOR: #333; FONT-SIZE: 16px; TEXT-DECORATION: none } #slider_wuming UL.slides DD .more { MARGIN-TOP: -22px; WIDTH: 54px; FLOAT: right; HEIGHT: 16px; COLOR: #2a609f; FONT-SIZE: 12px; OVERFLOW: hidden } #slider_wuming UL.slides DD .more A { COLOR: #2a609f } #slider_wuming DIV.slides DIV { POSITION: absolute; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 584px; PADDING-RIGHT: 0px; DISPLAY: none; TOP: 0px; PADDING-TOP: 0px } #slider_wuming #loopedSlider { POSITION: relative; MARGIN: 0px auto; WIDTH: 416px; CLEAR: both } #slider_wuming UL.nation_wuming { POSITION: absolute; BOTTOM: -40px; RIGHT: -5px; _bottom: -25px } #slider_wuming UL.nation_wuming LI { TEXT-ALIGN: center; WIDTH: 34px; FLOAT: left; HEIGHT: 60px; MARGIN-RIGHT: 5px } #slider_wuming UL.nation_wuming LI A { TEXT-ALIGN: center; LINE-HEIGHT: 20px; WIDTH: 34px; FONT-FAMILY: "宋体"; BACKGROUND: url(/img/20240420_www_wuming_ren_45.png) no-repeat right bottom; FLOAT: left; HEIGHT: 22px; COLOR: #000000; FONT-SIZE: 12px; FONT-WEIGHT: normal; MARGIN-RIGHT: 2px; TEXT-DECORATION: none; PADDING-TOP: 13px } #slider_wuming UL.nation_wuming LI.active A { TEXT-ALIGN: center; LINE-HEIGHT: 20px; WIDTH: 34px; FONT-FAMILY: "宋体"; BACKGROUND: url(/img/20240420_www_wuming_ren_46.png) no-repeat right bottom; FLOAT: left; HEIGHT: 30px; COLOR: #ffffff; FONT-SIZE: 12px; FONT-WEIGHT: normal; MARGIN-RIGHT: 2px; TEXT-DECORATION: none; PADDING-TOP: 5px } UL.nation_wuming LI A:hover { TEXT-ALIGN: left; LINE-HEIGHT: 20px; WIDTH: 34px; FONT-FAMILY: "宋体"; BACKGROUND: url(/img/20240420_www_wuming_ren_46.png) no-repeat right bottom; FLOAT: left; HEIGHT: 35px; COLOR: #ffffff; FONT-SIZE: 12px; FONT-WEIGHT: normal; MARGIN-RIGHT: 2px; TEXT-DECORATION: none } * HTML #slider_wuming UL.nation_wuming LI A { TEXT-ALIGN: center; LINE-HEIGHT: 20px; WIDTH: 34px; FONT-FAMILY: "宋体"; BACKGROUND: url(/img/20240420_www_wuming_ren_47.gif) no-repeat right bottom; FLOAT: left; HEIGHT: 22px; COLOR: #000000; FONT-SIZE: 12px; FONT-WEIGHT: normal; MARGIN-RIGHT: 2px; TEXT-DECORATION: none; PADDING-TOP: 13px } * HTML #slider_wuming UL.nation_wuming LI.active A { TEXT-ALIGN: center; LINE-HEIGHT: 20px; WIDTH: 34px; FONT-FAMILY: "宋体"; BACKGROUND: url(/img/20240420_www_wuming_ren_48.gif) no-repeat right bottom; FLOAT: left; HEIGHT: 30px; COLOR: #ffffff; FONT-SIZE: 12px; FONT-WEIGHT: normal; MARGIN-RIGHT: 2px; TEXT-DECORATION: none; PADDING-TOP: 5px } * HTML UL.nation_wuming LI A:hover { TEXT-ALIGN: left; LINE-HEIGHT: 20px; WIDTH: 34px; FONT-FAMILY: "宋体"; BACKGROUND: url(/img/20240420_www_wuming_ren_48.gif) no-repeat right bottom; FLOAT: left; HEIGHT: 35px; COLOR: #ffffff; FONT-SIZE: 12px; FONT-WEIGHT: normal; MARGIN-RIGHT: 2px; TEXT-DECORATION: none } </style> <SCRIPT src="/img/jquery_wuming_ren.js"></SCRIPT> <SCRIPT src="/img/loopedslider.js"></SCRIPT> <script type="text/javascript"> $(function(){ $('#slider_wuming').loopedSlider({ //4秒 autoStart: 4000 });//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) $('.slider_wuming_ren').loopedSlider({ autoStart: 4000 }); });//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) </SCRIPT> </head> <body> <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 class="box_wuming_ren"> <!--焦点图--> <DIV id=slider_wuming> <DIV class=cont_wuming> <UL class=slides> <LI><A href="https://www.wuming.ren/" target=_blank><IMG src="/img/20240420_www_wuming_ren_49.jpg"></A> <LI><A href="https://www.wuming.ren/" target=_blank><IMG src="/img/20240420_www_wuming_ren_50.jpg"></A> <LI><A href="https://www.wuming.ren/" target=_blank><IMG src="/img/20240420_www_wuming_ren_51.jpg"></A> <LI><A href="https://www.wuming.ren/" target=_blank><IMG src="/img/20240420_www_wuming_ren_52.jpg"></A> <LI><A href="https://www.wuming.ren/" target=_blank><IMG src="/img/20240420_www_wuming_ren_53.jpg"></A> </LI></UL></DIV> <DIV class=slider_wuming_ren></DIV> <UL class=nation_wuming> <LI><A href="#">1</A> </LI> <LI><A href="#">2</A> </LI> <LI><A href="#">3</A> </LI> <LI><A href="#">4</A> </LI> <LI><A href="#">5</A> </LI></UL></DIV> <!--焦点图--> </div> </body> </html>
本文来自武鸣人网站,转载请注明出处