我的意图是用JS文件形成动态效果,但是调用下面代码后,点击连接如:西服则成功连接到class/meiren/index1.htm,再次点击西服则连接到class/meiren/class/meiren/index1.htm,也就是说自动添加了class/meiren/这个文件名,请问我该怎么改才能达到我的设计目的?
document.write('<table width=170 border=0 cellpadding=0 cellspacing=0><tr  class=tabbgcolorli><td> ☆ 商品分类</td></tr></table><table width=170 height=56 border=0 cellpadding=0 cellspacing=0><tr><td class=border1>&nbsp;&nbsp;&nbsp;&nbsp;[<a href=class/meinv/index1.htm><font color=blue>G2000</font></a>]<br><TABLE cellSpacing=0 cellPadding=0 width=160 border=0><TR><td width=80 align=center><a href=class/meiren/index1.htm>西服</a></td><td width=80 align=center><a href=class/cs/index1.htm>衬衫</a></td></tr><tr><td height=3></td></tr><td width=80 align=center><a href=class/ldai/index123.htm>领带</a></td></table>&nbsp;&nbsp;&nbsp;&nbsp;[<a href=class/mp3/index1.htm><font color=blue>佐丹奴</font></a>]<br><TABLE cellSpacing=0 cellPadding=0 width=160 border=0><TR><td width=80 align=center><a href=class/aiguozhe/index1.htm>男装</a></td><td width=80 align=center><a href=class/samsung/index1.htm>女装</a></td></tr><tr><td height=3></td></tr><td width=80 align=center><a href=class/ddd/index1.htm>配件</a></td></table>&nbsp;&nbsp;&nbsp;&nbsp;[<a href=class/222/index1.htm><font color=blue>RINGONR</font></a>]<br><TABLE cellSpacing=0 cellPadding=0 width=160 border=0><TR><td width=80 align=center><a href=class/444/index1.htm>裙子</a></td><td width=80 align=center><a href=class/555/index1.htm>毛衣</a></td></tr><tr><td height=3></td></tr><td width=80 align=center><a href=class/nzk/index1.htm>牛仔裤</a></td></table></td></tr></table>')
本人为JS菜鸟,希望能详细点解释,谢谢咯^_^