radostsguy
06-05-2008, 09:56 AM
I have used "Anylink" to create a Smilies table for my Site's Blogs. It's fine, so this is NOT a Dynamicdrive query! The problem is that I have used this:
function doCopyS(smilie) {
myvalue=document.myform.mytext.value;
value=myvalue+' '+smilie;
document.myform.mytext.value=value;
myform.mytext.focus();}
"myform" and "mytext" refer to the textarea in which the user types the text for the blog.
It almost works. The only thing is that it places the curor in front of the smilie coding (as in :lol:) instead of after it where I want it. Any ideas? If you want more info, I can zip the whole thing up, stick it into one of my many Downloaders, and then post the URL here.
If you want to see it in action, go here (test site):
http://mwob-test.dynalias.com/Smilies-table.html
function doCopyS(smilie) {
myvalue=document.myform.mytext.value;
value=myvalue+' '+smilie;
document.myform.mytext.value=value;
myform.mytext.focus();}
"myform" and "mytext" refer to the textarea in which the user types the text for the blog.
It almost works. The only thing is that it places the curor in front of the smilie coding (as in :lol:) instead of after it where I want it. Any ideas? If you want more info, I can zip the whole thing up, stick it into one of my many Downloaders, and then post the URL here.
If you want to see it in action, go here (test site):
http://mwob-test.dynalias.com/Smilies-table.html