adding smileys to a html guestbook

admin

Administrator
Staff member
Hi,

I have a website for my students and my guestbook is pretty dull. I would like to use some images of smileys that I have and allow all those who sign my guestbook to insert them whereever they wish. However, I can't figure it out. This is what I use at this point.

<script language="JavaScript">function addsmiley() { document.addguest.comments; document.addguest.comments.focus();}</script>

and this is what I tryed to place in the table of smileys:

<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript: addsmiley('<img src=http://www.webdeveloper.com/forum/archive/index.php/"/webpage/alien.gif" border=0>')"><img width=40 border=0 src=http://www.webdeveloper.com/forum/archive/index.php/"/webpage/alien.gif" alt="Alien"></a>

however, there is something wrong. Since I know didly sqwat about javascript, this is my feeble attempt at it. Did I get close or am I waaaaaaaaay off?

addguest page for my guestbook is <!-- m --><a class="postlink" href="http://24.144.19.198/guestbook/addguest.html">http://24.144.19.198/guestbook/addguest.html</a><!-- m -->
 
Top