DoraMoon
Average Member
Taiwan
661 Posts |
Posted - 30 July 2002 : 23:17:08
|
hi~ dayve
sorry i do not understand very well about what this script meaning.. just trying to get the solution by "lucky" .. [I)]
but it really work no problem for me....
here is what the insertsmilie function look like in my pop_icon_legend.asp
function insertsmilie (smilieface){ var doc = window.opener.document; var textbox = doc.PostTopic.Message; if (textbox.createTextRange && textbox.caretPos){ var selectedtext = ''; if (doc.selection && doc.selection.createRange) { var range = doc.selection.createRange(); selectedtext = range.text; } var caretPos = textbox.caretPos; caretPos.text = selectedtext + smilieface; document.PostTopic.Message.focus(); textbox.caretPos = doc.selection.createRange().duplicate(); } else textbox.value+=smilieface; }
hope it can help u something ....
~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~ |
|
|