日期:2014-05-16  浏览次数:20321 次

js
<input   id= "starid "   type= "radio "   name= "starid "   value= "1 "   >
<input   id= "starid "   type= "radio "   name= "starid "   value= "2 "   >
<input   id= "starid "   type= "radio "   name= "starid "   value= "3 "   >
<input   id= "starid "   type= "radio "   name= "starid "   value= "4 "   >
<input   id= "starid "   type= "radio "   name= "starid "   value= "5 "   >

<input   name= "btnNew4 "   type= "button "   class= "mybutton "   id= "btnNew4 "   value= "查看 "   onClick= "dosearck() ">

function   desearch()
{
  var   star=?????  
  window.open( 'show.asp?id=star ');

这个怎么写啊???????????
谢谢
}

------解决方案--------------------
function desearch()
{
var star=?????
window.open( 'show.asp?id= '+star);
}
------解决方案--------------------
<form name= "star ">
<input id= "starid " type= "radio " name= "starid " value= "1 " >
<input id= "starid " type= "radio " name= "starid " value= "2 " >
<input id= "starid " type= "radio " name= "starid " value= "3 " >
<input id= "starid " type= "radio " name= "starid " value= "4 " >
<input id= "starid " type= "radio " name= "starid " value= "5 " >
<input name= "btnNew4 " type= "button " class= "mybutton " id= "btnNew4 " value= "查看 " onClick= "dosearch() ">
</form>
<script>
function dosearch()
{
var idarr=document.star.starid;
for (var i = 0; i < idarr.length; i ++) {
if (idarr[i].checked) {
window.open( 'show.asp?id= ' + idarr[i].value);
}
}
}
</script>