Hello, I am looking for HTML/Javascript code to copy the smiley code on clicking the smiley image. Below is the code i got from some website but it is not working properly, seems like something is missing(javascript i think so). Here is the code i have now <body> <tr> <td> <img src="http://www.freesmileys.org/smileys/smiley-gen054.gif" onclick="ClipBoard(this);" alt="" /> //30 </td> <td> <img src="http://www.freesmileys.org/smileys/smiley-gen041.gif" onclick="ClipBoard(this);" alt="" /> //87 </td> <td> <img src="http://www.freesmileys.org/smileys/smiley-gen031.gif" onclick="ClipBoard(this);" alt="" /> //44 </td> </tr> </body> Code (markup): In the above code, on clicking the smileys i want the codes like '//87' to be copied into the clipboard instead of displaying it in the webpage. Thanks in advance.
<img name=""> Description The name attribute allows you to name an image so that it can be accessed by scripts. Code <img name="ImageName"></img>
You can do that with any of those ways: http://www.steamdev.com/zclip/ http://bowser.effectgames.com/~jhuckaby/zeroclipboard/