作者:wangduokui
发表: 24篇
回复: 28篇
QQ: 56338332
|     请教树形目录的问题,请帮忙! 我把那个blueidea的树形目录,抄过来,可看不懂java csript;点击二级目录后,无法打开我自己的网页;请各路大虾帮忙老弟!谢谢了!
附源代码:
<base href="http://www.blueidea.com/articleimg/2003/09/804/">
<?xml version="1.0" encoding="gb2312"?>
<!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>
<title>主页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script>// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
var p, i, foundObj;
if(!theDoc) theDoc = document;
if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
{
theDoc = parent.frames[theObj.substring(p+1)].document;
theObj = theObj.substring(0,p);
}
if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
for (i=0; !foundObj && i < theDoc.forms.length; i++)
foundObj = theDoc.forms[i][theObj];
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
foundObj = findObj(theObj,theDoc.layers[i].document);
if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
return foundObj;
}
</script>
<style type="text/css">
<!--
.folder {
font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
font-size: 10px;
background-image: url(e.gif);
background-repeat: no-repeat;
background-position: left;
padding-left: 40px;
cursor: hand;
}
.collapsedFolder {
font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
font-size: 10px;
background-image: url(c.gif);
background-repeat: no-repeat;
background-position: left;
padding-left: 40px;
cursor: hand;
}
.submenu {
padding-left: 18px;
}
.iefile {
background-image: url(ie.gif);
background-repeat: no-repeat;
background-position: left;
padding-left: 20px;
font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
font-size: 9px;
}
a {
color: #003399;
text-decoration: none;
border: 1px solid #FFFFFF;
}
a:hover {
color: #FF0000;
background-color: #eeeeee;
border: 1px solid #006699;
}
body {
margin: 0px;
background-color: buttonface;
overflow: hidden;
border: 0px;
}
.ctrlbar {
border: 1px inset;
}
.explorer {
background-color: #FFFFFF;
border: 1px inset;
}
-->
</style>
<style type="text/css">
<!--
.ctbutton {
font-family: Arial, Helvetica, sans-serif;
font-size: 8px;
background-color: #eeeeee;
border-width: 1px;
width: 9px;
height: 100px;
margin-bottom: 100px;
}
-->
</style>
<base target="browserframe"/>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" align="center" valign="top" class="explorer" id="menubar"><br />
<img src="logo.gif" width="90" height="27" /> <br />
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="2" onselectstart="return false">
<tr>
<td class="folder" onmouseup="with(findObj('car_manager').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(e.gif)':'url(c.gif)'}">车辆管理</td>
</tr>
<tr>
<td class="submenu" id="car_manager"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="folder" onmouseup="with(findObj('car_application').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(e.gif)':'url(c.gif)'}">用车管理</td>
</tr>
<tr>
<td class="submenu" id="car_application"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="iefile"><a href="ycsq_brow.asp">用车申请</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/bbs/list.asp?GroupName=Dreamweaver%2BMX%2BDeveloper%2B%D3%EB%CA%FD%BE%DD%BF%E2%B1%E0%B3%CC">用车审批</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/bbs/list.asp?GroupName=Fireworks%2B%D7%A8%C0%B8">车辆调度</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/bbs/list.asp?GroupName=Flash%2B%D7%A8%C0%B8">出勤返回</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="folder" onmouseup="with(findObj('others').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(e.gif)':'url(c.gif)'}">车辆维修</td>
</tr>
<tr>
<td class="submenu" id="others"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="iefile"><a href="http://www.blueidea.com/download/index.asp">维修登记</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/tech/index.asp">维修完毕</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/">事故管理</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/bbs/">里程统计</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="collapsedFolder" onmouseup="with(findObj('others').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(e.gif)':'url(c.gif)'}">系统维护</td>
</tr>
<tr>
<td class="submenu" id="others1"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="iefile"><a href="http://www.blueidea.com/download/index.asp">车辆档案</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/download/index.asp">驾驶员信息</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/download/index.asp">车辆类型</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/download/index.asp">发车地点</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/download/index.asp">出车地点</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/tech/index.asp">部门维护</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://www.blueidea.com/tech/index.asp">修理厂维护</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="collapsedFolder" onmouseup="with(findObj('lexrus').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(e.gif)':'url(c.gif)'}">系统维护</td>
</tr>
<tr>
<td class="submenu" id="lexrus" style="display:none"><table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td class="iefile"><a href="http://www.lexrus.com/">用户管理</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://lexrus.com/blog/">权限管理</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://lexrus.com/blog/">重新登录</a></td>
</tr>
<tr>
<td class="iefile"><a href="http://lexrus.com/blog/">退出系统</a></td>
</tr>
</table>
</td>
</tr>
</table></td>
<td width="1" class="ctrlbar"><button class="ctbutton" onfocus="blur();" onmouseup="with(findObj('menubar').style){display=display=='none'?'':'none';this.innerText=display=='none'?'>':'<'}" onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#eeeeee'"><</button></td>
<td class="explorer"><iframe name="browserframe" id="browserframe" width="100%" height="100%" scrolling="auto" frameborder="0"></iframe></td>
</tr>
</table>
</body>
</html>
|