Need smileys java code

Discussion in 'JavaScript' started by JJnacy, May 29, 2009.

  1. #1
    Where I can find smileys java code?


    Thanks/Regards
     
    JJnacy, May 29, 2009 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Uhm... that question doesn't really make any sense.

    What do you need this "smiley-code" for?

    Smileys are (generally) just small images replacing text-versions or certain key words with the image associated with the text. The effect can be created using most server-side code, PHP, .ASP, probably JAVA too, and there isn't really much to it - you just use whatever language equivalent to str_replace (PHP) to switch out text with images.

    Or, if you want an automatic insert of the images in the text while you type, I suggest looking into javascript instead.
     
    PoPSiCLe, May 29, 2009 IP
    JJnacy likes this.
  3. JJnacy

    JJnacy Peon

    Messages:
    448
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, I need javascript like that.
    I also need a keyboard image for some only can use mouse to click letters.


    Thanks/Regards
     
    JJnacy, May 29, 2009 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    I suggest looking into TinyMCE for instance. Not sure if it supports the smiley-functions you need, but it's a very good text-editor for use in forms etc.

    Or, you can see if you can figure out which editor the phpbb-forums use - it has the opportunity for custom smileys etc. built in.

    As for on-screen keyboard (if I understand you correctly), you'll have to look into accessibility for web forms. I don't know about any premade tiny editors with built in screen keyboards, but it would probably be possible to incorporate one.
     
    PoPSiCLe, May 29, 2009 IP