PDA

View Full Version : HELP!?!?! Amateur here! (m)


mommie2josh
04-21-2003, 08:20 AM
I'm trying to put up an emoticon drop down menu on my forum, and I'm having a hard time.

Here's my site:
Tina's (http://www.network54.com/Hide/Forum/245194)

I want the emoticon drop down menu that is currently on the bottom of the page (just so it's out of the way while I'm working on it) to show only on the "post your message" page, and to have the URL for the emoticon to automatically pop into the text message section. (Please tell me this makes sense; I don't know how else to explain it!?) lol

Thanks!

Tina

P.S. Here is the current code that I have for the emoticons on the "post your message page".

<script language="Javascript"><!--
// http://www10.brinkster.com/mrpip/nw54/nwscripts.html -->
if (document.URL.search("post") != -1){
document.write('Emoticons<br>')
document.write('<a href=javascript:WhichFace("agree.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/agree.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("angel.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/angel.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("angry.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/angry.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("argue.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/argue.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("cheers.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/cheers.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("confused.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/confused.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("disagree.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/disagree.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("idea.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/idea.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("important.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/important.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("love.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/love.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("oops.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/oops.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("question.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/question.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("ROFL.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/ROFL.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("sad.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/sad.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("shocked.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/shocked.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("silly.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/silly.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("smile.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/smile.gif" border=0></a>')
document.write('<a href=javascript:WhichFace("sunshine.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/sunshine.gif" border=0>Sunshine</a>')
document.write('<a href=javascript:WhichFace("venting.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/venting.gif" border=0>Venting</a>')
document.write('<a href=javascript:WhichFace("wink.gif")><img src="http://www.network54.com/Realm/July1999/Emoticons/wink.gif" border=0>Wink</a>')
}
function WhichFace(thisimage){if(document.all.message.type=="hidden"){alert("Unable to edit message in \"Preview Mode\"!")}
else{document.all.message.value=document.all.message.value + "http://www.network54.com/Realm/July1999/Emoticons/" + thisimage + " ";}
}
// -->
</script>

And here is what I have for my drop down menu:

<center><form action="dummy" method="post"><select name="choice" size="1"><option value="http://network54.com/Realm/July1999/Emoticons/agree.gif">Agree</option><option value="http://network54.com/Realm/July1999/Emoticons/angel.gif">Angel</option><option value="http://network54.com/Realm/July1999/Emoticons/angry.gif">Angry</option><option value="http://network54.com/Realm/July1999/Emoticons/argue.gif">Argue</option><option value="http://network54.com/Realm/July1999/Emoticons/cheers.gif">Cheers/Congrats</option><option value="http://network54.com/Realm/July1999/Emoticons/confused.gif">Confused</option><option value="http://network54.com/Realm/July1999/Emoticons/disagree.gif">Disagree</option><option value="http://network54.com/Realm/July1999/Emoticons/idea.gif">Idea</option><option value="http://network54.com/Realm/July1999/Emoticons/important.gif">Important</option><option value="http://network54.com/Realm/July1999/Emoticons/love.gif">Love</option><option value="http://network54.com/Realm/July1999/Emoticons/oops.gif">Oops</option><option value="http://network54.com/Realm/July1999/Emoticons/question.gif">Question</option><option value="http://network54.com/Realm/July1999/Emoticons/ROFL.gif">ROFL</option><option value="http://network54.com/Realm/July1999/Emoticons/sad.gif">Sad</option><option value="http://network54.com/Realm/July1999/Emoticons/shocked.gif">Shocked</option><option value="http://network54.com/Realm/July1999/Emoticons/silly.gif">Silly</option><option value="http://network54.com/Realm/July1999/Emoticons/smile.gif">Smile</option><option value="http://network54.com/Realm/July1999/Emoticons/sunshine.gif">Sunshine</option><option value="http://network54.com/Realm/July1999/Emoticons/venting.gif">Venting</option><option value="http://network54.com/Realm/July1999/Emoticons/wink.gif">Wink</option></select><input TYPE="button" VALUE="GO!" onClick="jump(this.form)"></form>


So basically, how do I combine them so that I just have a drop down menu that only shows up on the "post your message" page, and inserts the emoticon into the text box upon clicking it?

Thanks again!

WA
04-21-2003, 08:26 AM
Hi:
Welcome to the forums. As a side note, please read our posting guidelines regarding using a descriptive subject for your questions in the future: http://www.codingforums.com/postguide.htm

Thanks,