【发布时间】:2016-01-14 16:22:30
【问题描述】:
<form name="mycombowopt">
<select name="example" size=1>
<option value="http://javascriptkit.com">JavaScript Kit</option>
<option value="http://cnn.com">CNN</option>
<option value="http://geocities.com">Geocities</option>
</select>
<input type="button" value="Go!" onClick="gothere()"> <br>
<input type="checkbox" name="windowoption" value="ON">Open in alternate window</p>
</form>
<script language="javascript">
<!--
function gothere(){
var thebox=document.mycombowopt
if (thebox.windowoption.checked){
if (!window.newwindow)
newwindow=window.open("")
newwindow.location=
thebox.example.options[thebox.example.selectedIndex].value
}
else
location=
thebox.example.options[thebox.example.selectedIndex].value
}
//-->
</script>
这段代码有什么问题?在我的 [问答网站][1] 上链接“Go”后,组合框无法正常工作。
[1]: http://www.ihavesolved.com/
您能否提供以下组合框的代码:-
背景=白色
标题:- 合作伙伴网站
下拉框内的链接 = 我已解决 (url=www.iнaveѕolved.coм), Space Amigos
(spaceamigos.com) 和 Surak.szh.kz (url=Surak.szh.kz)
链接必须在新窗口中打开,并且链接必须是 nofollow。
在此先感谢 :)
【问题讨论】:
-
背景 = 白色 标题:- 合作伙伴网站。
-
链接必须在新窗口中打开并且链接必须是nofollow。提前致谢:)
标签: combobox