Menu
I have this code to place a smilie code in to a different form in a different frame… but it does not work. Please help!
[CODE]<script language=”JavaScript” type=”text/javascript”>
function emoticon(text) {
text = ‘ ‘ + text + ‘ ‘;
if (parent.frame2.post.M.createTextRange && parent.frame2.post.M.caretPos) {
var caretPos = parent.frame2.post.M.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length – 1) == ‘ ‘ ? text + ‘ ‘ : text;
parent.frame2.post.M.focus();
} else {
parent.frame2.post.M.value += text;
parent.frame2.post.M.focus();
}
}
</script>