[分享]使之選擇奇數·偶數的指令for三國志net

製作Webgame技術交流、Webgame相關程式功能改造、中文化技巧等相關討論。

版主: 涅魂, 小剎, BSM

31123
 
文章: 96
註冊時間: 2006-06-04 12:17 pm

[分享]使之選擇奇數·偶數的指令for三國志net

文章31123 » 2007-01-06 8:57 am

這篇跟之前那篇文章一樣
一樣是在日本網站找到的
個人仍舊不知道這是給哪各版本還有什麼功用
但知道這是for三國志的
故仍舊是不收錢
這篇也是用線上翻譯翻譯的
==============================
如果應該奇數偶數以外也稍微變更能使用。
代碼: 選擇全部
print <<"EOM";
   <script type="text/javascript">
   <!--
   function cbo_select(prmStartNo,prmPeriod){
      var intA;
      for(intA = 0;intA < document.all.no.options.length;intA++){
         document.all.no.options[intA].selected = false;
      }
      for(intA = prmStartNo;intA < document.all.no.options.length;intA = intA + prmPeriod){
         document.all.no.options[intA].selected = true;
      }
   }

// -->
</script>
EOM

按鈕
代碼: 選擇全部
<input type = "button" value = "奇數選擇" onclick = "cbo_select(1,2)">
<input type = "button" value = "偶數選擇" onclick = "cbo_select(2,2)">

など。

回到 Webgame製作&改造

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 0 位訪客