發表於 : 2006-06-09 6:13 pm
阿澄 寫:簫哥 寫:chat_log.txt是負責顯示對話的重要檔案,少了這檔案,不管你任何輸入,都不會看到對話內容。
但涅魂大大不是說沒有這個檔案系統都會自動增加嗎 ?
..我試過手動增加 ..但都是無法解決問題喔 ..
我手動增加後再把檔案的權限改為 777..
問題解決了 ..但又有一個新問題出現
我發現我的聊天室不說話的話就不會更新
阿澄 寫:簫哥 寫:chat_log.txt是負責顯示對話的重要檔案,少了這檔案,不管你任何輸入,都不會看到對話內容。
但涅魂大大不是說沒有這個檔案系統都會自動增加嗎 ?
..我試過手動增加 ..但都是無法解決問題喔 ..
function chat_view()
{
var view=parent.chat.document;
view.close();
view.write('<html>');
view.write('<head>');
view.write('<meta http-equiv="Content-Type" content="text/html; charset=big5">');
view.write('<meta http-equiv=Cache-Control content="no-cache">');
[color=red]view.write('<META HTTP-EQUIV="Refresh" CONTENT=20 src="wog_chat.php"> ');[/color]
view.write('<style type=text/css>');
view.write('td {font-family : verdana,Arial,Helvetica ;font-size : 10pt; text-align : center;}');
view.write('</style>');
view.write('</head>');
view.write('<body bgcolor="#000000" text="#EFEFEF" link="#EFEFEF" vlink="#EFEFEF" alink="#EFEFEF" >');
}
涅魂 寫:笑傲乾坤 寫:我的聊天室好像在開始頁面就會看到了,不知是不是涅大的設計本來就是這樣??
這樣好像會讓還未登入的玩家就看到對話內容了
是的,我原本就是這樣設計的,可以幫助新來的玩家們迅速地溶入遊戲中
若您不希望這樣顯示的話可以將chat頁面的內容先用別的內容顯示,然後再將在wog_act_chara.php中新增的JS語法稍作修改即可
簫哥 寫:wog_chat.php?
壓縮檔(BIG5)只有兩個檔案chat.php和chat.htm,我記得wog2.08(有外掛的)好像有wog_chat.php存在。
那在對應什麼呢?
simon2007 寫:我想顯示其他內容,但是不明白怎麼改?
涅魂 寫:simon2007 寫:我想顯示其他內容,但是不明白怎麼改?
將wog_index.htm中的 chat frame 的 src 改成你想要顯示的網頁,然後在登入時再載入聊天室的頁面就行了
涅魂 寫:simon2007 寫:我想顯示其他內容,但是不明白怎麼改?
將wog_index.htm中的 chat frame 的 src 改成你想要顯示的網頁,然後在登入時再載入聊天室的頁面就行了
leobbs 寫:涅魂 寫:simon2007 寫:我想顯示其他內容,但是不明白怎麼改?
將wog_index.htm中的 chat frame 的 src 改成你想要顯示的網頁,然後在登入時再載入聊天室的頁面就行了
那個登入的網頁是不是要連chat.php
這語法就不懂了-可以指點一下嗎
<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">
簫哥 寫:看清楚!index.htm之下的框架程式碼。
- 代碼: 選擇全部
<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">
chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。
simon2007 寫:簫哥 寫:看清楚!index.htm之下的框架程式碼。
- 代碼: 選擇全部
<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">
chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。
不明白
簫哥 寫:simon2007 寫:簫哥 寫:看清楚!index.htm之下的框架程式碼。
- 代碼: 選擇全部
<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">
chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。
不明白
簫哥已經提出指定例子!到底不懂那一個部分?不知道就去多讀書吧!
simon2007 寫:簫哥 寫:simon2007 寫:簫哥 寫:看清楚!index.htm之下的框架程式碼。
- 代碼: 選擇全部
<frame src="[color=red]chat.php[/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">
chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。
不明白
簫哥已經提出指定例子!到底不懂那一個部分?不知道就去多讀書吧!
你沒有教我怎樣顯示其他內容啊!請詳細舉個例子,簫哥