We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Javascript help please
Topic Started: Jun 27 2005, 04:30 PM (472 Views)
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Yea, I know this is a n00b question, but I just can't do JS for some reason.
(Its not that I didn't try to learn it, oh no, I read 3 frikken tutorials on it, still, nothing :angry: )

Anyway, I'm building this guestbook alike thing, and I want my smilies to be clickable (like here, for example)
After some reading, I was thinking of something like
Quote:
 

<head>
<script language="JavaScript">
function InsertEmoticon(Emoticon)
{
window.document.PostingFrom.message += Emoticon;
}
</script>
</head>
<body>
Blah Blah and more Blah
<a href="JavaScript:InsertEmoticon(':)')"><img src="smilie/smile.gif" border="0" /></a>

The smilie is clickable alright, but the code won't te inserted into the testarea.

Like I said: n00b question :P
But I really don't know how I should do it.

Offline Profile Quote Post Goto Top
 
James
Live to Dream
[ *  *  *  *  *  *  * ]
message.value += ??
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Yea, that did it.
Could/should have thought of that myself I guess :$

Well thanks James.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply