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.dhdzp.com" 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.dhdzp.com" 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.dhdzp.com" 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網(wǎng)頁(yè)定位導(dǎo)航特效實(shí)現(xiàn)方法
這篇文章主要介紹了jQuery網(wǎng)頁(yè)定位導(dǎo)航特效實(shí)現(xiàn)方法,結(jié)合實(shí)例形式分析了jQuery網(wǎng)頁(yè)定位導(dǎo)航的功能描述、原理與核心實(shí)現(xiàn)代碼,需要的朋友可以參考下2016-12-12
基于jQuery實(shí)現(xiàn)仿淘寶套餐選擇插件
本文給大家介紹的是一款基于jQuery實(shí)現(xiàn)放淘寶套餐選擇的插件,主要是基于本地json數(shù)據(jù)的選擇列創(chuàng)建,有需要的小伙伴參考下。2015-03-03
jQuery實(shí)現(xiàn)動(dòng)態(tài)生成年月日級(jí)聯(lián)下拉列表示例
這篇文章主要介紹了jQuery實(shí)現(xiàn)動(dòng)態(tài)生成年月日級(jí)聯(lián)下拉列表,結(jié)合具體實(shí)例形式分析了jQuery日期時(shí)間運(yùn)算構(gòu)造級(jí)聯(lián)下拉列表相關(guān)操作技巧,需要的朋友可以參考下2019-05-05
jquery插件treegrid樹狀表格的使用方法詳解(.Net平臺(tái))
本文主要介紹了jquery插件treegrid樹狀表格的使用方法,具有一定的參考作用,下面跟著小編一起來(lái)看下吧2017-01-01
Jquery實(shí)現(xiàn)顯示和隱藏的4種簡(jiǎn)單方式
顯示和隱藏的效果想必大家都有見到過(guò)吧,其實(shí)很簡(jiǎn)單,通過(guò)jquery便可輕松實(shí)現(xiàn),下面為大家整理了4種方式,大家可以根據(jù)需求自由選擇2013-08-08
JQuery 設(shè)置checkbox值二次無(wú)效的解決方法
下面小編就為大家?guī)?lái)一篇JQuery 設(shè)置checkbox值二次無(wú)效的解決方法。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2016-07-07
jQuery實(shí)現(xiàn)textarea自動(dòng)增長(zhǎng)寬高的方法
這篇文章主要介紹了jQuery實(shí)現(xiàn)textarea自動(dòng)增長(zhǎng)寬高的方法,涉及jQuery針對(duì)鍵盤按鍵的響應(yīng)及頁(yè)面元素的動(dòng)態(tài)操作技巧,需要的朋友可以參考下2015-12-12

