TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Smilies insert help need!

Page: 1 Reply
Aug 18th 2003#118142 Report
Member since: Jul 25th 2003
Posts: 489
I need this help real quick guys I want to do this smilies insert on my contact page where I have a bouch of smilies lined up like in this forum and when you click the smilies it will insert in the message body in the form of url, how do I do that, I'm not good with javascript!

Chang
Reply with Quote Reply
Aug 18th 2003#118177 Report
Member since: Mar 24th 2002
Posts: 3114
[PHP]
function insertSmiley(smiley){
document.form.something.value=document.form.something.value+"";
}
[/PHP]

..then have the smileys linked like this:

[PHP]

[/PHP]

(I know it's got nothing to do with php, but I don't know what tag to use. :D)


EDIT: Oh, and name your form 'form' and then the textarea / textfield should be named 'something' in this exact case.
Reply with Quote Reply
Aug 18th 2003#118180 Report
Member since: Jul 25th 2003
Posts: 489
Sick Paavo man @^%T$@#@#^ My emotions flow and can't thank you enough man, you are like my light in the sky, I tried so many different ways it just wouldn't work, check it out anyways

http://www.hybridfusion.com/contact.shtml

Thanks to you
By the way I would love to learn how to make smilies from you and maybe we could affiliate.

Thanks again!

Chang
Reply with Quote Reply
Aug 18th 2003#118238 Report
Member since: Apr 20th 2002
Posts: 3000
You could've always pulled the code right off the forum. :P


From vbcode.js:

function smilie(thesmilie) {
// inserts smilie text
document.vbform.message.value += thesmilie+" ";
document.vbform.message.focus();
}

function opensmiliewindow(x,y,sessionhash) {
// um... opens smilie overflow window.
window.open("misc.php?action=getsmilies&s="+sessionhash, "smilies", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum