一个树状展开的javascript代码的问题

如http://h.tangshan.cc/l_mail.asp这里的网页,现在打网页是关闭的,能不能改成一打开,网页就是打开的?本人太菜,不会修改。请高手帮忙部分代码如... http://h.tangshan.cc/l_mail.asp 这里的网页,现在打网页是关闭的,能不能改成一打开,网页就是打开的?本人太菜,不会修改。请高手帮忙

部分代码如下:
<TABLE cellSpacing=0 cellPadding=0 width=210 border=0>
<TBODY>
<TR>
<TD height=21 style="font-size: 9pt">
<SCRIPT language=javascript>
function opencat(cat,img){
if(cat.style.display=="none"){
cat.style.display="";
img.src="img/class2.gif";
} else {
cat.style.display="none";
img.src="img/class1.gif";
}
}
</Script>
<TABLE cellSpacing=0 cellPadding=0 width="99%" border=0>

<TR>
<TD language=javascript onmouseup="opencat(cat101000, img101000);" id=item$pval[catID]) style="CURSOR: hand; font-size:12px" width=90 height=20 align=center>
<IMG id=img101000 src="henry/class1.gif" width=20 height=20></TD>
<TD language=javascript onmouseup="opencat(cat101000, img101000);" id=item$pval[catID]) style="CURSOR: hand; font-size:12px" width="662" style="font-size: 12px"><b>
Pipe fittings</b></TD>
</TR>
<TR>
<TD id=cat101000 style='DISPLAY: none; font-size:12px' colspan="2">

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=333">Malleable
Iron Pipe Fittings</a><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><font color='#FFFFFF'><a target="I2" href="/ArticleShow.asp?ArticleID=335">Pipe
Nipples & Sockets</a></font><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><font color='#FFFFFF'><a target="I2" href="/ArticleShow.asp?ArticleID=336">Stainless
Steel Threaded Pipe</a><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=337">Butt
Welding</a><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=338">Pipe
Clamp Fittings</a><br>
 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=339">Cast
Iron Pipe Fittings</a><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=340">Flanges</a><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=341">Ductile
Iron Fittings</a><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=342">Press
Fittings</a><BR>

 <IMG height=20 src="henry/class3.gif" width=26 align=absMiddle border=0><a target="I2" href="/ArticleShow.asp?ArticleID=343">Suspension
Insulators</a><BR>

</TD>
</TR>
展开
 我来答
Rex_zh
2008-10-25 · TA获得超过2594个赞
知道小有建树答主
回答量:271
采纳率:0%
帮助的人:356万
展开全部
在你这段代码后加上:
<script>
opencat(cat101000, img101000);
</script>
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式