SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question insert text from pics and boxes?

    How do I code it so when someone clicks a smilie it automatically inputs the code into the text box?

    Also how would I do the same for the http://, e-mail and img buttons exactly like a vbb forum?

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <a href="#" onClick="addText(0)"><img...></a>

    var text2Add = new Array()
    text2Add[0] = 'smilie'

    function addText(ndx)
    {
    document.formname.fieldname.value += text2Add[ndx];
    }

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I'm new.
    What does what in them?

  4. #4
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't get it to work.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •