Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-05-02 01:56:16
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
emots help?
I am currently using JS for on-click emoticons in comment form. This is what a visitor will get in the comment form when clicking on an emoticon:
I want to have the above be changed to:
:blush:
This is the JS I use in between the head tags of my page:
<script type="text/javascript">
function writeImgTag(code) {
var message = document.getElementById('message');
if (!message) return;
message.value = message.value + '!/emots/' + code + '.png!';
message.focus();}
</script>
This is what I have for showing the emoticons in the comment_form form:
<img onClick="writeImgTag('blush')" src="/emots/blush.png" border="0" />
So any ideas how I can go from: TO :blush:??
EDIT: I have got it changed. Just had to change the onClick values.
Last edited by Ruhh (2008-05-02 03:19:35)
<txp:Ruhh />
Offline
Pages: 1