radostsguy
05-20-2008, 03:43 AM
Hi everybody! This is my first post.
I did a little messing about with Anylink.html (dropdownmenu.zip) which I found in HotScripts. I turned it into a Smilies table. That was fun! It works like a charm, except for one thing. The cursor position remains after the previous text. It would be really nice if the cursor ended up after the smilie text. BTW, the smilies text is converted to the actual image with BBCodes on the next page.
To take a look, go here:
http://mwob-test.dynalias.com/Smilies-table.html
These are just test pages on a test site of mine.
The coding that moves the smilie text into the form is:
function doCopyS(smilie) {
myvalue=document.myform.mytext.value;
value=myvalue+' '+smilie;
document.myform.mytext.value=value;
document.myform.mytext.focus();}
Help!
I did a little messing about with Anylink.html (dropdownmenu.zip) which I found in HotScripts. I turned it into a Smilies table. That was fun! It works like a charm, except for one thing. The cursor position remains after the previous text. It would be really nice if the cursor ended up after the smilie text. BTW, the smilies text is converted to the actual image with BBCodes on the next page.
To take a look, go here:
http://mwob-test.dynalias.com/Smilies-table.html
These are just test pages on a test site of mine.
The coding that moves the smilie text into the form is:
function doCopyS(smilie) {
myvalue=document.myform.mytext.value;
value=myvalue+' '+smilie;
document.myform.mytext.value=value;
document.myform.mytext.focus();}
Help!