[分享]登入前不顯示聊天室的輸入頁面

WOG設定安裝教學

版主: 涅魂, 簫哥


涅魂
 
文章: 4463
註冊時間: 2004-01-04 11:17 am
來自: Taiwan
性別: 男生

[分享]登入前不顯示聊天室的輸入頁面

文章涅魂 » 2007-03-07 8:19 pm

喔喔,這樣其實不難,可以參考下方的修改試試看^^

開啟檔案wog/class/wog_act_chara.php

尋找
代碼: 選擇全部
parent.chat_input.document.frm.disabled=false;

左方,加上
代碼: 選擇全部
[color=red]parent.chat_input.document.frm.style.display='';[/color]


開啟檔案wog/index.htm
尋找
代碼: 選擇全部
      <frameset rows="*,26" border="0" resize="no" >
      <frame src="chat.php" name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
      <frame src="chat.htm" name="chat_input" id="chat_input" frameborder="0" scrolling="No" noresize marginwidth="0" marginheight="0">
   </frameset>

改成
代碼: 選擇全部
      <frameset rows="*,26" border="0" resize="no" >
      <frame src="[color=red]chat_nologin.htm[/color]" name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
      <frame src="chat.htm" name="chat_input" id="chat_input" frameborder="0" scrolling="No" noresize marginwidth="0" marginheight="0">
   </frameset>

開啟檔案 wog/chat.htm
尋找
代碼: 選擇全部
</body>

下方,加上
[code]<script language="Javascript">document.frm.style.display="none";</script>[/code]

建立新檔案 wog/chat_nologin.htm
代碼: 選擇全部
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=big5" http-equiv=content-type>
<title>Chat Nologin</title>
</head>
<body bgcolor="black" text="white">
<center>
尚未登入遊戲
</center>
</body>
</html>

以上,有問題的話再問吧^^



回到 精華區

誰在線上

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