window.location = "aaa.asp?aa"
解决方案 »
- 大神们,帮我看段代码吧,超级菜鸟提问
- 急!关于My97DatePicker/WdatePicker日历控件的问题
- jquey 问题
- 在线求助 :如何把一个带复选框的树,选中其中的复选框,点击button 把选中的节点值移入到div中,移入时也希望移入的时候也带有复选框,也可以把选中的移除?
- 我用DIV做的文本滚动 DIV我设了10000px长度,不知道有没有更好的办法
- js 小问题,大家来看下
- javascript做的浮动 div工具条
- 如何取得动态增加的table中的一个input
- 菜鸟问题java?在线求帮助!
- 如何在网页执行到最后(网页完全打开)的时间,加入一段javascript或者vbscript代码让他自动提交网页中的表单
- 搞了好几天,可变(可增减)的多个二级联动菜单问题?
- 關於addEventListener()和removeEventListener()
var text = this.getAttribute("text")
var treeId = this.getAttribute("treeId");
if (treeId < 115)
document.write('<a href = "../head.asp?text">text</a>');
//else if
//document.write('<a href="../end.asp?text">text</a>');
}<DSTreeRoot text="遥感资料" open="true" href="http://" treeId="123">
<DSTree text="遥感简介" open="false" href="" target="box" treeId="111" > </DSTree>
<DSTree text="相关法规" open="false" href="http://" target="box" treeId="112"> </DSTree>
<DSTree text="基础知识" open="false" href="http://" target="box" treeId="113"> </DSTree>
<DSTree text="相关文章" open="false" href="http://" target="box" treeId="114"> </DSTree>
<DSTree text="分类查询" open="false" treeId="">
<DSTree text="IKNOS" open="false" href="http://" target="box" treeId="221"> </DSTree>
<DSTree text="QUICK BIRD" open="false" href="http://" target="box" treeId="222"> </DSTree>
<DSTree text="SPOT1-4" open="false" href="http://" target="box" treeId="223"> </DSTree>
<DSTree text="SPOT5" open="false" href="http://" target="box" treeId="224"> </DSTree>
<DSTree text="Landsat7" open="false" href="http://" target="box" treeId="225"> </DSTree>
<DSTree text="Landsat5" open="false" href="http://" target="box" treeId="226"> </DSTree>
<DSTree text="资源卫星" open="false" href="http://" target="box" treeId="227"> </DSTree>
</DSTree>
</DSTreeRoot>
我的意思是想点击text的值时,链接到相应的.asp文件上去,结果开始不执行.把else if去掉后,执行了,但是,它是在我点击的时候打开新窗口,里面有个文本链接"text".