87,921
社区成员
发帖
与我相关
我的任务
分享
<html>
<frameset cols="150,*" frameborder="no" border="1" framespacing="0">
<frame src="wleft.php" name="leftFrame" scrolling="AUTO" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="wmain.php" name="mainFrame" id="mainFrame" title="mainFrame" scrolling="AUTO" frameborder="NO"/>
</frameset>
<noframes><body>
</body>
</noframes>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function ShowSub(theId)
{
theFo = eval("fold_" + theId);
if (theFo.style.display == "none")
{
theFo.style.display = "block";
}
else
{
theFo.style.display = "none";
}/*
for (i = 0; i < 7; i++)
{
if (i == theId)
continue;
theFo = eval("tr_" + i);
theFo.style.display = "none";
}*/
}
//-->
</SCRIPT>
<table>
<!--一级栏目-->
<tr>
<td colspan=2><strong>+<a href="javascript:ShowSub('0')">一级版块</a></strong></td>
</tr>
<!--一级栏目下->1级子目录1-->
<tr id='fold_<?php echo $i++ ?>' style="display:none">
<td>
<table>
<!--2级子目录1_01-->
<tr>
<td colspan=2>二级版块1</td>
</tr>
<tr>
<td colspan=2>二级版块2</td>
</tr>
</table>
</td>
</tr>
</table>
function ShowSub(theId)
{
theFo = eval("fold_" + theId);
if (theFo.style.display == "none")
{
theFo.style.display = "block";
}
else
{
theFo.style.display = "none";
}
var linkHtml = "123.html"; //根据传进来的theId分析右侧要显示哪些页面。牵涉到具体业务,不作讨论
document.getElementById('mainFrame').src = linkHtml;
}
function ShowSub(theId)
{
theFo = eval("fold_" + theId);
if (theFo.style.display == "none")
{
theFo.style.display = "block";
}
else
{
theFo.style.display = "none";
}
var linkHtml = "123.html"; //根据传进来的theId分析右侧要显示哪些页面。
document.getElementById('mainFrame').src = "123.html";