畫面預覽 寫:V1.9 & V1.9b
[hr]歷史檔案[hr]
V1.7
http://img41.imageshack.us/img41/4310/img212033154.png
V1.8
http://img338.imageshack.us/img338/4310/img212033154.png
http://img188.imageshack.us/img188/777/img212033154222.png
V1.81
http://img190.imageshack.us/img190/4310/img212033154.png
V1.81b & V1.81c & V1.82
http://img297.imageshack.us/img297/5169/28651499.png
功能簡介 寫:V1.9b
- 各項BUG修正,感謝aaasss9555的指正
[hr]歷史檔案[hr]
V1.7
- 聊天功能
- 聊天內容的顏色變化
- 頻道(全體,工會,隊伍,密語)
- 表情符號(表情符號列表可以按ESC來關閉)
- 選擇性使用表情符號
- 防洗頻功能
- 聊天文本檔案大小控制
- 禁語功能
- 快捷設定(在密語對象格中按下ENTER會切換至訊息格,在訊息格按下ENTER能直接送出訊息)
- 本程式可在新視窗中執行
- 採用JQuery撰寫
- 本程式已在Firefox 3, IE 6, 7, 8下測試,均能正常運行
V1.8
- 修正bug: 聊天室出現Array的系統訊息
- 加入頻道切換功能
V1.81
- 系統訊息於顯示後三秒後刪除
- 頁面清理功能
V1.81b
- BUG: 表情符號視窗快捷鍵失效問題修正
- 變更頻道標籤的位置
- 加上LOADING的圖示,會在使用者送出訊息,或聊天室讀取訊息時顯示於左下角
- 加入系統頻道(type=5),系統頻道不會受到頻道切換而被隱藏,也不會隨時間而消失。公告訊息與頻率可於chat.config.php內做設定
V1.81c
- BUG: json_encode()問題修正
- BUG: 點選人名後,密語對象變成[Object object]的錯誤
感謝aaasss9555的協助
V1.82
- 相容於WOG V4
V1.9
- 支援在聊天室顯示裝備跳窗的連結
- 加入玩家廣播功能,每次消費500元
- 英雄玩家標明
- 加入頻道開關
- 表情符號視窗加入關閉按鈕
- 修正點擊聊天室內的玩家名稱無法自動新增至密語對象欄的問題
- 修正無法用ESC關閉表情符號跳窗
- jQuery核心升級至1.4.2版本
檔案列表 寫:【WOG】┬【CHAT】┬【chat.class.php】
│ ├【chat.config.php】
│ ├【chat.htm】
│ └【control.php】
├【JS】┬【chat.js】
│ └【jquery-1.4.2.min.js】
├【CSS】─【chat.css】
├【LOG】─【chat.log】
└【IMG】─【FACE】─【表情符號的圖檔】
檔案下載 寫:Chat V1.9b:![]()
Chat Image:![]()
[hr]歷史檔案[hr]
Chat V1.7: Skydrive 空間 Infoseek 空間
Chat V1.8: Skydrive 空間 Infoseek 空間
Chat V1.81: Skydrive 空間 Infoseek 空間
Chat V1.81b: Skydrive 空間 Infoseek 空間
Chat V1.81c: Skydrive 空間 Infoseek 空間
Chat V1.82:![]()
Chat V1.9:![]()
安裝(1.9以後) 寫:下載主程式,並將解壓縮後得到的檔案放在wog主目錄下
加入jQuery 1.4.2 核心
開啟檔案 wog/index.htm
找到
- 代碼: 選擇全部
<script language="javascript" src="./js/dom-drag.js"></script>
改成
- 代碼: 選擇全部
[color=red]<script language="javascript" src="./js/jquery-1.4.2.min.js"></script>[/color]
<script language="javascript" src="./js/dom-drag.js"></script>
登入時,將顯示的聊天室設置為本程式
開啟檔案: wog/js/wog_tool.js
找到
- 代碼: 選擇全部
function open_chat(bbs_id,team_id)
{
if(UI.set_frame==1)
{
w_chat(chat_table1+'<tr><td><b>Online FF Battle - <a href="http://www.et99.org/wog4/index.htm" target="_blank">WOG</a> V4 Copyright (C) <a href="http://www.et99.org" target="_blank">ETERNAL</a></b></td><td><table align="right"><tr><td><a href="javascript:parent.chat_resize()" style="text-decoration:none;">↗</a></td></tr></table></td></tr><tr><td width="450" height="150" id="chat_table" colspan="2" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}else
{
w_chat(chat_table1+'<tr><td width="600" height="148" id="chat_table" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}
p_chat();
Drag.init(f.getElementById("wog_chat"));
};
改成
- 代碼: 選擇全部
function open_chat(bbs_id,team_id)
{
[color=red]/*if(UI.set_frame==1)
{
w_chat(chat_table1+'<tr><td><b>Online FF Battle - <a href="http://www.et99.org/wog4/index.htm" target="_blank">WOG</a> V4 Copyright (C) <a href="http://www.et99.org" target="_blank">ETERNAL</a></b></td><td><table align="right"><tr><td><a href="javascript:parent.chat_resize()" style="text-decoration:none;">↗</a></td></tr></table></td></tr><tr><td width="450" height="150" id="chat_table" colspan="2" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}else
{
w_chat(chat_table1+'<tr><td width="600" height="148" id="chat_table" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}
p_chat();*/
$('#wog_chat', UI.set_frame == 1 ? f : dfoot).load('./chat/chat.htm');[/color]
Drag.init(f.getElementById("wog_chat"));
};
相容於IE的CSS設定(請點我前往連結)
點選線上名單時,將名稱加入至密語對象
開啟檔案: wog/js/wog_tool.js
尋找
- 代碼: 選擇全部
function yesname(s)
{
UI.set_target.menu.towho.value=s;
};
改成
- 代碼: 選擇全部
function yesname(s)
{
//UI.set_target.menu.towho.value=s;
[color=red]$('#chatTo', UI.set_frame == 1 ? f : dfoot ).val(s);[/color]
};
雙擊裝備名稱,在聊天室出現裝備連結
開啟檔案wog/js/wog_tool.js
尋找
- 代碼: 選擇全部
function set_arm_tochat(a1,a2)
{
...
};
改成
- 代碼: 選擇全部
function set_arm_tochat(a1,a2)
{
var temp_f=null;
if (UI.set_frame==1) {
//temp_f=parent.wog_view.frame_chat.chat_in.document.f1;
temp_f = parent.wog_view.document.getElementById('wog_chat');
}
else
{
//temp_f=parent.foot.frame_chat.chat_in.document.f1;
temp_f = parent.foot.document.getElementById('wog_chat');
}
if(!temp_f){return;}
/*var temp=temp_f.chat_temp.value;
var s_num=temp.indexOf("[");
var e_num=temp.indexOf("]");
if(s_num>-1 && e_num>0)
{
var temp1=temp.substr(0,s_num);
var temp2=temp.substr(e_num+1,temp.length-e_num);
temp=temp1+temp2;
}
temp_f.chat_temp.value=temp+"["+a1+"]";
temp_f.item_id_temp.value=a2;*/
var $text = $('#chatMessage', temp_f);
var text = $text.val();
var s_num = text.indexOf('['), e_num = text.indexOf(']');
if(s_num > -1 && e_num > s_num) {
text = text.substr(0, s_num)+'['+a1+']'+text.substr(e_num+1);
} else {
text = '['+a1+']';
}
$text.focus().val(text);
$('#item_id', temp_f).val(a2);
};
儲存、關閉所有檔案
安裝(1.82) 寫:下載主程式,並將解壓縮後得到的檔案放在wog主目錄下
開啟檔案 wog/index.htm
找到
- 代碼: 選擇全部
<script language="javascript" src="./js/dom-drag.js"></script>
改成
- 代碼: 選擇全部
[color=red]<script language="javascript" src="./js/jquery-1.3.min.js"></script>[/color]
<script language="javascript" src="./js/dom-drag.js"></script>
開啟檔案: wog/js/wog_tool.js
找到
- 代碼: 選擇全部
function open_chat(bbs_id,team_id)
{
if(UI.set_frame==1)
{
w_chat(chat_table1+'<tr><td><b>Online FF Battle - <a href="http://www.et99.org/wog4/index.htm" target="_blank">WOG</a> V4 Copyright (C) <a href="http://www.et99.org" target="_blank">ETERNAL</a></b></td><td><table align="right"><tr><td><a href="javascript:parent.chat_resize()" style="text-decoration:none;">↗</a></td></tr></table></td></tr><tr><td width="450" height="150" id="chat_table" colspan="2" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}else
{
w_chat(chat_table1+'<tr><td width="600" height="148" id="chat_table" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}
p_chat();
Drag.init(f.getElementById("wog_chat"));
};
改成
- 代碼: 選擇全部
function open_chat(bbs_id,team_id)
{
[color=red]/*if(UI.set_frame==1)
{
w_chat(chat_table1+'<tr><td><b>Online FF Battle - <a href="http://www.et99.org/wog4/index.htm" target="_blank">WOG</a> V4 Copyright (C) <a href="http://www.et99.org" target="_blank">ETERNAL</a></b></td><td><table align="right"><tr><td><a href="javascript:parent.chat_resize()" style="text-decoration:none;">↗</a></td></tr></table></td></tr><tr><td width="450" height="150" id="chat_table" colspan="2" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}else
{
w_chat(chat_table1+'<tr><td width="600" height="148" id="chat_table" ><www.et99.org id="frame_chat" name="frame_chat" src="./wog_chat/wog_chat.php" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></www.et99.org></td></tr>'+temp_table2);
}
p_chat();*/
$('#wog_chat', UI.set_frame == 1 ? f : dfoot).load('./chat/chat.htm');[/color]
Drag.init(f.getElementById("wog_chat"));
};
儲存、關閉所有檔案
安裝(1.82以前) 寫:下載主程式,並將解壓縮後得到的檔案放在wog主目錄下
開啟檔案 wog/index.htm
找到
- 代碼: 選擇全部
<frame src="wog_foot.htm" name="foot" id="foot" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
改成
- 代碼: 選擇全部
[color=red] <frameset cols="*, 600">
<frame src="wog_foot.htm" name="foot" id="foot" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
<frame name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
</frameset>[/color]
開啟檔案: wog/class/wog_act_chara.php
找到(共兩處: chara_save() & login() 內)
- 代碼: 選擇全部
showscript("parent.peolist.document.location.reload()");
改成
- 代碼: 選擇全部
showscript("parent.peolist.document.location.reload()[color=red]; parent.chat.location='./chat/chat.htm';[/color]");
儲存、關閉所有檔案
額外功能 寫:在聊天室內,顯示掉寶資訊
動作功能自本版本中剔除,如果仍有使用此功能的需要,請自行修改程式
本程式為[測試]AJAX + PHP 聊天室與[外掛](3.0)聊天室 Ver 1.6的最新版本,使用這兩個版本的使用者,若要進行升級時,請將舊檔案刪除後再將新檔案放入wog目錄下即可。另外,log檔案的位置與表情符號的目錄有些許改變,在做升級動作時請記得檢查這兩部分的目錄設定有無正確。
以上,有任何問題請提出來,謝謝。




