一个树状展开的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> 展开
部分代码如下:
<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> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询