<?xml version='1.0' encoding='GB2312'?>
<?xml-stylesheet type='text/xsl' href='/expert/Xsl/2.xsl'?>
<Topic>
<Issue>
<PostUserNickName> </PostUserNickName>
<rank> </rank>
<ranknum> </ranknum>
<credit> 100</credit>
<TopicId> </TopicId>
<TopicName> </TopicName>
<PostUserId>111880</PostUserId>
<PostUserName>lsaturn</PostUserName>
<RoomName>Web 开发 JavaScript</RoomName>
<ReplyNum>0</ReplyNum>
<PostDateTime>2003-11-17 21:29:18</PostDateTime>
<Point>100</Point>
<ReadNum>0</ReadNum>
<RoomId>304</RoomId>
<EndState>0</EndState>
<Content> </Content>
</Issue>
<Replys>
<?xml-stylesheet type='text/xsl' href='/expert/Xsl/2.xsl'?>
<Topic>
<Issue>
<PostUserNickName> </PostUserNickName>
<rank> </rank>
<ranknum> </ranknum>
<credit> 100</credit>
<TopicId> </TopicId>
<TopicName> </TopicName>
<PostUserId>111880</PostUserId>
<PostUserName>lsaturn</PostUserName>
<RoomName>Web 开发 JavaScript</RoomName>
<ReplyNum>0</ReplyNum>
<PostDateTime>2003-11-17 21:29:18</PostDateTime>
<Point>100</Point>
<ReadNum>0</ReadNum>
<RoomId>304</RoomId>
<EndState>0</EndState>
<Content> </Content>
</Issue>
<Replys>
用Popup做OA的菜单不错的选择
其实我就是想要那个菜单,那个菜单就好像myie的菜单,还有officexp的菜单
跟那个网站没有什么关系!
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<html>
<SCRIPT language=javascript src="menu.js"></SCRIPT>
<style type="text/css">
.btna { border: 1px solid #CCCCCC;}
.firstColumnNormal {
BORDER-TOP: #EBEADB 1px solid; BACKGROUND: #EBEADB; BORDER-LEFT: #EBEADB 1px solid; WIDTH: 18px; CURSOR: default; BORDER-BOTTOM: #EBEADB 1px solid; HEIGHT: 18px
}
.secondColumnNormal {
BORDER-TOP: white 1px solid; PADDING-LEFT: 8px; BACKGROUND: white; CURSOR: default; BORDER-BOTTOM: white 1px solid; HEIGHT: 18px
}
.thirdColumnNormal {
BORDER-RIGHT: white 1px solid; BORDER-TOP: white 1px solid; PADDING-LEFT: 8px; BACKGROUND: white; CURSOR: default; BORDER-BOTTOM: white 1px solid; HEIGHT: 18px; font-family: Tahoma; text-align: right; font-size: 11px
}.firstColumnEffect {
BORDER-TOP: #0a246a 1px solid; BACKGROUND: #b6bdd2; BORDER-LEFT: #0a246a 1px solid; WIDTH: 18px; CURSOR: default; BORDER-BOTTOM: #0a246a 1px solid; HEIGHT: 18px
}
.secondColumnEffect {
BORDER-TOP: #0a246a 1px solid; PADDING-LEFT: 8px; BACKGROUND: #b6bdd2; CURSOR: default; BORDER-BOTTOM: #0a246a 1px solid
}.thirdColumnEffect {
BORDER-RIGHT: #0a246a 1px solid; BORDER-TOP: #0a246a 1px solid; PADDING-LEFT: 8px; BACKGROUND: #b6bdd2; CURSOR: default; BORDER-BOTTOM: #0a246a 1px solid; HEIGHT: 18px; font-family: Tahoma; text-align: right; font-size: 11px
}.menuNormal {
BORDER-RIGHT: #EBEADB 1px solid;BRDER-TOP: #EBEADB 1px solid; BACKGROUND: #EBEADB; BORDER-LEFT: #EBEADB 1px solid; CURSOR: default; BORDER-BOTTOM: #EBEADB 1px solid
}
.menuEffect {
BORDER-RIGHT: #0a246a 1px solid; BORDER-TOP: #0a246a 1px solid; BACKGROUND: #b6bdd2; BORDER-LEFT: #0a246a 1px solid; CURSOR: default; BORDER-BOTTOM: #0a246a 1px solid
}
.menuItem {
FONT-SIZE: 8pt; FONT-FAMILY: Tahoma
}
.firstLayer {
BORDER-RIGHT: #EBEADB 1px solid; BORDER-TOP: #EBEADB 1px solid; Z-INDEX: 10; BACKGROUND: #EBEADB; VISIBILITY: hidden; BORDER-LEFT: #EBEADB 1px solid; BORDER-BOTTOM: #EBEADB 1px solid; POSITION: absolute
}
.secondLayer {
Z-INDEX: 9; FILTER: progid:DXImageTransform.Microsoft.Shadow(color="black", Direction=135, Strength=5); VISIBILITY: hidden; POSITION: absolute
}.tblColumn1 {
BORDER-RIGHT: #EBEADB 1px solid; BORDER-TOP: #EBEADB 1px solid; Z-INDEX: 10; VISIBILITY: hidden; BORDER-LEFT: #EBEADB 1px solid; BORDER-BOTTOM: #EBEADB 1px solid; POSITION: absolute;
}.tblColumn2 {
Z-INDEX: 9; FILTER: progid:DXImageTransform.Microsoft.Shadow(color='black', Direction=135, Strength=5); VISIBILITY: hidden; POSITION: absolute;
}.tblColumn3 {
BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; Z-INDEX: 9; FILTER: progid:DXImageTransform.Microsoft.Shadow(color='silver', Direction=135, Strength=5) progid:DXImageTransform.Microsoft.Alpha(opacity=100); VISIBILITY: hidden; BORDER-LEFT:#666666 1px solid; BORDER-BOTTOM: #666666 1px solid; POSITION: absolute;
}td {
font: 11px Tahoma;
}
.select {border: 0 inset buttonface; width: 135; font: icon; cursor: default;border:0px solid #000000;}
.selected {border: 0 inset buttonface; background: window; padding: 0; font: icon;border:0px solid #000000;}
.selectTable {height: 100%; width: 100%;
border: 1 solid #000000; background: buttonface;}
.option {font: icon; padding: 1; padding-left: 3; padding-right: 3; width: 100%;border:0px solid #000000;}
.dropDown {position: absolute; visibility: hidden; width: 100%;height: 150px;
border: 1 solid windowtext; padding: 0;
background: window; color: windowtext;}
.select .button {width: 16px; height: 9; font-family: webdings; padding: 0;
cursor: default; background: #EBEADB; border-left:1px solid #000000;}
.tlbNormal {
background: url('tlbNormalBackground.gif');
BORDER: #0a226a 0px solid;
WIDTH: 22px;
HEIGHT: 22px;
}.tlbOverEffect {
background: url('tlbOverBackground.gif');
BORDER:#0a226a 1px solid;
WIDTH: 22px;
HEIGHT: 22px;
}.tlbClickEffect {
background: url('tlbClickBackground.gif');
BORDER: #0a226a 1px solid;
WIDTH: 22px;
HEIGHT: 22px;
}.imgNormal {
margin: 3;
filter: ;
}.imgOverEffect {
margin-left: 1;
margin-right: 3;
margin-top: 1;
margin-bottom: 3;
filter: progid:DXImageTransform.Microsoft.Shadow(color='black', Direction=135, Strength=2);
}.imgClickEffect {
margin: 2;
filter: ;
}
.bentoo-menu, .bentoo-menu * {
box-sizing:content-box;
-moz-box-sizing: content-box;
}.bentoo-menu {
position: absolute;
z-index: 100;
visibility: hidden;
width: 100px;
border: 1px solid black;
padding: 1px;
background: #DEDBCE;
filter: alpha(Opacity=90);
-moz-opacity: 0.9;}.bentoo-menu-empty {
display: block;
font-size: 11px;
font-family: Tahoma;
color: black;
border: 1px solid #DEDBCE;
height: 16px;
height:expression(18);
padding-left: 5px;
padding-right: 5px;
}.bentoo-menu a {
display: block;
width: 100%;
font-size: 11px;
font-family: Tahoma;
text-decoration: none;
color: black;
border: 1px solid #DEDBCE;
height: 16px;
height: expression(18);
vertical-align: center;
padding-left: 5px;
padding-right: 0px;
overflow: hidden;
}.bentoo-menu a:visited,
.bentoo-menu a:visited:hover {
color: black;
}.bentoo-menu a:hover {
color: black;
background: #C6BEB5;
border: 1px solid rgb(0,0,0);
}.bentoo-menu a .arrow {
float: right;
border: 0;
width: 3px;
height: 16px;
margin-right: 2px;
}.bentoo-menu div {
height: 1;
height: expression(2);
border-top: 1px solid black;
overflow: hidden;
margin: 0;
margin-top: 2px;
margin-bottom: 2px;
font-size: 0mm;
}.bentoo-menu-bar {
background: rgb(255,255,255);
padding: 2px;
font-family: Tahoma;
font-size: 11px;
padding: expression(/MSIE 5\.0/.test(navigator.userAgent) ? "0px" : "2px");
}.bentoo-menu-bar a,
.bentoo-menu-bar a:visited {
color: black;
text-decoration: none;
}.bentoo-menu-bar a:hover {
color: black;
}.bentoo-menu-bar a .arrow {
border: 0;
float: none;
}
.bentoo-menu-bar a:active, .bentoo-menu-bar a:focus {
-moz-outline: none;
outline: none;
ie-dummy: expression(this.hideFocus=true);
}
</style>
<body style="border: 0; margin: 0; overflow: hidden;" bgcolor="#FFFFFF" text="#000000" onbeforeunload="window.location='./Bentoo.Smartx?action=closeSmartX';" onload="parent.StartX(document.body.innerHTML, document.all.MenuCode.innerHTML)">
<script language="JavaScript">
oSmartMenu = new SmartMenu();
oSmartMenu.id = 'oSmartMenu';
oSmartMenu.addMenu('人力资源', 'SmartMenu1292');
oSmartMenu.addSubMenu('人事档案', 'SmartMenu1443', 'SmartMenu1292', 'icoFiles.gif');
oSmartMenu.addCommand('人才库', 'goTo(960, \'人才库\')', 'SmartMenu1443', 'icoFiles.gif');
oSmartMenu.addCommand('员工档案', 'goTo(949, \'员工档案\')', 'SmartMenu1443', 'icoFiles.gif');
oSmartMenu.addCommand('离职人员档案', 'goTo(1418, \'离职人员档案\')', 'SmartMenu1443', 'icoFiles.gif');
oSmartMenu.appendMenu(document.all.SmartMenuContainer);
</script>
</body>
</html>
this.Menu = [];
this.SubMenu = [];
this.sRef = '';
this.id = 'SmartMenu';
this.fakeMark = '<!--SmartMenu-->';
this.MenuBar = this.fakeMark + '</TR></TBODY></TABLE></DIV>';
this.emptyMenu = '<TR onmousedown="window.event.cancelBubble = true;"><TD class="firstColumnNormal"><IMG width="16" height="16" src="1px.gif" /></TD><TD class="secondColumnNormal" style="color: gray">未定义菜单项</TD><TD class="thirdColumnNormal"><img width="0" height="0" src="1px.gif" /></TD></TR>'; this.menuShow = false;
this.menuShow2 = false;
this.eOpenMenu = null;
this.eOpenMenu2 = null;
this.cellTarget = null;
}
SmartMenu.prototype.addMenu = function (sText, sID) {
var sMenu = '<TABLE class="tblColumn1" cellSpacing="0" cellPadding="3" bgColor="#EFEDDF" ID="';
sMenu += this.id + sID + '1"><TBODY><TR><TD onclick="' + this.id + '.HideMenu()"> ';
sMenu += sText + '</TD></TR></TBODY></TABLE>';
sMenu += '<TABLE class="tblColumn2" cellSpacing="0" cellPadding="3" ID="';
sMenu += this.id + sID + '2"><TBODY><TR bgColor="white"><TD>';
sMenu += sText + '</TD></TR></TBODY></TABLE>';
sMenu += '<TABLE class="tblColumn3" cellSpacing="1" cellPadding="0" bgColor="white" ID="' + this.id + sID + '"><TBODY><TR><TD><TABLE style="WIDTH: 180" cellSpacing="0" cellPadding="1"><TBODY>';
sMenu += this.fakeMark + '</TBODY></TABLE></TD></TR></TBODY></TABLE>'; var sMenuBar = '<TD class="menuNormal" style="Z-INDEX: 100" onmouseover=' + this.id + '.DoOver(this,"' + this.id + sID;
sMenuBar += '") onmouseout=' + this.id + '.DoOut(this) onclick=' + this.id + '.ShowMenu(this,"' + this.id + sID + '") layer="';
sMenuBar += this.id + sID + '">' + sText + '</TD>'; var i = this.Menu.length;
this.Menu[i] = sMenu;
this.MenuBar = this.MenuBar.replace(this.fakeMark, sMenuBar + this.fakeMark);
this.addRef(sID, i, 0);
}SmartMenu.prototype.addStandardMenu = function () {
var sMenu = '<TABLE ondeactivate="if(' + this.id + '.menuShow) ' + this.id + '.CloseMenu();" class="tblColumn3" cellSpacing="1" cellPadding="0" bgColor="white" ID="' + this.id + 'StandardMenu"><TBODY><TR><TD><TABLE style="WIDTH: 180" cellSpacing="0" cellPadding="1"><TBODY>';
sMenu += this.fakeMark + '</TBODY></TABLE></TD></TR></TBODY></TABLE>'; this.Menu[0] = sMenu;
this.addRef('StandardMenu', 0, 0);
}SmartMenu.prototype.addStandardSubMenu = function (sText, sID, sIcon) {
this.addSubMenu(sText, sID, 'StandardMenu', sIcon);
}
SmartMenu.prototype.addStandardCommand = function (sText, sAction, sPID, sIcon) {
if (sPID == null)
this.addCommand(sText, sAction, 'StandardMenu', sIcon);
else
this.addCommand(sText, sAction, sPID, sIcon);
}
SmartMenu.prototype.addStandardSeparator = function (sID) {
if (sID == null)
this.addSeparator('StandardMenu');
else
this.addSeparator(sID);
}SmartMenu.prototype.addSubMenu = function (sText, sID, sPID, sIcon) {
if (sIcon == null || sIcon == '') sIcon = '1px.gif';
var sMenu = '<TR id="' + this.id + sID + '" action="">';
sMenu += '<TD class="firstColumnNormal" onmouseover="' + this.id + '.DoOverEvent(true)" onmouseout="' + this.id + '.DoOutEvent()">';
sMenu += '<IMG width="16" height="16" src="icon/' + sIcon + '" /></TD><TD class="secondColumnNormal"';
sMenu += ' onmouseover="' + this.id + '.DoOverEvent(true)" onmouseout="' + this.id + '.DoOutEvent()">' + sText;
sMenu += '</TD><TD class="thirdColumnNormal" onmouseover="' + this.id + '.DoOverEvent(true)" onmouseout="' + this.id + '.DoOutEvent()"><span style="font-family: webdings; font-size: 12px">4</span></TD></TR>';
var sSubMenu = '<TABLE class="tblColumn3" cellSpacing="1" cellPadding="0" bgColor="white" ID="_' + this.id + sID;
sSubMenu += '"><TBODY><TR><TD><TABLE style="WIDTH: 160" cellSpacing="0" cellPadding="1"><TBODY>' + this.fakeMark;
sSubMenu += '</TBODY></TABLE></TD></TR></TBODY></TABLE>'; var i = this.SubMenu.length;
this.SubMenu[i] = sSubMenu; this.add(sPID, sMenu);
this.addRef(sID, i, 1);
}SmartMenu.prototype.addCommand = function (sText, sAction, sPID, sIcon) {
if (sIcon == null) sIcon = '1px.gif';
var sCommand = '<TR id="" onmousedown="window.event.cancelBubble = true;' + sAction;
sCommand += ';' + this.id + '.CloseMenu();"><TD class="firstColumnNormal" onmouseover="' + this.id + '.DoOverEvent(true)" onmouseout="' + this.id + '.DoOutEvent()">';
sCommand += '<IMG width="16" height="16" src="icon/' + sIcon + '" /></TD><TD class="secondColumnNormal"';
sCommand += ' onmouseover="' + this.id + '.DoOverEvent(true)" onmouseout="' + this.id + '.DoOutEvent()">' + sText;
sCommand += '</TD><TD class="thirdColumnNormal" onmouseover="' + this.id + '.DoOverEvent(true)" onmouseout="' + this.id + '.DoOutEvent()"><img width="0" height="0" src="1px.gif" /></TD></TR>';
if (this.getRef(sPID)[1] == 0) sCommand = sCommand.replace(/true/g, 'false');
this.add(sPID, sCommand);
}
SmartMenu.prototype.addSeparator = function (sID) {
var sSeparator = '<TR onmousedown="window.event.cancelBubble = true;" onmouseup="window.event.cancelBubble = true;"><TD bgColor="#EBEADB"></TD><TD style="PADDING-LEFT: 6px" COLSPAN="2"><IMG height="1" src="line.gif" width="100%" /></TD></TR>';
this.add(sID, sSeparator);
}SmartMenu.prototype.add = function (sID, sItem) {
var arr = this.getRef(sID);
try {
if (arr[1] == 0)
this.Menu[arr[0]] = this.Menu[arr[0]].replace(this.fakeMark, sItem + this.fakeMark);
else {
if (arr[1] == 1)
this.SubMenu[arr[0]] = this.SubMenu[arr[0]].replace(this.fakeMark, sItem + this.fakeMark);
else {
return;
}
}
}
catch(e) {return;}
}SmartMenu.prototype.addRef = function (sID, i, iLevel) {
this.sRef += sID + ',' + i + ',' + iLevel + ';';
}SmartMenu.prototype.getRef = function (sID) {
var re = new RegExp(sID + ",([0-9]|[1-9][0-9]|[1-9][0-9][0-9]),([0-1]);");
re.exec(this.sRef);
var arr = new Array(RegExp.$1, RegExp.$2); re = null;
return arr;
}SmartMenu.prototype.buildMenu = function (isStandard) {
var sMenu = '';
for (var i=0; i < this.Menu.length; i++) {
sMenu += this.Menu[i];
}
var sSubMenu = '';
for (var i=0; i < this.SubMenu.length; i++) {
sSubMenu += this.SubMenu[i];
}
var re = new RegExp("<TBODY>" + this.fakeMark + "</TBODY>", "gi");
if (isStandard == 'fdsa') {
sTmp += sMenu.replace(re, this.emptyMenu) + sSubMenu.replace(re, this.emptyMenu);
}
else {
var preMenuBar = '<DIV ' + 'ondeactivate="if(' + this.id + '.menuShow) ' + this.id + '.CloseMenu();"' + 'style="margin-left: 0px; margin-right: 8px; width: 100%; BACKGROUND-IMAGE: url(imgMenuBarBackground.gif);"><TABLE id="' + this.id + 'MenuBar" style="Z-INDEX: -1" cellSpacing="3" cellPadding="3"><TBODY><TR>';
var sTmp = preMenuBar + this.MenuBar.replace(this.fakeMark, '') + sMenu.replace(re, this.emptyMenu) + sSubMenu.replace(re, this.emptyMenu);
}
re = null; return sTmp;
}SmartMenu.prototype.applyMenu = function (oContainer, isStandard) {
var oc;
oContainer == null?oc=window.document.body:oc=oContainer;
oc.insertAdjacentHTML("afterBegin", this.buildMenu(isStandard));
this.delObject();
}
SmartMenu.prototype.appendMenu = function (oContainer) {
this.applyMenu(oContainer, false);
}
SmartMenu.prototype.appendStandardMenu = function () {
this.applyMenu(null, true);
}SmartMenu.prototype.delObject = function () {
this.Menu = null;
this.SubMenu = null;
this.sRef = '';
}
SmartMenu.prototype.DoOverEvent = function (keepSubMenu) {
try{
var el = this.getObject(event.srcElement, "TR");
el.children(0).className = "firstColumnEffect";
el.children(1).className = "secondColumnEffect";
el.children(2).className = "thirdColumnEffect";
if(el.action == '') {
this.ShowSubMenu(el.id);
}
else {
if(this.menuShow2 && !keepSubMenu) this.HideSubMenu();
}
}
catch(e){return;}
}SmartMenu.prototype.DoOutEvent= function () {
try {
var el = this.getObject(event.fromElement,"TR");
el.children(0).className = "firstColumnNormal";
el.children(1).className = "secondColumnNormal";
el.children(2).className = "thirdColumnNormal";
}
catch(e) {return;}
}SmartMenu.prototype.DoOver = function (el, eSrc) {
try{
with(el)
{
style.border = "1px solid #0A246A";
style.backgroundColor = "#B6BDD2";
style.cursor = "default";
}
if(this.cellTarget != null)
{
with(this.cellTarget)
{
style.border = "1px solid #EBEADB";
style.backgroundColor = "#EBEADB";
style.cursor = "default";
}
with(eval(this.cellTarget.getAttribute("layer") + "1"))
{
style.visibility = "hidden";
}
with(eval(this.cellTarget.getAttribute("layer") + "2"))
{
style.visibility = "hidden";
}
}
if(this.menuShow)
{
this.eOpenMenu.style.visibility = "hidden";
var myMenu = eval(eSrc);
this.ShowMenu(el, eSrc);
}
if(this.menuShow2) this.HideSubMenu();
}
catch(e) {return;}
}SmartMenu.prototype.DoOut = function (el) {
try{
if(!this.menuShow)
{
with(el)
{
style.border = "1px solid #EBEADB";
style.backgroundColor = "#EBEADB";
}
}
}
catch(e) {return;}
}SmartMenu.prototype.getObject = function (element,tagName) {
try{
var tmp = element;
while((tmp!=null)&&(tmp.tagName!="BODY"))
{
if((tmp.tagName == tagName))
{
element = tmp;
return element;
}
tmp = tmp.parentElement;
}
return element;
}
catch(e) {return;}
}SmartMenu.prototype.ShowMenu = function (el, eSrc) {
try{
var menubar = document.all[this.id + 'MenuBar'];
var posY = menubar.offsetTop + el.offsetHeight + el.offsetTop - 1;
var posX = menubar.offsetLeft + el.offsetLeft;
with(eval(el.getAttribute("layer") + "1"))
{
style.top = el.offsetTop + menubar.offsetTop;
style.left = el.offsetLeft + menubar.offsetLeft + 1;
style.cursor = "default";
style.borderTop = "1px solid #666666";
style.borderRight = "1px solid #666666";
style.visibility = "visible";
} with(eval(el.getAttribute("layer") + "2"))
{
style.top = el.offsetTop + menubar.offsetTop;
style.left = el.offsetLeft + menubar.offsetLeft + 1;
style.visibility = "visible";
}
with(el)
{
style.border = "1px solid #666666";
style.backgroundColor = "#EBEADB";
}
var myMnu = eval(eSrc);
myMnu.style.top = posY;
myMnu.style.left = posX;
myMnu.style.visibility = "visible"; this.cellTarget = el;
this.menuShow = true; this.eOpenMenu = myMnu;
hideObjects();
}
catch(e) {return;}
}SmartMenu.prototype.ShowStandardMenu = function () {
try{
var myMnu = document.all[this.id + 'StandardMenu'];
var posY, posX; if (document.body.clientWidth - event.clientX < myMnu.offsetWidth)
posX = document.body.scrollLeft + event.clientX - myMnu.offsetWidth;
else
posX = document.body.scrollLeft + event.clientX;
if (document.body.clientHeight - event.clientY < myMnu.offsetHeight)
posY = document.body.scrollTop + event.clientY - myMnu.offsetHeight;
else
posY = document.body.scrollTop + event.clientY; myMnu.style.top = posY;
myMnu.style.left = posX;
myMnu.style.visibility = "visible"; this.cellTarget = el;
this.menuShow = true; this.eOpenMenu = myMnu;
document.all[this.id + "StandardMenu"].setActive();
hideObjects()
}
catch(e) {return;}
}SmartMenu.prototype.CloseMenu = function () {
try {
this.eOpenMenu.style.visibility = "hidden";
this.eOpenMenu = null;
this.menuShow = false;
if(this.menuShow2) this.HideSubMenu();
if(this.cellTarget != null) {
eval(this.cellTarget.getAttribute("layer") + "1").style.visibility = "hidden";
eval(this.cellTarget.getAttribute("layer") + "2").style.visibility = "hidden";
this.cellTarget.style.border = "1px solid #EBEADB";
this.cellTarget = null;
}
showObjects();
} catch(e) {return ;}
}SmartMenu.prototype.HideMenu = function () {
try {
eval(this.cellTarget.getAttribute("layer") + "1").style.visibility = "hidden";
eval(this.cellTarget.getAttribute("layer") + "2").style.visibility = "hidden";
with(this.cellTarget)
{
style.border = "1px solid #EBEADB";
style.backgroundColor = "#EBEADB";
style.cursor = "default";
}
this.eOpenMenu.style.visibility = "hidden";
with(this.cellTarget)
{
style.border = "1px solid #0A246A";
style.backgroundColor = "#B6BDD2";
style.cursor = "default";
}
this.cellTarget = null;
this.eOpenMenu = null;
this.menuShow = false;
}
catch(e) { return; }
}
SmartMenu.prototype.ShowSubMenu = function (PID) {
try {
var el = document.all[PID];
var pel = el.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
var myMnu = document.all['_' + PID];
if(myMnu == this.eOpenMenu2) return;
else {
if(this.menuShow2) this.HideSubMenu();
}
var posY = pel.offsetTop + el.offsetTop;
var posX = pel.offsetWidth + pel.offsetLeft - 4;
with(el)
{
style.border = "1px solid #666666";
style.backgroundColor = "#EBEADB";
} myMnu.style.top = posY;
myMnu.style.left = posX;
myMnu.style.visibility = "visible"; this.menuShow2 = true;
this.eOpenMenu2 = myMnu;
}
catch(e) { return ; }
}SmartMenu.prototype.HideSubMenu = function () {
try {
this.eOpenMenu2.style.visibility = "hidden";
this.eOpenMenu2 = null;
this.menuShow2 = false;
}
catch(e){return;}
} function goTo(cmdID, sTitle) {
if(cmdID != '') action(cmdID, sTitle);
}
function action(cmdID, sTitle) {
//如果处理跟踪状态,则记下执行的动作供管理员编辑
var CommandTrace;
try{
window.SmartX.document.body.innerHTML = '<table border="0" cellspacing="0" cellpadding="4" width="100%" height="70%"><tr><td align="center"><img src="SmartLoading.gif" width="189" height="75"><br><img src="SmartLoading2.gif" width="94" height="17"></td></tr></table>';
window.SmartX.location = "./?cmdID=" + cmdID;
}
catch(e)
{
//如果读不到BODY则不显示动画
window.document.title = 'Bentoo.SmartX - ' + sTitle;
window.SmartX.location = "./?cmdID=" + cmdID;
}
finally
{
return ;
} } function changeSkin(sClass) {
}function SmartContextMenu() {
oUnknown = window.event.srcElement;
if (oUnknown.menu != null) {
try {
eval(oUnknown.menu + '.ShowStandardMenu()');
}
catch(e) {return;}
}
window.event.returnValue = false;
}
function hideObjects() { for (var i = 0; i < top.SmartX.document.all.tags("select").length; i++) {
var obj = top.SmartX.document.all.tags("select")[i];
obj.style.visibility = "hidden";
}
for (var i = 0; i < top.SmartX.document.all.tags("object").length; i++) {
var obj = top.SmartX.document.all.tags("object")[i];
obj.style.visibility = "hidden";
}}
function showObjects() { for (var i = 0; i < top.SmartX.document.all.tags("select").length; i++) {
var obj = top.SmartX.document.all.tags("select")[i];
obj.style.visibility="visible";
}
for (var i = 0; i < top.SmartX.document.all.tags("object").length; i++) {
var obj = top.SmartX.document.all.tags("object")[i];
obj.style.visibility = "visible";
}}
//全部完成,其中的冗余代码没有拔干净,自己解决吧,给分吧,要想让我拔里面的及时通信,那么就帮我把我的问题解决了我就拔给你们。http://expert.csdn.net/Expert/topic/2455/2455397.xml?temp=.2473566
泄露了我公司的机密了!
谢谢谢谢,原来我看到了很多htc,我还以为是在htc里面搞的鬼啊!
你要有
你有源代码么?怎么能看到htc的?我一个也没有看到阿,他的皮倒是挺好拨的,看起来它的功能模块也没有几个,他的服务器段核心不知道怎么样,不知道是不是绣花枕头,我想要能看看他的全部代码就好了,表皮弄成这样,里面应该有更好的技术吧。对了,你说的那个随机数的东东能详细说说么?我不知道随即数怎么弄
www.sina.com.cn?id=一个随机数
就可以让ie每次都向服务器发出请求
虽然id是没有意义的!
我没有原代码,我是在ie的缓存里面肯到的!
那你是怎么弄出来的啊?什么工具啊,可以的话,我真想把他的皮都剥了!
你真厉害,老虎皮都能拔下来~~~
^_^
上面是sniffer的下载地址,我也不会用,大家就把这个网站当作联系吧!
我也可以提供空间的:)
无必要写大量的代码,就能完成一般的OA功能模块。