欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JQUERY實(shí)現(xiàn)網(wǎng)頁(yè)右下角固定位置展開(kāi)關(guān)閉特效的方法

 更新時(shí)間:2015年07月27日 16:03:21   作者:西西愛(ài)OS  
這篇文章主要介紹了JQUERY實(shí)現(xiàn)網(wǎng)頁(yè)右下角固定位置展開(kāi)關(guān)閉特效的方法,涉及jquery操作頁(yè)面元素的顯示與隱藏等相關(guān)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了JQUERY實(shí)現(xiàn)網(wǎng)頁(yè)右下角固定位置展開(kāi)關(guān)閉特效的方法。分享給大家供大家參考。具體如下:

html代碼:

<div class="tagbox">
<div class="tag">
<span>熱門(mén)標(biāo)簽...</span>
<ul>
<li><a href='/tag/js展開(kāi)收起_1.html' target="_blank">js展開(kāi)收起</a></li>
<li><a href='/tag/js幻燈片_1.html' target="_blank">js幻燈片</a></li>
<li><a href='/tag/js特效_1.html' target="_blank">js特效</a></li>
<li><a href='/tag/廣告代碼_1.html' target="_blank">廣告代碼</a></li>
<li><a href='/tag/對(duì)聯(lián)廣告_1.html' target="_blank">對(duì)聯(lián)廣告</a></li>
<li><a href='/tag/js彈出層_1.html' target="_blank">js彈出層</a></li>
<li><a href='/tag/無(wú)縫滾動(dòng)_1.html' target="_blank">無(wú)縫滾動(dòng)</a></li>
<li><a href='/tag/php教程_1.html' target="_blank">php教程</a></li>
<li><a href='/tag/ajax實(shí)例_1.html' target="_blank">ajax實(shí)例</a></li>
</ul>
</div>
<div class="guanbi"><a href="javascript:;" target="_blank">點(diǎn)擊關(guān)閉</a></div>
</div>
<div class="zhangkai"><a href="javascript:;">熱門(mén)標(biāo)簽</a></div>
<div class="xx"></div>

css代碼:

<style type="text/css">
ul,li{ margin:0px; padding:0px; list-style:none;}
.tagbox{ width:100px; height:auto; border:1px solid #CCCCCC; POSITION:fixed;_position:absolute; _margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop); z-index:99; right:0px; bottom:25px; background-color:#FFFFFF; -webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
.tag{ width:80px; height:auto; padding:5px 10px;}
.tag span{ width:80px; height:30px; display:block; line-height:30px; color:#006600; font-size:12px;}
.tag li{ width:80px; height:24px; line-height:24px; font-size:12px; overflow:hidden;}
.tag li a{ color:#336699;}
.tag li a:hover{ text-decoration:underline; color: #FF0000;}
.guanbi{width:100px; height:26px; background-color: #F0F0F0; line-height:26px; font-size:12px; text-align:center; -webkit-border-radius:0px 0px 5px 5px;-moz-border-radius:0px 0px 5px 5px;border-radius:0px 0px 5px 5px;}
.guanbi a{ color:#666666; text-decoration:none;}
.zhangkai{ width:20px; height:auto; padding:10px 5px; line-height:20px; font-size:14px; text-align:center;-webkit-border-radius:5px 0px 0px 5px;-moz-border-radius:5px 0px 0px 5px;border-radius:5px 0px 0px 5px; border:1px solid #CCCCCC; POSITION:fixed;_position:absolute; _margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop); z-index:100; right:0px; bottom:50px; background-color:#FFFFFF; display:none;}
.zhangkai a{color:#006600; text-decoration:none;}
.xx{ height:1000px;}
</style>

js代碼:

<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
   $(".guanbi a").click(function(){
    $(".tagbox").hide();
    $(".zhangkai").show();
    return false;
   });   
   $(".zhangkai").click(function(){
    $(".zhangkai").hide();
    $(".tagbox").show(500);
    return false;
   });
  });
</script>

希望本文所述對(duì)大家的jquery程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論