Can someone show me a tutorial or something on making a user friendly where users can just click on a smilie and it adds it to a text box on the shout page?
Thank you
Smackie
Shout box *smilies*
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Indeed. If you don't want to do javascript, I know how you feel. This is how I've got it:
Code: Select all
function smilie(name) {
document.foo.bar.value += ':'+name+':';
}Code: Select all
<form name="e;foo"e;>
<a href="e;#"e; onclick="e;smilie('grin');return false;"e;><img src="e;grin.gif"e; alt="e;:grin:"e; /></a>
<textarea name="e;bar"e;></textarea>
</form>