MozTW 討論區
https://forum.moztw.org/

唔該~!
https://forum.moztw.org/viewtopic.php?f=2&t=6059
1 頁 (共 1 頁)

發表人:  傻瓜 [ 2005-01-20, 20:51 ]
文章主題 :  唔該~!

用ie開的 圖檔


用firefox開的 圖檔

點樣解決??

發表人:  getghost [ 2005-01-21, 13:10 ]
文章主題 : 

install flash player

發表人:  roytam1 [ 2005-01-21, 16:07 ]
文章主題 : 

getghost 寫:
install flash player
與Flash無關......
主要是因為這段:
代碼:
      <td background="/it-school/images/login/loginv2_10.gif" colspan="2">
        <script language="JavaScript">
               if(document.layers){
                  document.write('<input type="text" name="userloginid" class="tdnn01" size="8">');
               }
               if(document.all){
                  document.write('<input type="text" name="userloginid" class="tdie01" size="14">');
               }
   </script>

      </td>
      <td colspan="3"><img src="/it-school/images/login/loginv2_11.gif"></td>
    </tr>
    <tr>
      <td><img src="/it-school/images/login/loginv2_12.gif"></td>
      <td colspan="2" background="/it-school/images/login/loginv2_13.gif">
        <script language="JavaScript">
         if(document.layers){
            document.write('<input type="password" name="password" class="tdnn01" size="8">');
         }
         if(document.all){
            document.write('<input type="password" name="password" class="tdie01" size="14">');
         }
         </script>
      </td>


其中document.layers是Netscape 3.x/4.x版特有的,而document.all是IE 4.x/5.x/6.x版特有的, 而Gecko based和KHTML based的瀏覽器(如Mozilla/Netscape 6.x/7.x/Opera/Safari等)都不支援這兩個object,所以傳回了false,也就是沒把 <input type="password" name="password" class="tdie01" size="14"> 和 <input type="text" name="userloginid" class="tdie01" size="14"> 寫進去了, 你能做的就是請網站的管理員改那句了...

代碼:
      <td background="/it-school/images/login/loginv2_10.gif" colspan="2">
        <script language="JavaScript">
               if(document.layers){
                  document.write('<input type="text" name="userloginid" class="tdnn01" size="8">');
               }
               else{
                  document.write('<input type="text" name="userloginid" class="tdie01" size="14">');
               }
   </script>

      </td>
      <td colspan="3"><img src="/it-school/images/login/loginv2_11.gif"></td>
    </tr>
    <tr>
      <td><img src="/it-school/images/login/loginv2_12.gif"></td>
      <td colspan="2" background="/it-school/images/login/loginv2_13.gif">
        <script language="JavaScript">
         if(document.layers){
            document.write('<input type="password" name="password" class="tdnn01" size="8">');
         }
         else{
            document.write('<input type="password" name="password" class="tdie01" size="14">');
         }
         </script>
      </td>


改成這樣就好了

發表人:  傻瓜 [ 2005-01-23, 13:05 ]
文章主題 : 

真係無其他辨法??

發表人:  cola99 [ 2005-01-23, 13:51 ]
文章主題 : 

有! 自己重新編寫Firefox讓他能支援document.all...... m...我相信我是來鬧的 :twisted:

發表人:  Jiu [ 2005-01-23, 14:07 ]
文章主題 : 

傻瓜 寫:
真係無其他辨法??
有,但只能治標,不能治本。
不請網站管理員修改的話,你的同學一樣會出現相同問題。如果一直採用治標之法,問題一樣不能根治,反而會讓人產生「為什麼Firefox還要裝這裝那的才能看?」的錯覺。

發表人:  YCST [ 2005-01-23, 15:25 ]
文章主題 : 

現在香港很多學校的內聯網系統, 都只能在IE才用到的.
我以前中學的內聯網都跟樓主的情況差不多, 當我登入後, 只出現空白的畫面, 看來開發這些系統的公司真的要趕快改良一下了.

發表人:  BobChao [ 2005-01-23, 18:24 ]
文章主題 : 

cola99 寫:
有! 自己重新編寫Firefox讓他能支援document.all...... m...我相信我是來鬧的 :twisted:


稍微做點補充:
代碼:
if(document.layers){
                  document.write('<input type="text" name="userloginid" class="tdnn01" size="8">');
               }
               if(document.all){
                  document.write('<input type="text" name="userloginid" class="tdie01" size="14">');
               }


第一個如前面人講是 NN4 專用的
第二個 document.all 其實 Firefox 已經支援了
只是為了一些因素在「if (document.all)」時會傳回 false。

總之那網站這樣寫完全只是為了視覺效果
你可以建議他們把上面那段全部刪掉,改成這樣的 HTML:
代碼:
<input type="text" name="userloginid" class="tdie01" style="width: 14em">

發表人:  leekaho [ 2005-01-23, 19:38 ]
文章主題 : 

基本上香港大部份的中小學都是用這套由 myIT-School.net 開發的內聯網系統,我也是受害者之一,看來要集合大家一起向他們「宣傳宣傳」一下......

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/