<!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>
<style type="text/css">
body{
font-size:12px; background-image: url(images/bg.gif); background-repeat: repeat; padding:0px; margin: 5px;
}
ul,li,h2{margin:0;padding:0;}
ul{list-style:none;}
#top{
width:1000px; height:26px; background-image: url(images/h2bg.gif); margin-top: 0px; margin-right: auto; margin-bottom: 0; margin-left: auto; background-repeat: repeat-x;
}
#top h2{
width:150px; height:24px; float:left; font-size:12px; text-align:center; line-height:20px; color: #000; font-weight: bold; padding-top: 4px;border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; border-left-color: #99BBE8;
}
#top .jg {
width: 5px; float: left; background-color: #DCE6F5; height: 26px;
}
#topTags{
width:830px; height:24px; float:left; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; padding-top: 2px; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; border-left-color: #99BBE8; padding-left: 10px;
}
#topTags ul li{
float:left; width:100px; height:21px; margin-right:4px; display:block;
text-align:center; cursor:pointer; padding-top: 3px; color: #15428B; font-size: 12px;
}
#main{
clear:left; width:1000px; height:540px; background-color:#F5F7E6; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto;
}
#main .jg {
width: 5px; float: left; background-color: #DFE8F6; height: 540px;
}
#leftMenu{
width:150px; height:540px; background-color:#DAE7F6; float:left; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; border-left-color: #99BBE8;
}
#leftMenu ul{margin:10px;}
#leftMenu ul li{
width:100px; height:22px; display:block; cursor:pointer; text-align:left; margin-bottom:5px; background-color: #D9E8FB; background-image: url(images/tabbg01.gif); background-repeat: no-repeat; background-position: 0px 0px; padding-top: 2px; line-height: 20px; padding-left: 30px; overflow: hidden;
}
#leftMenu ul li a{
color:#000000; text-decoration:none; background-image: url(images/tb-btn-sprite_03.gif); background-repeat: repeat-x;
}
#content{
width:840px; height:540px; float:left; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; border-left-color: #99BBE8; background-color: #DAE7F6;
}
.content{
width:830px; height:530px; display:none; padding:5px; overflow-y:auto; line-height:30px; background-color: #FFFFFF;
}
#footer{
width:1000px; height:23px; background-color:#FFFFFF; line-height:20px; text-align:center; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; border-left-color: #99BBE8; background-image: url(images/h2bg.gif);
background-repeat: repeat-x; padding-top: 3px; color:#f00;
}
</style>
<script type="text/javascript">
window.onload=function(){
function $(id){return document.getElementById(id)}
var menu=$("topTags").getElementsByTagName("ul")[0];//顶部菜单容器
var tags=menu.getElementsByTagName("li");//顶部菜单
var ck=$("leftMenu").getElementsByTagName("ul")[0].getElementsByTagName("li");//左侧菜单
var j;
var t = document.getElementById('content');
var tt= t.getElementsByTagName('div');
//点击左侧菜单增加新标签
for(i=0;i<ck.length;i++){
ck[i].onclick=function(){
$("welcome").style.display="none"//欢迎内容隐藏
clearMenu();
this.style.background='url(images/tabbg02.gif)'
//循环取得当前索引
for(j=0;j<tt.length-1;j++){
if(this==ck[j]){
if($("p"+j)==null && j != 8){
openNew(j,this.innerHTML);//设置标签显示文字
writeFile(j);
}
if(j != 8) {
clearStyle();
$("p"+j).style.background='url(images/tabbg1.gif)';
clearContent();
$("c"+j).style.display="block";
}else{
ck[j].style.background = 'url() #369';
}
}
}
return false;
}
}
//增加或删除标签
function openNew(id,name){
var tagMenu=document.createElement("li");
tagMenu.id="p"+id;
tagMenu.innerHTML=name+" "+"<img src='images/off.gif' style='vertical-align:middle'/>";
//标签点击事件
tagMenu.ondblclick=function(evt){
var cc=tags[tags.length-1].id.split("p");
reloadframe(cc[1]);
/* evt=(evt)?evt:((window.event)?window.event:null);
if(evt.stopPropagation){evt.stopPropagation()} //取消opera和Safari冒泡行为;
this.parentNode.removeChild(tagMenu);//删除当前标签
var color=tagMenu.style.backgroundColor;
//设置如果关闭一个标签时,让最后一个标签得到焦点
if(color=="#ffff00"||color=="yellow"){//区别浏览器对颜色解释
if(tags.length-1>=0){
clearStyle();
tags[tags.length-1].style.background='url(images/tabbg1.gif)';
clearContent();
var cc=tags[tags.length-1].id.split("p");
$("c"+cc[1]).style.display="block";
clearMenu();
ck[cc[1]].style.background='url(images/tabbg1.gif)';
}else{
clearContent();
clearMenu();
$("welcome").style.display="block";
}
}
clearMenu();*/
}
tagMenu.onclick=function(evt){
clearMenu();
ck[id].style.background='url(images/tabbg02.gif)'
clearStyle();
tagMenu.style.background='url(images/tabbg1.gif)';
clearContent();
$("c"+id).style.display="block";
//reloadframe(id); //点击标签回到原始链接页面
}
//标签内关闭图片点击事件
tagMenu.getElementsByTagName("img")[0].onclick=function(evt){
evt=(evt)?evt:((window.event)?window.event:null);
if(evt.stopPropagation){evt.stopPropagation()} //取消opera和Safari冒泡行为;
if(tags.length >1) {
this.parentNode.parentNode.removeChild(tagMenu);//删除当前标签
}
var color=tagMenu.style.backgroundColor;
//设置如果关闭一个标签时,让最后一个标签得到焦点
if(color=="#ffff00"||color=="yellow"){//区别浏览器对颜色解释
if(tags.length-1>=0){
clearStyle();
tags[tags.length-1].style.background='url(images/tabbg1.gif)';
clearContent();
var cc=tags[tags.length-1].id.split("p");
$("c"+cc[1]).style.display="block";
clearMenu();
ck[cc[1]].style.background='url(images/tabbg1.gif)';
}else{
clearContent();
clearMenu();
$("welcome").style.display="block";
}
}
}
menu.appendChild(tagMenu);
}
//清除菜单样式
function clearMenu(){
for(i=0;i<ck.length;i++){
if(i != 8)
ck[i].style.background='url(images/tabbg01.gif)';
else
ck[i].style.background = 'url() #369';
}
}
//清除标签样式
function clearStyle(){
for(i=0;i<tags.length;i++){
一个基于Ext UI界面的后台模板
4星 · 超过85%的资源 需积分: 15 186 浏览量
2012-02-10
13:01:55
上传
评论
收藏 13KB RAR 举报
小步2023
- 粉丝: 5
- 资源: 161
最新资源
- YOLOV4-TINY权重文件
- 以下是一个使用贪心算法解决多机调度问题的基本步骤0.txt
- 基于大数据的房产估价是近年来随着技术的发展而兴起的一种新型估价方法.txt
- 企业供应链管理系统v3.rar
- 富芮坤FR8016HA蓝牙开发板使用手册+硬件PCB图+封装库+DEMO演示软件源代码.zip
- 基于YOLOv7的芯片表面缺陷检测系统
- 京东物流 数字化供应链综合研究报告2018.rar
- 基于YOLOv7的植物虫害识别&防治系统
- 2000.1-2023.8中国经济政策不确定性指数月度数据.xlsx
- Screenshot_2024-04-21-20-42-15-443_com.tencent.mm.jpg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
前往页