jQuery實現(xiàn)底部浮動窗口效果
本文實例講述了jQuery實現(xiàn)底部浮動窗口效果。分享給大家供大家參考,具體如下:
<script type="text/javascript" src="jquery-1.10.1.min.js"></script> <style type="text/css"> #foot_tel { width:100%;height:43px; background:url(styles/js/swt/tel_bj_20131123.png) no-repeat center center; _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight)); z-index: 10000; position:fixed; _position:absolute; bottom:0px; left:0px;} #foot_telBox { margin:0px auto;width:1112px; z-index: 8999;height:43px; overflow:hidden;} #foot_telBox li {list-style:none;} #foot_telBox .tel_txt { border:0px; float:left; font-size:14px; line-height:22px; height:22px; color:#999999; background:none; margin:16px 10px 0 244px; width:160px;} #foot_telBox .tel_sub { border:0px; float:left; height:25px; color:#0C6796; background: url(styles/js/swt/tel_sub.png) no-repeat; width:92px;cursor:pointer;margin-top: 14px;} #qqzhenshi{float:left;margin-left: 35px;} #qqzhenshi a{display: block; width: 135px; height: 20px; margin: 15px 0px 0px 0px;} #foot_show { width:100%; height:140px; background: url(styles/js/swt/footAdd_bg.png); _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight)); z-index: 20; position:fixed; _position:absolute; bottom:-140px; left:0px;} .foot_showBox{width:1000px;height:79px;margin:10px auto 0px auto;} </style> <div id="foot_swt"> <div id="foot_tel"> <div id="foot_telBox"> <li style="float:left;"> <input type="text" onclick="openOline();" value="在線問問醫(yī)生" class="tel_txt" /> <input type="button" value="" onclick="openOline();" class="tel_sub" /> </li> <li id="qqzhenshi"><a href="###" target="_blank"></a></li> <li style="width: 422px; float: right;list-style: none;"><span style="float: left; padding-top: 14px; width:360px; text-align:left"><a style="display:block" href="###" target="_blank"><img src="styles/js/swt/anniu_20130627.gif"></a></span><span style="float:right;"><a href="#" target="_self"><img src="styles/js/swt/tel_s4.gif"></a></span></li> </div> </div> <div id="foot_show"> <div class="foot_showBox"><img src="styles/js/swt/footAdd.png" alt="" border="0" usemap="#Mapfoot" /> <map name="Mapfoot" id="Mapfoot"> <area shape="rect" coords="640,10,891,288" href="###" target="_blank" /> </map> </div> </div> </div> <script type="text/javascript"> $(function(){ $('#foot_swt').mouseover(function(){ $('#foot_show').stop().animate({'bottom':'0px'},'fast'); }) $('#foot_swt').mouseout(function(){ $('#foot_show').stop().animate({'bottom':'-140px'},'fast'); }) }); function openOline(){ window.open("###", "_blank"); } </script>
運行效果如下圖:
更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery擴展技巧總結(jié)》、《jQuery常用插件及用法總結(jié)》、《jQuery拖拽特效與技巧總結(jié)》、《jQuery表格(table)操作技巧匯總》、《jquery中Ajax用法總結(jié)》、《jQuery常見經(jīng)典特效匯總》、《jQuery動畫與特效用法總結(jié)》及《jquery選擇器用法總結(jié)》
希望本文所述對大家jQuery程序設(shè)計有所幫助。
相關(guān)文章
一個很簡單的jquery+xml+ajax的無刷新樹結(jié)構(gòu)(無css,后臺是c#)
一個很簡單的jquery+xml+ajax的無刷新樹結(jié)構(gòu)(無css,后臺是c#)2010-06-06JQuery Tips(2) 關(guān)于$()包裝集你不知道的
包裝集總是面向集合的,需要的朋友可以參考下。2009-12-12通過點擊jqgrid表格彈出需要的表格數(shù)據(jù)
在眾多的表格插件中,jqgrid的特點是非常鮮明的,所以jqgrid表格插件用處非常廣泛,本篇文章給大家介紹通過點擊jqgrid表格彈出需要的表格數(shù)據(jù),需要的朋友參考下2015-12-12jQuery實現(xiàn)的一個tab切換效果內(nèi)部還嵌有切換
這篇文章主要介紹了jQuery實現(xiàn)的一個tab切換效果,它的特色是內(nèi)部還嵌有切換,需要的朋友可以參考下2014-08-08jquery左右滾動焦點圖banner圖片鼠標經(jīng)過顯示上下頁按鈕
jquery左右滾動焦點圖banner圖片,鼠標經(jīng)過顯示上下頁,適合寬和高都比較大的頁面使用附演示,感興趣的朋友可以參考下2013-10-10把html頁面的部分內(nèi)容保存成新的html文件的jquery代碼
把html頁面的部分內(nèi)容保存成新的html文件,用到了jquery的獲取指定id的內(nèi)容。然后保存代碼。2009-11-11jquery顯示loading圖片直到網(wǎng)頁加載完成的方法
這篇文章主要介紹了jquery顯示loading圖片直到網(wǎng)頁加載完成的方法,涉及jquery頁面加載與動畫效果的使用技巧,需要的朋友可以參考下2015-06-06