此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【mybbb】截止到2008-07-07 00:59:54的历史汇总数据(不包括此帖):
发帖的总数量:10 发帖的总分数:450
结贴的总数量:8 结贴的总分数:390
无满意结贴数:1 无满意结贴分:50
未结的帖子数:2 未结的总分数:60
结贴的百分比:80.00 % 结分的百分比:86.67 %
无满意结贴率:12.50 % 无满意结分率:12.82 %
楼主加油
楼主【mybbb】截止到2008-07-07 00:59:54的历史汇总数据(不包括此帖):
发帖的总数量:10 发帖的总分数:450
结贴的总数量:8 结贴的总分数:390
无满意结贴数:1 无满意结贴分:50
未结的帖子数:2 未结的总分数:60
结贴的百分比:80.00 % 结分的百分比:86.67 %
无满意结贴率:12.50 % 无满意结分率:12.82 %
楼主加油
解决方案 »
- JavaScript脚本何时执行?
- 关于jw player跨域访问问题
- html select的onchange 事件如何多次触发?
- 在线等,高分求解:两个效果在页面时显示(均提示源代码)---高人也许只需一下下,谢谢!!!
- 有谁能帮我解释一下这个JS??
- 今天做一个jquery功能的时候遇到一个问题,好像是for循环出现了问题,我解决不了,大家帮忙看看哦,先谢谢你们! 代码如下:
- 如何根据分辨率来决定显示的效果
- 非上个问题!mouse 在一段时间后才触发事件!
- C#如何获取动态网页上的数据
- 前端js如何实现ctrl+f5的效果
- 如何得到鼠标点击图片的位置
- switch-case 语句里面有return了 break还起作用吗
//tableobj 树形菜单
function showmenu(tdobj,tableobj)
{
tbobj = document.getElementById(tableobj);
if(tbobj.style.display=='none')
{
tbobj.filters.item(0).Apply();
tbobj.style.display = 'block';
tbobj.style.visibility = "";
tbobj.filters.item(0).Play();
}
else
{
tbobj.style.display='none';
}
}
http://msdn.microsoft.com/zh-tw/ms123402.aspx
抓了類似網站原碼,解不出來樓上能講明白點嗎?
public string DrawMenu(DataTable bootdt, DataTable alldt)
{
StringBuilder s = new StringBuilder();
for (int i = 0; i < bootdt.Rows.Count; i++)
{ s.Append("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">");
s.Append("<tr>");
s.Append("<td rowspan=\"2\" width=\"40\">");
s.Append("</td>");
s.Append("<td style=\"cursor: hand\" width=\"16\" align=\"left\" class=\"title\" onclick=\"showmenu(this,'moduletable" + bootdt.Rows[i]["Dept_ID"].ToString() + "')\" height=\"25\"");
s.Append(" onmouseover=\"this.className='titlehighlight'\" onmouseout=\"this.className='title'\">");
s.Append("<img src=\"../Images/dep.gif\" width=\"19\" height=\"19\" />");
s.Append("</td>");
s.Append("<td width=\"10\">");
s.Append("</td>");
if (bootdt.Rows[i]["IsBoot"].ToString() == "1")
{
s.Append("<td width=\"143\" style=\"cursor: hand\" align=\"left\" class=\"title\" onclick=\"showmenu(this,'moduletable" + bootdt.Rows[i]["Dept_ID"].ToString() + "')\" height=\"25\"");
s.Append(" onmouseover=\"this.className='titlehighlight'\" onmouseout=\"this.className='title'\">");
s.Append("<a class=\"title\"");
s.Append(" onclick=\"NodeClick('" + bootdt.Rows[i]["Dept_ID"].ToString() + "','" +
bootdt.Rows[i]["DeptName"].ToString() + "','" +
bootdt.Rows[i]["Layer"].ToString() + "','" +
bootdt.Rows[i]["CreateDate"].ToString() + "','" +
bootdt.Rows[i]["CreateMasterName"].ToString() + "','" +
bootdt.Rows[i]["IsBoot"].ToString() + "')\">"); s.Append(bootdt.Rows[i]["DeptName"].ToString() + "</a>");
s.Append("</td>");
s.Append("</tr>");
s.Append(DrawSubMenu(alldt, bootdt.Rows[i]["Dept_ID"].ToString()));
}
else
{
}
s.Append("</table>");
}
return s.ToString();
} [AjaxPro.AjaxMethod]
public string DrawSubMenu(DataTable alldt, string strPID)
{
StringBuilder s = new StringBuilder();
s.Append("<tr>");
s.Append("<td>");
s.Append("</td>");
s.Append("<td align=\"left\" colspan=\"2\">");
s.Append("<table id=\"moduletable" + strPID + "\" style=\"display: none; filter: blendTrans(Duration=0.5); visibility: visible;\"");
s.Append("cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" align=\"center\" border=\"0\">");
for (int i = 0; i < alldt.Rows.Count; i++)
{
if (alldt.Rows[i]["ParentDept_ID"].ToString() == strPID)
{
if (alldt.Rows[i]["IsBoot"].ToString() == "1")
{
s.Append("<tr>");
s.Append("<td style=\"cursor: hand\" width=\"16\" align=\"left\" onclick=\"showmenu(this,'moduletable" + alldt.Rows[i]["Dept_ID"].ToString() + "')\" height=\"25\" onmouseover=\"this.className='titlehighlight'\" onmouseout=\"this.className='title'\">");
s.Append("<img src=\"../Images/dep.gif\" width=\"16\" height=\"14\" />");
s.Append("</td>");
s.Append("<td style=\"cursor: hand\" onclick=\"showmenu(this,'moduletable" + alldt.Rows[i]["Dept_ID"].ToString() + "')\" height=\"25\" onmouseover=\"this.className='titlehighlight'\" onmouseout=\"this.className='title'\">"); s.Append(" <a class=\"title\"");
s.Append(" onclick=\"NodeClick('" + alldt.Rows[i]["Dept_ID"].ToString() + "','" +
alldt.Rows[i]["DeptName"].ToString() + "','" +
alldt.Rows[i]["Layer"].ToString() + "','" +
alldt.Rows[i]["CreateDate"].ToString() + "','" +
alldt.Rows[i]["CreateMasterName"].ToString() + "','" +
alldt.Rows[i]["IsBoot"].ToString() + "')\">"); s.Append(alldt.Rows[i]["DeptName"].ToString() + "</a>"); s.Append("</td>");
s.Append("</tr>");
s.Append(DrawSubMenu(alldt, alldt.Rows[i]["Dept_ID"].ToString()));
}
else
{
s.Append("<tr>");
s.Append("<td width=\"16\" align=\"left\">");
s.Append("<img src=\"../Images/dep.gif\" width=\"16\" height=\"14\" />");
s.Append("</td>");
s.Append("<td style=\"cursor: hand; height=\"23\">"); s.Append(" <a class=\"title\"");
s.Append(" onclick=\"NodeClick('" + alldt.Rows[i]["Dept_ID"].ToString() + "','" +
alldt.Rows[i]["DeptName"].ToString() + "','" +
alldt.Rows[i]["Layer"].ToString() + "','" +
alldt.Rows[i]["CreateDate"].ToString() + "','" +
alldt.Rows[i]["CreateMasterName"].ToString() + "','" +
alldt.Rows[i]["IsBoot"].ToString() + "')\">"); s.Append(alldt.Rows[i]["DeptName"].ToString() + "</a>"); s.Append("</td>");
s.Append("</tr>");
}
}
}
s.Append("</table>");
s.Append("</td>");
s.Append("</tr>");
return s.ToString();
}
function showmenu(tdobj,tableobj)
{
tbobj = document.getElementById(tableobj);
if(tbobj.style.display=='none')
{
tbobj.filters.item(0).Apply();
tbobj.style.display = 'block';
tbobj.style.visibility = "";
tbobj.filters.item(0).Play();
}
else
{
tbobj.style.display='none';
}
}
<div class="scrolldiv" style="height: 360px; overflow: auto; overflow-x: hidden;">
<table>
<tr>
<td id="menuInfo" runat="server" align="left" valign="top" style="width: 25%;">
</td>
</tr>
</table>
</div>
那邊我看不懂怎麼弄
就是跑不出效果,才上來求的