SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Insert Smiley Problem
Threaded View
-
Feb 4, 2001, 08:44 #1
- Join Date
- Aug 2000
- Location
- N.S., Canada
- Posts
- 487
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hey,
I'm working on my message board but I can't get this to workI want a user to be able to click a link and a window pop up with a list of smilies and when you click on one it ads it to the post. The problem is I can't get the code to work in a pop-up, I don't even know if it's possible. Heres the code I have so far:
Code:<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function View(form) { msg=open("","DisplayWindow","status=1,scrollbars=1"); msg.document.write(form.Text2.value); } function Generate(form) { var txt=""+form.Name.value+"\r\n"; txt+= ""+form.Name.value+"\r\n"; txt+="\r\n"; if(form.Text1.value) txt+=form.Text1.value+"\r\n"; if(form.EMail.value) txt+=""; form.Text2.value=txt; } function AddText(form, Action){ var AddTxt=""; var txt=""; if(Action==1) AddTxt=":confused:"; form.body.value+=AddTxt; } function ResetPage(form) { if(confirm("Reset the page?")) { form.body.value=""; } } // End --> </SCRIPT> <input type="button" value="Confused Smiley" onClick="AddText(this.form,1);">
Justin Sampson
Bookmarks