Smilie problems

Genma

New Member
Messages
12
Reaction score
0
Points
0
Hi everyone, I´m not an expert in javascript, but I know somewhere out there a genius script guy will help with my problem. I've made a shoutbox, but to be a perfect shoutbox, I need it to do the following:
Like the forums, I need a script that adds something to the textarea of the shout when you click on the image. Like when you click this:happysad: and on the textarea appears :haappysaad:.
I've seen that there is a function that finds the id of the textarea and adds some text if you add it to an onclick event, but I don´t know how to do that if the smilies are a separated html from the shoutbox html.
Hope I've made myself clear, my englsih is not that good.
please please please, I really need to know how to improve my shoutbox.
Thanx
 
Last edited:

Swiblet

New Member
Messages
1,114
Reaction score
0
Points
0
Well, I didn't understand >.<

Everything I know about Javascript, I learned from W3Schools. Maybe your answer is there?

~~Ben
 

mitamata

New Member
Messages
81
Reaction score
0
Points
0
I sorta understand what you're trying to do, but I'm confused about the "if the smilies are a separated html from the shoutbox html" part. You mean the smilies and the shoutbox are not on the same page? Cause that might complicate things :shifty:
Can you show where you have this shoutbox? It would make it easier to help.
 

Genma

New Member
Messages
12
Reaction score
0
Points
0
This is the shoutbox
http://genma.x10hosting.com/shoutbox.php
and when you click on smilies they appear in another window, just like in the forums. Please understand my bad bad english.
XD
Thanks n_n
Edit:
Sorry that link is just for the shouts. This is the real url.
http://genma.x10hosting.com/Shouty.html
It is like that because I iframe it in my web in a small window about the size of just the shouts and looks just like in this unfinished website (that is supposed to be a blog someday)
http://genma.x10hosting.com/
Thanks again.
 
Last edited:
Top