本论坛左边的菜单是怎么实现的? BS楼上然后右建看源代码,蝈蝈没有把这个保密的,你自己随便下的,xmlhttp异步加载 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可是我看了,什么都没有。我看到的源文件如下:<html><head><META NAME="Robots" CONTENT="noindex"> <meta content="text/html;charset=gb2312" http-equiv="Content-Type"> <title>Deeptree</title> <link rel="stylesheet" type="text/css" href="/expert/deeptree/css/deeptree.css"> <script src="/Expert/style/get_css.js"></script></head><script> if (top.location == self.location) { top.location.href = "/"; } function selectstart() { window.event.cancelBubble = true; window.event.returnValue = false; return false; }</script><body onselectstart="selectstart();" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" class = "color1"><nobr><div id="deeptree" class="deeptree" CfgXMLSrc="/expert/deeptree/deeptreeconfig.xml"></div></nobr></body></html> expert/deeptree/deeptreeconfig.xml........你先把这个down了,还有一个是xsl文件的Expert/style/get_css.js还有这个js,也可以down的 孟子E章:谢谢你的例子,不过看了例子以后我有些地方不是很明白,问题如下:1、oDiv.innerHTML = "<div style='display:;padding-left:"+nP+"px'><span class='container'><span class='clsLeaf'>.</span></span> " + "<span class='clsNotReady' style='color:white'>正在装载栏目数据,请稍侯.......</span></div>"oDiv.style.paddingLeft= nP + "px"style.paddingLeft在前面的oDiv.innerHTML语句中已经给那个div对象设置了数值了,后面为什么还加一句:oDiv.style.paddingLeft= nP + "px" ?2、子菜单的缩进是怎么实现的?我没有找到实现这个功能的地方,希望能帮我解决这两个问题,谢谢了!! 另外,还有个问题:oDiv.style.display= ""就是这句,也是在前面的div元素里已经设置style='display:;为什么后面还要再加这样一句? 动态修改属性,paddingLeft设置树的缩进,display隐藏、显示信息 oDiv.style.paddingLeft= nP + "px"这句实现树的缩进吗?可是怎么实现的呢?谢谢!! 可能是我没有说清楚,我的问题是这样的:oDiv.innerHTML = "<div style='display:;padding-left:"+nP+"px'><span class='container'><span class='clsLeaf'>.</span></span> " + "<span class='clsNotReady' style='color:white'>正在装载栏目数据,请稍侯.......</span></div>"这里已经设置了style='display:;padding-left:"+nP+"px' 到这句:oDiv.style.paddingLeft= nP + "px" 再设置oDiv.style.paddingLeft的值,可是这两句代码之间nP的值并没有改变,如何实现树的缩进呢? 有在IE10里能运行的简单HTML5例子吗? web 推荐一活动“Java代码”征集大赛火热进行中 急求解决页面嵌入方法(50分) html5 的地理API 关于选择checkbox动态生成文本框的问题。 菜鸟问题:多维数组的定义、使用? 请教:asp.net页面上textbox是空再回车的问题? 救命啊,ScriptX打印报错,项目后天马上要实施了!!! DSOFramer.ocx保存文件至服务器端后导致IE崩溃问题 這個過程怎麼寫,郁悶了很久 100分求“jscript完全教程”电子版
<head>
<META NAME="Robots" CONTENT="noindex">
<meta content="text/html;charset=gb2312" http-equiv="Content-Type">
<title>Deeptree</title>
<link rel="stylesheet" type="text/css" href="/expert/deeptree/css/deeptree.css">
<script src="/Expert/style/get_css.js"></script>
</head>
<script>
if (top.location == self.location)
{
top.location.href = "/";
} function selectstart()
{
window.event.cancelBubble = true;
window.event.returnValue = false;
return false;
}
</script>
<body onselectstart="selectstart();" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" class = "color1">
<nobr>
<div id="deeptree" class="deeptree" CfgXMLSrc="/expert/deeptree/deeptreeconfig.xml">
</div>
</nobr>
</body>
</html>
oDiv.innerHTML = "<div style='display:;padding-left:"+nP+"px'><span class='container'><span class='clsLeaf'>.</span></span> " + "<span class='clsNotReady' style='color:white'>正在装载栏目数据,请稍侯.......</span></div>"oDiv.style.paddingLeft= nP + "px"style.paddingLeft在前面的oDiv.innerHTML语句中已经给那个div对象设置了数值了,后面为什么还加一句:oDiv.style.paddingLeft= nP + "px" ?
2、子菜单的缩进是怎么实现的?我没有找到实现这个功能的地方,希望能帮我解决这两个问题,谢谢了!!