手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jquery固定底网站底部菜单效果
jquery固定底网站底部菜单效果
摘要:复制代码代码如下:固定底(顶)部菜单body{padding:0;margin:0;font-size:12px;font-family:A...

复制代码 代码如下:

<!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>

<title>固定底(顶)部菜单</title>

<script type="text/javascript" src="../js_date/js/jquery.js"></script>

<style>

body {padding:0; margin:0; font-size:12px; font-family:Arial; word-break:break-all; word-wrap:break-word; }

.bnav { text-align:left; height:25px; overflow:hidden; width:98%; line-height:25px; background:#fff; margin:0 1%; border:#B4B4B4 1px solid; border-bottom:none; z-index:999; position:fixed; bottom:0; left:0; _position:absolute;/* for IE6 */ _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight); /* for IE6 */

overflow:visible; }

.close { position:absolute; right:5px; height:25px; width:16px; text-indent:-9999px; padding-left:10px; }

.close a { background:url(../js_date/images/20110603/close.gif) no-repeat center; width:16px; display:block; }

.bnav2 { height:24px; line-height:24px; margin:1px; margin-bottom:0; background:#E5E5E5; }

.bnav3 { height:25px; width:16px; line-height:25px; margin:0 1%; padding-right:6px; border-bottom:none; z-index:999; position:fixed; bottom:0; right:0; _position:absolute;/* for IE6 */ _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight); /* for IE6 */

overflow:visible; }

.bnav3 a { background:url(../js_date/images/20110603/open.gif) no-repeat center; display:block; height:25px; width:16px; text-indent:-5000px; }

</style>

</head>

<body>

<script type="text/javascript">

var closeBN = $.cookie("bnav");

if (closeBN == "0"){closeNav();}

function showNav(){

$(".openClose").toggle();

$.cookie("bnav", "1", {expires: 1});

}

function closeNav(){

$(".openClose").toggle();

$.cookie("bnav", "0", {expires: 1});

}

</script>

<div>

<div><span><a href="javascript:void(0)" title="关闭">关闭</a></span> 信息显示信息显示信息显示信息显示信息显示信息显示信息显示信息显示信息显示信息显示信息显示信息显示信息显示</div>

</div>

<div><a href="javascript:void(0)" title="打开">打开</a></div>

</body>

</html></td>

</tr>

</table>

【jquery固定底网站底部菜单效果】相关文章:

js实现带按钮的上下滚动效果

javascript实现链接单选效果

JS+CSS实现的拖动分页效果实例

基于jquery实现下拉框美化特效

基于jQuery插件实现环形图标菜单旋转切换特效

jquery合并表格中相同文本的相邻单元格

jQuery+ajax实现无刷新级联菜单示例

jQuery的基本概念与高级编程

jQuery实现的多屏图像图层切换效果实例

网页中移动的广告效果 鼠标悬停

精品推荐
分类导航