底部小菜单导航源码下载

最近为我的一起读书网添加了个底部小菜单,因为有用户反应,换章比较麻烦,这个底部小菜单源码是我以前挂扣网保留下来的,当时挺多WAP网站使用,后来不知为啥就再也没看到过了。

使用很简单,也就是个JS+CSS+img。

放在要显示的地方:

<!--导航开始-->
<link href="/taobaocd.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/taobaocd.js"></script>
<div class="quick_nav" id="quick_nav" style="left: 10px; bottom: 0px;">
<div class="quick_btn"></div>
<div class="quick_con hide">
<ul class="quick_list">
<li class="qnav_home"><a href="index.php">领券直播</a></li>
<li class="qnav_one"><a href="https://www.yunmss.cn/index.php/post/158.html">教程</a></li>
<li class="qnav_two"><a href="vip.html">福利</a></li>
<li class="qnav_three"><a href="http://e.zhaoquan.xin/index.php?r=cha">查券</a></li>
<li class="qnav_four"><a href="http://jd.zhaoquan.xin">京东</a></li>
<li class="qnav_five"><a href="http://www.zhaoquan.xin/index.php?r=ddq&u=1">叮咚</a></li>
<li class="qnav_six"><a href="http://e.zhaoquan.xin/index.php?r=ju">划算</a></li>
</ul></div></div>
<script type="text/javascript">
(function qnav(){
var oQuickNav = document.getElementById("quick_nav");
var oQuickNavDiv = oQuickNav.getElementsByTagName("div");
var oBtn = true;
oQuickNavDiv[0].onclick = function (){
if(oBtn == true){
this.className = "quick_btn current";
oQuickNavDiv[1].className = "quick_con show";
}else{
this.className = "quick_btn";
oQuickNavDiv[1].className = "quick_con hide";
}
oBtn = !oBtn;
}
})();
</script>
<!--导航结束-->

保存为taobaocd.js文件:

/* WWW.yiyunblog.com */
document.writeln("");
document.writeln("<script type=\"text/javascript\">");
document.writeln("");
document.writeln("(function qnav(){");
document.writeln("	var oQuickNav = document.getElementById(\"quick_nav\");");
document.writeln("	var oQuickNavDiv = oQuickNav.getElementsByTagName(\"div\");");
document.writeln("	var oBtn = true;");
document.writeln("	oQuickNavDiv[0].onclick = function (){");
document.writeln("	if(oBtn == true){");
document.writeln("	this.className = \"quick_btn current\";");
document.writeln("	oQuickNavDiv[1].className = \"quick_con show\";");
document.writeln("	}else{");
document.writeln("	this.className = \"quick_btn\";");
document.writeln("	oQuickNavDiv[1].className = \"quick_con hide\";");
document.writeln("	}");
document.writeln("	oBtn = !oBtn;");
document.writeln("	}");
document.writeln("");
document.writeln("})();");
document.writeln("</script>");

保存为taobaocd.css文件:

.quick_nav { position: fixed; bottom: 30px; left: 12px; z-index: 4999; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); background-color:transparent; border-radius:50%; }
.quick_nav .new { color: #fff; font-weight: bold; height: 19px; line-height: 19px; position: absolute; top: -3px; margin-left: 34px; padding: 0 6px; border: 2px solid #fff; border-radius: 10px; background-color: #ff5460; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.quick_nav em { display: inline-block; height: 10px; width: 10px; margin: 4px; position: absolute; right: 0; background: #ff5460; border-radius: 15px; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.quick_nav i { display: inline-block; width: 45px; height: 45px; margin: 3px 0 0 3px; border: 1px solid #eff0f1; border-radius: 45px; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); }
.quick_mask { position: fixed; top: 0px; right: 0; bottom: 0; left: 0; z-index: 10; background: rgba(0, 0, 0, 0.2); display: none; }
.quick_btn { width: 53px; height: 53px; background-position: 0 0; position: relative; z-index: 13; background-image: url(改为你的图片地址); background-repeat: no-repeat; -webkit-background-size: 250px auto; background-size: 250px auto; }
.quick_btn.current { background-position: 0 -58px; }
.quick_con { position: absolute; bottom: 25px; left: 23px; z-index: 12; width: 190px; height: 190px; overflow: hidden; -webkit-transition: all linear .15s; background-position: -60px 0; background-image: url(改为你的图片地址); background-repeat: no-repeat; -webkit-background-size: 250px auto; background-size: 250px auto; }
.quick_con.hide { opacity: 0; -webkit-transform: translate(-100px, 100px) scale(0.2); pointer-events: none; }
.quick_con.show { opacity: 1; -webkit-transform: translate(0px, 0) scale(1); pointer-events: auto; }
.quick_list{ padding:0px; margin:0px;}
.quick_list li { position: absolute; list-style-type:none; }
.quick_list li .new { top: 7px; margin-left: 43px; }
.quick_list li em { top: 10px; right: 10px; }
.quick_list li a { display: block; height: 28px; outline: none; text-align: center; line-height: 28px; position: absolute; text-decoration: none; font-size: 14px; color: #626262; text-shadow: 0 0 1px rgba(255, 255, 255, 0.6); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
.quick_list li.qnav_home a { width: 53px; height: 53px; left: 11px; top: 11px; text-indent: -90000px; overflow: hidden; line-height: 1000px; }
.qnav_home { width: 78px; height: 150px; position: absolute; left: 56px; top: 55px; }
.qnav_one { width: 92px; height: 68px; left: 17px; top: 4px; }
.qnav_one a { left: 23px; top: 19px; width: 42px; }
.qnav_two { width: 52px; height: 90px; left: 4px; top: 49px; }
.qnav_two a { left: 4px; top: 31px; width: 42px; }
.qnav_three { width: 79px; height: 69px; left: 16px; top: 115px; }
.qnav_three a { left: 23px; top: 19px; width: 42px; }
.qnav_four { width: 77px; height: 85px; left: 94px; top: 116px; }
.qnav_four a { left: 13px; top: 19px; width: 42px; }
.qnav_five { width: 52px; height: 90px; left: 132px; top: 48px; }
.qnav_five a { left: 6px; top: 31px; width: 42px; }
.qnav_six { width: 77px; height: 67px; left: 94px; top: 4px; }
.qnav_six a { left: 13px; top: 19px; width: 42px; }

下载img图片:

打包好的下载地址:网盘下载(推荐)备用下载

 

本文由 易云博客 作者:易云 发表,其版权均为 易云博客 所有,文章内容系作者个人观点,不代表 易云博客 对观点赞同或支持。如需转载,请注明文章来源。
81