<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心 - 首页</title>
</head>
<style media="all" type="text/css">
html, body{ font-family:'宋体'; font-size:14px; }
html, body, ul, li{ margin:0; padding:0; }
ul{ list-style:none; }
a{ text-decoration:none; }
a:hover{ text-decoration:underline; }
.fl{ float:left; }
.fr{ float:right; }
#top{ height:30px; overflow:hidden; background:#2D2D2D; position:fixed; left:0; top:0; right:0; z-index:100; }
#top .fl{ padding-left:15px; }
#top ul li{ display:block; height:30px; }
#top .fl ul li{ float:left; margin-right:5px; }
#top .fr ul li{ float:right; margin-left:5px; }
#top a{ color:#D7D7D7; display:block; padding:7px 3px; clear:both; }
#top a:hover{ background:#4B4B4B; text-decoration:none; color:#fff; }
#top .fl ul li select{ position:relative; top:2px; }
#title{ background:#F5F5F5; height:74px; overflow:hidden; border-bottom:#E5E5E5 1px solid; position:fixed; left:0; top:30px; right:0; z-index:100; }
#subject{ padding:24px 10px; font-size:20px; color:#DD3B3B; }
#side{ top:105px; left:0; width:200px; overflow:hidden; padding-top:25px; position:fixed; left:0; top:104px; right:0; }
#side ul{}
#side ul li{ height:30px; overflow:hidden; }
#side ul li a{ padding-left:40px; display:block; border-left:5px #fff solid; color:#4B4B4B; height:30px; line-height:30px; font-size:12px; }
#side ul li a.cur{ border-left:5px #DD3B3B solid; color:#DD3B3B; }
#side ul li a:hover{ text-decoration:none; background:#F5F5F5; border-left:5px #F5F5F5 solid; }
#side ul li a.cur:hover{ border-left:5px #DD3B3B solid; }
#content{ position:absolute; left:220px; top:105px; right:0; }
</style>
<script language="javascript" src="images/jquery.min.js"></script>
<script language="javascript">
$(document).ready(function(){
$("#side a").each(function(i){
if($(this).hasClass('cur')){
loadContent($(this).attr('href'));
}
//alert('d');
$(this).click(function(e){
var e = e || window.event;
//alert(e);
e.preventDefault();
e.stopPropagation()
if(!$(this).hasClass('cur')){
$("#side a").each(function(i){
if($(this).hasClass('cur')){
$(this).removeClass('cur');
}
});
$(this).addClass('cur');
}
loadContent($(this).attr('href'), $(this).attr('target'));
return false;
});
});
if(document.getElementById('quickRequest')){
$("#quickRequest").change(function(){
var i = this.options.selectedIndex;
var op = this.item(i);
if($(op).attr('target') == '_blank'){
location.href = $(this).val();
}else{
loadContent($(this).val());
}
});
}
});
function resizeIframe(iframe){
iframe.style.height = iframe.contentDocument.body.scrollHeight + 'px';
var title = '';
if(iframe.contentDocument.getElementById('subject')){
var title = iframe.contentDocument.getElementById('subject').innerHTML;
}
if(title.length > 4){
$("#subject").html(title);
}
}
function loadContent(src, t){
if(t && t == '_top'){
window.top.location.href = src;
}else{
$("#iframe").attr('src', src);
}
}
</script>
<body>
<div id="top">
<div class="fl">
<ul>
<li><select id="quickRequest">
<option>快速访问</option>
<option value="1.html">1.html</option>
<option value="2.html">2.html</option>
</select></li>
<li><a href="index.html">管理一</a></li>
<li><a href="index.html">管理二</a></li>
<li><a href="index.html">管理三</a></li>
<li><a href="index.html">管理四</a></li>
</ul>
</div>
<div class="fr">
<ul>
<li><a href="index.html">退出</a></li>
<li><a href="login.html">登录</a></li>
</ul>
</div>
</div>
<div id="title">
<div id="subject">操作标题</div>
</div>
<div id="side">
<ul>
<li><a href="content.html" class="cur">正文页</a></li>
<li><a href="list.html" class="">列表页</a></li>
<li><a href="setting.html" class="">配置页</a></li>
<li><a href="message.html" class="">提示消息</a></li>
</ul>
</div>
<div id="content">
<iframe id="iframe" scrolling="no" src="about:blank" frameborder="0" width="800" height="0" onload="resizeIframe(this);"></iframe>
</div>
</body>
</html>
- 1
- 2
前往页