●●● 怎样设置Javascript展开菜单的默认效果为打开呢?
www.wordloom.cn
www.wordloom.cn
刚设计了一个内衣产品的网站,客户要求左侧的“产品目录”默认是打开,而现在我是通过一个
onclick=javascript:display1(document.all.subtree1,document.all.img1)
的命令打开菜单,每次都要点击才能展开产品目录,怎样设置才能满足菜单默认是展开的呢?
附:“产品目录”的效果代码
<TD style="LINE-HEIGHT: 16px" width=16>
<SPAN id=zhugan1 style="CURSOR: hand"
onclick=javascript:display1(document.all.subtree1,document.all.img1);>
<IMG src="../Images_main/tree_expand.gif" name=img1 width="16" height="16" border=no></SPAN></TD>
<TD style="LINE-HEIGHT: 16px" colSpan=2>威德龙男士内裤</TD>
</TR>
<TR id=subtree1 style="DISPLAY: none">
<TD style="LINE-HEIGHT: 16px" colSpan=5>