第 1 頁 (共 1 頁)
[問題]我的表情符號運作不太正常(已解決)
發表於 : 2006-03-05 13:57
由 a7966552
如題,我在發表主題時點選左邊的表情符號,有時會正常的把表情符號代碼打出來,但是有時候卻沒有反應(然後IE狀態列上顯示"網頁發生錯誤。")
錯誤內容如下:
行:622
字元:3
錯誤:'BaseHeight'未被定義
程式碼:0
URL:
http://dopi.33host.com/phpBB2/posting.p ... topic&f=10
以下是我的論壇發文網址
http://dopi.33host.com/phpBB2/posting.p ... topic&f=10
測試帳號:test
測試密碼:1234
請大大幫我看看是哪裡出了問題
如果需要提供哪部分的php文檔
請回覆上,我會立刻提供
!
發表於 : 2006-06-04 21:49
由 a7966552
不好意思,這個主題已經經過2個月了
但是仍未解決
很抱歉把文章推上來
希望大大能夠看看
發表於 : 2006-06-04 22:24
由 心靈捕手
建議您:
參考這裡, 修改看看.
http://phpbb-tw.net/phpbb/viewtopic.php?p=218460#218460
#
#-----[ OPEN ]-----
#
mods/bbcode_box/bbcode_box.js
#
#-----[ FIND ]-----
#
代碼: 選擇全部
function emoticon(text) {
var txtarea = document.post.message;
text = ' ' + text + ' ';
if (txtarea.createTextRange && txtarea.caretPos) {
if (baseHeight != txtarea.caretPos.boundingHeight) {
txtarea.focus();
storeCaret(txtarea);
}
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
} else
if (txtarea.selectionEnd && (txtarea.selectionStart | txtarea.selectionStart == 0))
{
mozWrap(txtarea, text, "");
return;
} else {
txtarea.value += text;
txtarea.focus();
}
}
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
function emoticon(text) {
text = ' ' + text + ' ';
PostWrite(text);
}
#
#-----[ SAVE & CLOSE ]-----
#
!
發表於 : 2006-06-04 23:16
由 a7966552
看來我的爬文技術該多加強
不好意思另外發文造成大大回覆ㄧ樣的問題
問題已經解決
感謝捕手大大多次解危