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

帮帮忙,不知道哪里错了!
html中的代码:

<table width="800" height="479" align="center" cellpadding="0" cellspacing="0">

  <tr>
  <td align="center"><strong>入社希望条件</strong></br></br>
<span class="h2">貴方の希望勤務地、入社分類、希望職種をお聞かせ下さい。</br>
検索ボタンをクリックするとそれらに関する情報が分かります。</span>
  </td>
  </tr>
  
  <tr valign="top">
  <td align="center">
  <form action="" name="fsaiyou">
  <table width="500" border="3">
  <tr>
  <td align="center"> 希望勤務地</td>
  <td><select name="se1" class="se_fsaiyou">
  <option value="0">希望勤務地を選択してください。</option>  
  <option value="1">東京本社</option>
  <option value="2">日立支社</option>
  </select></td>
  </tr>
  <tr>
  <td align="center">入社分類</td>
  <td><select name="se2" class="se_fsaiyou">
  <option value="0">入社分類を選択してください。</option>  
  <option value="1">新卒</option>
  <option value="2">中途</option>
  </select></td>
  </tr>
  <tr>
  <td align="center">希望職種</td>
  <td><select name="se3" class="se_fsaiyou">
  <option value="1">希望職種を選択してください。</option>  
  <option value="2">技術職</option>
  </select>
  </td>
  </tr>
</table>
  <br />
  <input name="" type="button" value="検索" onclick="kensaku1(document.MyForm.se1,document.MyForm.se2,document.MyForm.se3)" />
  <input name="" type="reset" value="キャンセル" />
</form>
  </td>
  <tr>
  <td></br></br></br></td>
  </tr>
</table>



js中的代码:

function kensaku1(No1,No2,No3){
if (No1.options[No1.selectedIndex].value=="1" && No2.options[No2.selectedIndex].value=="1" && No3.options[No3.selectedIndex].value=="2"){ 
window.location.href="tousingi.html";
}
else if (No1.options[No1.selectedIndex].value=="1" && No2.options[No2.selectedIndex].value=="2" && No3.options[No3.selectedIndex].value=="2"){
window.location.href="toutyuugi.html";
}
else if (No1.options[No1.selectedIndex].value=="2" && No2.options[No2.selectedIndex].value=="1" && No3.options[No3.selectedIndex].value=="2"){
window.location.href="hisingi.html";
}
else if (No1.options[No1.selectedIndex].value=="2" && No2.options[No2.selectedIndex].value=="2" && No3.options[No3.selectedIndex].value=="2"){
window.location.href="hityuugi.html";
}
else{
alert("項目を選択してください。");
}
}

出现的问题:
浏览器左下方有黄的三角号,点开说エラー:document.MyForm.se1はnullまたはプロジェクトではありません.
意思就是说document.MyForm.se1的值为null或者没有工程。
大家帮帮忙啊,小问题,不会!