jQuery實(shí)現(xiàn)仿Alipay支付寶首頁(yè)全屏焦點(diǎn)圖切換特效
本文實(shí)例講述了jQuery實(shí)現(xiàn)仿Alipay支付寶首頁(yè)全屏焦點(diǎn)圖切換特效。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:
<!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>kinMaxShow 擴(kuò)展效果</title> <link type="text/css" href="_doc/base.css" rel="stylesheet" /> <style type="text/css"> body{ margin:0; padding:0;} #Login{ position:relative;} #loginPlane{ position:absolute;width:100%; height:330px; top:0; left:0;z-index:88; } #loginWrap{ width:960px;margin:0 auto; padding-top:20px; } #loginBox{ width:286px;height:330px; filter:progid:DXImageTransform.Microsoft.gradient( startcolorstr=#88000000,endcolorstr=#88000000); background:rgba(0,0,0,0.2); float:right; margin-right:20px; } #loginBox h3{ border-bottom:1px solid #ccc; margin:10px; color:#fff; font-weight:normal; font-size:16px; line-height:26px; } #loginBox form{ color:#fff; font-size:12px; padding:8px 0 0 20px } #loginBox .text{ padding:4px;border:1px solid; border-color:#aaa #ddd #ddd #aaa; height:20px; width:230px; font-family:Verdana } #loginBox .submit{ color:#fff; border:0; background:#FFA600;width:236px; height:35px; font-weight:bold; font-family:"Microsoft Yahei"; font-size:14px; } #kinMaxShow{ display:none;} #kinMaxShow .sub_1_1{ display:block; position:absolute;left:110px; top:136px; } #kinMaxShow .sub_1_2{ display:block; position:absolute;left:110px; top:120px; } #kinMaxShow .sub_2_1{ display:block; position:absolute;left:-160px; bottom:0px; } #kinMaxShow .sub_2_2{ display:block; position:absolute;left:110px; top:20px; } #kinMaxShow .sub_3_1{ display:block; position:absolute;right:180px; bottom:0px; } #kinMaxShow .sub_3_2{ display:block; position:absolute;left:30px; top:40px; } </style> <script src="js/jquery-1.10.2.min.js" type="text/javascript"></script> <script src="js/jquery.kinMaxShow-1.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function(){ $("#kinMaxShow").kinMaxShow({ height:400, button:{ showIndex:false, normal:{background:'url(images/button.png) no-repeat -14px 0', marginRight:'8px',border:'0',right:'44%',bottom:'20px' }, focus:{background:'url(images/button.png) no-repeat 0 0', border:'0' } }, callback:function(index,action){ switch(index){ case 0 : if(action=='fadeIn'){ $(this).find('.sub_1_1').animate({left:'70px'},600) $(this).find('.sub_1_2').animate({top:'60px'},600) }else{ $(this).find('.sub_1_1').animate({left:'110px'},600) $(this).find('.sub_1_2').animate({top:'120px'},600) }; break; case 1 : if(action=='fadeIn'){ $(this).find('.sub_2_1').animate({left:'-100px'},600) $(this).find('.sub_2_2').animate({top:'60px'},600) }else{ $(this).find('.sub_2_1').animate({left:'-160px'},600) $(this).find('.sub_2_2').animate({top:'20px'},600) }; break; case 2 : if(action=='fadeIn'){ $(this).find('.sub_3_1').animate({right:'350px'},600) $(this).find('.sub_3_2').animate({left:'180px'},600) }else{ $(this).find('.sub_3_1').animate({right:'180px'},600) $(this).find('.sub_3_2').animate({left:'30px'},600) }; break; } } }); }); </script> </head> <body> <div id="Login"> <div id="kinMaxShow"> <div> <img src="images/1.jpg" /> <div> <img class="sub_1_1" src="images/sub_1_1.png" /> <img class="sub_1_2" src="images/sub_1_2.png" usemap="#Map_1_2" border="0" /> <map name="Map_1_2" id="Map_1_2"> <area shape="rect" coords="2,96,106,123" href="http://www.dbjr.com.cn" target="_blank"/> </map> </div> </div> <div> <img src="images/2.jpg" /> <div> <img class="sub_2_1" src="images/sub_2_1.png" /> <img class="sub_2_2" src="images/sub_2_2.png" usemap="#Map_2_2" border="0" /> <map name="Map_2_2" id="Map_2_2"> <area shape="rect" coords="3,97,104,124" href="http://www.dbjr.com.cn" target="_blank"/> </map> </div> </div> <div> <img src="images/3.jpg" /> <div> <img class="sub_3_1" src="images/sub_3_1.png" /> <img class="sub_3_2" src="images/sub_3_2.png" usemap="#Map_3_2" border="0" /> <map name="Map_3_2" id="Map_3_2"> <area shape="rect" coords="1,98,106,124" href="http://www.dbjr.com.cn" target="_blank"/> </map> </div> </div> </div> <div id="loginPlane"> <div id="loginWrap"> <div id="loginBox"> <h3>登陸支付寶</h3> <form> <label>賬戶名:</label> <p><input type="text" class="text" /></p> <label>登陸密碼:</label> <p><input type="password" class="text" /></p> <br /> <p><input type="button" value=" 登 陸 " class="submit" /></p> </form> </div> </div> </div> </div> </body> </html>
jquery.kinMaxShow-1.1.min.js點(diǎn)擊此處本站下載。
希望本文所述對(duì)大家的jQuery程序設(shè)計(jì)有所幫助。
- 基于jQuery全屏焦點(diǎn)圖左右切換插件responsiveslides
- jQuery插件multiScroll實(shí)現(xiàn)全屏鼠標(biāo)滾動(dòng)切換頁(yè)面特效
- 基于jquery編寫的橫向自適應(yīng)幻燈片切換特效的實(shí)例代碼
- jquery焦點(diǎn)圖片切換(數(shù)字標(biāo)注/手動(dòng)/自動(dòng)播放/橫向滾動(dòng))
- 基于Jquery的簡(jiǎn)單圖片切換效果
- jQuery 一個(gè)圖片切換的插件
- 一個(gè)基于jquery的圖片切換效果
- Jquery實(shí)現(xiàn)點(diǎn)擊切換圖片并隱藏顯示內(nèi)容(2種方法實(shí)現(xiàn))
- 基于Jquery實(shí)現(xiàn)的一個(gè)圖片滾動(dòng)切換
- jquery橫向縱向鼠標(biāo)滾輪全屏切換
相關(guān)文章
jQuery插件Skippr實(shí)現(xiàn)焦點(diǎn)圖幻燈片特效
Skippr 是一個(gè)超級(jí)簡(jiǎn)單的 jQuery 幻燈片插件。只是包括你的網(wǎng)頁(yè)中引入 jquery.skippr.css 和 jquery.skippr.js 文件就能使用了。Skippr 能夠自適應(yīng)窗口寬度,而且導(dǎo)航是獨(dú)特的條形導(dǎo)航。2015-04-04jQuery.position()方法獲取不到值的安全替換方法
這篇文章主要介紹了jQuery.position()方法獲取不到值的安全替換方法,本文給出了一種變通的方法,用.offset()來(lái)?yè)Q算,需要的朋友可以參考下2015-03-03jQuery過(guò)濾選擇器經(jīng)典應(yīng)用
這篇文章主要為大家詳細(xì)介紹了jQuery過(guò)濾選擇器經(jīng)典應(yīng)用,具有一定的實(shí)用性,感興趣的小伙伴們可以參考一下2016-08-08詳解jQuery向動(dòng)態(tài)生成的內(nèi)容添加事件響應(yīng)jQuery live()方法
這篇文章主要介紹了jQuery向動(dòng)態(tài)生成的內(nèi)容添加事件響應(yīng)jQuery live()方法,需要的朋友可以參考下2015-11-11jQuery插件multiScroll實(shí)現(xiàn)全屏鼠標(biāo)滾動(dòng)切換頁(yè)面特效
本文給大家分享的是一款jQuery整屏(全屏)滾動(dòng)插件網(wǎng)頁(yè)特效,滾動(dòng)鼠標(biāo)滾輪整屏一屏滾動(dòng)切換代碼,可設(shè)置文字/圖片絕對(duì)上下左右居中顯示JS代碼,時(shí)下最流行的jQuery全屏滾動(dòng)插件?。嫒轀y(cè)試:IE6及以上、Firefox、Chrome、Opera、Safari、360等主流瀏覽器)2015-04-04jQuery+PHP+MySQL二級(jí)聯(lián)動(dòng)下拉菜單實(shí)例講解
這篇文章主要介紹了一款jQuery+PHP+MySQL三者結(jié)合實(shí)現(xiàn)的二級(jí)聯(lián)動(dòng)下拉菜單,需要的朋友可以參考下2015-10-10使用jQuery實(shí)現(xiàn)兩個(gè)div中按鈕互換位置的實(shí)例代碼
這篇文章主要介紹了使用jQuery實(shí)現(xiàn)兩個(gè)div中按鈕互換位置的實(shí)例代碼,需要的朋友可以參考下2017-09-09jQuery使用ajax跨域獲取數(shù)據(jù)的簡(jiǎn)單實(shí)例
下面小編就為大家?guī)?lái)一篇jQuery使用ajax跨域獲取數(shù)據(jù)的簡(jiǎn)單實(shí)例。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2016-05-05jQuery實(shí)現(xiàn)類似淘寶網(wǎng)圖片放大效果的方法
這篇文章主要介紹了jQuery實(shí)現(xiàn)類似淘寶網(wǎng)圖片放大效果的方法,實(shí)例分析了jquery實(shí)現(xiàn)圖片放大效果的方法,涉及jquery操作鼠標(biāo)事件及頁(yè)面元素屬性修改的相關(guān)技巧,需要的朋友可以參考下2015-07-07