📄 leftrobin.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
%>
<%@page contentType="text/html;charset=gb2312"%>
<jsp:useBean id="DbBean" class="publib.OperDbBean" scope="page"></jsp:useBean>
<HTML>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.5 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
<BASE target="rightFrame">
<TITLE>
菜单项页面
</TITLE>
<LINK rel="stylesheet" href="/resources/Menu.css" type="text/css">
</HEAD>
<BODY>
<FORM name="czform">
<SCRIPT type=text/javascript>
var freshnum=0;
var selectedItem = null;
var targetWin;
document.onclick = handleClick;
onload=initmenu;
document.onmouseover = handleOver;
document.onmouseout = handleOut;
document.onmousedown = handleDown;
document.onmouseup = handleUp;
document.write(writeSubPadding(10))
function handleClick() {
el = getReal(window.event.srcElement, "tagName", "DIV");
if ((el.className == "topFolder") || (el.className == "subFolder")) {
el.sub = eval(el.id + "Sub");
if (el.sub.style.display == null) el.sub.style.display = "none";
if (el.sub.style.display != "block") {
if (el.parentElement.openedSub != null) {
var opener = eval(el.parentElement.openedSub + ".opener");
hide(el.parentElement.openedSub);
if (opener.className == "topFolder")
outTopItem(opener);
}
el.sub.style.display = "block";
el.sub.parentElement.openedSub = el.sub.id;
el.sub.opener = el;
}
else {
if (el.sub.openedSub != null) hide(el.sub.openedSub);
else hide(el.sub.id);
}
}
if ((el.className == "subItem") || (el.className == "subFolder")) {
if (selectedItem != null)
restoreSubItem(selectedItem);
highlightSubItem(el);
}
if ((el.className == "topItem") || (el.className == "topFolder")) {
if (selectedItem != null)
restoreSubItem(selectedItem);
}
if ((el.className == "topItem") || (el.className == "subItem")) {
if ((el.href != null) && (el.href != "")) {
if ((el.target == null) || (el.target == "")) {
if (window.opener == null) {
if (document.all.tags("BASE").item(0) != null)
window.open(el.href, document.all.tags("BASE").item(0).target);
else
window.location = el.href;
}
else {
window.opener.location = el.href;
}
}
else {
window.open(el.href, el.target);
}
}
}
var tmp = getReal(el, "className", "favMenu");
if (tmp.className == "favMenu") fixScroll(tmp);
}
function initmenu_bak() {
if((freshnum==0))
{
freshnum=freshnum+1;
divColl = document.all.tags("DIV");
for (i=0; i<=divColl.length; i++)
{
el = getReal(divColl(i), "tagName", "DIV");
if ((el.className == "topFolder") || (el.className == "subFolder")) {
el.sub = eval(el.id + "Sub");
if (el.sub.style.display == null) el.sub.style.display = "none";
if (el.sub.style.display != "block") {
if (el.parentElement.openedSub != null) {
var opener = eval(el.parentElement.openedSub + ".opener");
hide(el.parentElement.openedSub);
if (opener.className == "topFolder")
outTopItem(opener);
}
el.sub.style.display = "block";
el.sub.parentElement.openedSub = el.sub.id;
el.sub.opener = el;
}
else {
if (el.sub.openedSub != null) hide(el.sub.openedSub);
else hide(el.sub.id);
}
}
if ((el.className == "subItem") || (el.className == "subFolder")) {
if (selectedItem != null)
restoreSubItem(selectedItem);
highlightSubItem(el);
}
if ((el.className == "topItem") || (el.className == "topFolder")) {
if (selectedItem != null)
restoreSubItem(selectedItem);
}
if ((el.className == "topItem") || (el.className == "subItem")) {
if ((el.href != null) && (el.href != "")) {
if ((el.target == null) || (el.target == "")) {
if (window.opener == null) {
if (document.all.tags("BASE").item(0) != null)
window.open(el.href, document.all.tags("BASE").item(0).target);
else
window.location = el.href;
}
else {
window.opener.location = el.href;
}
}
else {
window.open(el.href, el.target);
}
}
}
var tmp = getReal(el, "className", "favMenu");
if (tmp.className == "favMenu") fixScroll(tmp);
}
}
}
function initmenu()
{
}
function handleOver() {
var fromEl = getReal(window.event.fromElement, "tagName", "DIV");
var toEl = getReal(window.event.toElement, "tagName", "DIV");
if (fromEl == toEl) return;
el = toEl;
if ((el.className == "topFolder") || (el.className == "topItem")) overTopItem(el);
if ((el.className == "subFolder") || (el.className == "subItem")) overSubItem(el);
if ((el.className == "topItem") || (el.className == "subItem")) {
if (el.href != null) {
if (el.oldtitle == null) el.oldtitle = el.title;
if (el.oldtitle != "")
el.title = el.oldtitle + "\n" + el.href;
else
el.title = el.oldtitle + el.href;
}
}
if (el.className == "scrollButton") overscrollButton(el);
}
function handleOut() {
var fromEl = getReal(window.event.fromElement, "tagName", "DIV");
var toEl = getReal(window.event.toElement, "tagName", "DIV");
if (fromEl == toEl) return;
el = fromEl;
if ((el.className == "topFolder") || (el.className == "topItem")) outTopItem(el);
if ((el.className == "subFolder") || (el.className == "subItem")) outSubItem(el);
if (el.className == "scrollButton") outscrollButton(el);
}
function handleDown() {
el = getReal(window.event.srcElement, "tagName", "DIV");
if (el.className == "scrollButton") {
downscrollButton(el);
var mark = Math.max(el.id.indexOf("Up"), el.id.indexOf("Down"));
var type = el.id.substr(mark);
var menuID = el.id.substring(0,mark);
eval("scroll" + type + "(" + menuID + ")");
}
}
function handleUp() {
el = getReal(window.event.srcElement, "tagName", "DIV");
if (el.className == "scrollButton") {
upscrollButton(el);
window.clearTimeout(scrolltimer);
}
}
////////////////////// EVERYTHING IS HANDLED ////////////////////////////
function hide(elID) {
var el = eval(elID);
el.style.display = "none";
el.parentElement.openedSub = null;
if (el.openedSub != null) hide(el.openedSub);
}
function writeSubPadding(depth) {
var str, str2, val;
var str = "<style type='text/css'>\n";
for (var i=0; i < depth; i++) {
str2 = "";
val = 0;
for (var j=0; j < i; j++) {
str2 += ".sub "
val += 22;
}
str += str2 + ".subFolder {padding-left: " + val + "px;}\n";
str += str2 + ".subItem {padding-left: " + val + "px;}\n";
}
str += "</style>\n";
return str;
}
//改变颜色及属性
function overTopItem(el) {
with (el.style) {
// background = "buttonface";
// borderLeft = "1px solid buttonhighlight";
// borderRight = "1px solid buttonshadow";
// borderTop = "1px solid buttonhighlight";
// borderBottom = "1px solid buttonshadow";
// paddingBottom = "2px";
}
}
function outTopItem(el) {
if ((el.sub != null) && (el.parentElement.openedSub == el.sub.id)) {
with(el.style) {
// borderTop = "1px solid buttonshadow";
// borderLeft = "1px solid buttonshadow";
// borderRight = "1px solid buttonhighlight";
// borderBottom = "0px";
// paddingBottom = "3px";
// background = "url(/images/tileback.gif) buttonface";
}
}
else {
with (el.style) {
// border = "1px solid buttonface";
// background = "buttonface";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -