Smileys go in the end of the text, not where the cursos is on click.

Discussion in 'JavaScript' started by x0x, Feb 2, 2009.

  1. #1
    I've got a problem. When i click on smileys on my site (like in this forum), my smileys go in the end of the text, always, no matter where the cursor is. But it should go where the cursos is, like in this forum...

    I don't know if you need the other code too, but here's the smiley part....

    <img src="img/smileys/frocket.gif" alt="" onclick="document.post.message.value+=':frocket: '; document.post.message.focus()"></td>
     
    x0x, Feb 2, 2009 IP
  2. x0x

    x0x Well-Known Member

    Messages:
    510
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    will pay 5 bucks to the solver
     
    x0x, Feb 2, 2009 IP