足球游戏_中国足彩网¥体育资讯$

仿qq下拉表
来源:易贤网 阅读:796 次 日期:2014-10-09 12:12:26
温馨提示:易贤网小编为您整理了“仿qq下拉表”,方便广大网友查阅!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="" xml:lang="UTF-8" lang="UTF-8">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gbk" />

<meta http-equiv="Content-Language" content="UTF-8" />

<title>后台管理</title>

<style type="text/css">

body {margin:0;text-align:center;color:#000;font:normal 12px Arial,Verdana,Tahoma;text-align:center;background:#C8D0D5;line-height:150%;}

a:link,a:visited {color:#385065;text-decoration:none}

a:hover {text-decoration:underline}

#menu {width:150px;margin:0px 15px;padding:0px;text-align:left;list-style:none}

#menu .item {margin:5px 0px;padding:0px;list-style:none}

a.title:link, a.title:visited, a.title:hover {display:block;background:url(/<a href="/Upfiles/BeyondPic/2008-03/20083250264119367.gif) no-repeat;color:#385065;font-weight:bold;padding:2px 0 0 22px;width:128px;line-height:23px;cursor:pointer;text-decoration:none}

#menu .item ul {border:1px solid #9FACB7;margin:0;width:118px;padding:3px 0px 3px 30px;background:#fff;list-style:none;display:none}

#menu .item ul li {display:block;}

</style>

<script language="javascript" type="text/javascript">

// --- 获取ClassName

document.getElementsByClassName = function(cl) {

var retnode = [];

var myclass = new RegExp('\\b'+cl+'\\b');

var elem = this.getElementsByTagName('*');

for (var j = 0; j < elem.length; j++) {

var classes = elem[j].className;

if (myclass.test(classes)) retnode.push(elem[j]);

}

return retnode;

}

// --- 隐藏所有

function HideAll() {

var items = document.getElementsByClassName("optiton");

for (var j=0; j<items.length; j++) {

items[j].style.display = "none";

}

}

// --- 设置cookie

function setCookie(sName,sValue,expireHours) {

var cookieString = sName + "=" + escape(sValue);

//;判断是否设置过期时间

if (expireHours>0) {

var date = new Date();

date.setTime(date.getTime + expireHours * 3600 * 1000);

cookieString = cookieString + "; expire=" + date.toGMTString();

}

document.cookie = cookieString;

}

//--- 获取cookie

function getCookie(sName) {

var aCookie = document.cookie.split("; ");

for (var j=0; j < aCookie.length; j++){

var aCrumb = aCookie[j].split("=");

if (escape(sName) == aCrumb[0])

return unescape(aCrumb[1]);

}

return null;

}

window.onload = function() {

var show_item = "opt_1";

if (getCookie("show_item") != null) {

show_item= "opt_" + getCookie("show_item");

}

document.getElementById(show_item).style.display = "block";

var items = document.getElementsByClassName("title");

for (var j=0; j<items.length; j++) {

items[j].onclick = function() {

var o = document.getElementById("opt_" + this.name);

if (o.style.display != "block") {

HideAll();

o.style.display = "block";

setCookie("show_item",this.name);

}

else {

o.style.display = "none";

}

}

}

}

</script>

</head>

<body>

<ul id="menu">

<li class="item"><a href="javascript:void(0)" class="title" name="1">仿qq下拉表1</a>

<ul id="opt_1" class="optiton">

<li><a href="#">仿qq下拉表2</a></li>

<li><a href="#">仿qq下拉表3</a></li>

</ul>

</li>

<li class="item"><a href="javascript:void(0)" class="title" name="2">仿qq下拉表4</a>

<ul id="opt_2" class="optiton">

<li><a href="#">仿qq下拉表5</a></li>

<li><a href="#">仿qq下拉表</a></li>

</ul>

</li>

<li class="item"><a href="javascript:void(0)" class="title" name="3">仿qq下拉表4</a>

<ul id="opt_3" class="optiton">

<li><a href="#">仿qq下拉表5</a></li>

<li><a href="#">仿qq下拉表6</a></li>

<li><a href="#">仿qq下拉表7</a></li>

<li><a href="#">仿qq下拉表8</a></li>

</ul>

</li>

</ul>

</body>

</html>

中国足彩网信息请查看IT技术专栏

中国足彩网信息请查看脚本栏目
上一篇:js字体大小
下一篇:javascript:void(0)
易贤网手机网站地址:仿qq下拉表
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
关于我们 | 联系我们 | 人才招聘 | 网站声明 | 网站帮助 | 非正式的简要咨询 | 简要咨询须知 | 加入群交流 | 手机站点 | 投诉建议
工业和信息化部备案号:滇ICP备2023014141号-1 足球游戏_中国足彩网¥体育资讯$ 滇公网安备53010202001879号 人力资源服务许可证:(云)人服证字(2023)第0102001523号
云南网警备案专用图标
联系电话:0871-65317125(9:00—18:00) 获取招聘考试信息及咨询关注公众号:hfpxwx
咨询QQ:526150442(9:00—18:00)版权所有:易贤网
云南网警报警专用图标