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:
Thanks,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



I 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:
I just had to make it a text link with target=mainframe. That works great with frames but I don't have frames. 


Bookmarks