I am trying to make it so that a text box comes up...when I click a link button on the reply page of a forum, I want at text box to come up that says, "Enter link" after entering th elink it shoud then say, "enter title of link" and then the link and title are put in the body of the message.
I am using upb boards and want to put this in the newpost.php. this is the javascipt heading in the newpost.php
<SCRIPT LANGUAGE='JavaScript'>
<!--
function SetSmiley(Which) {
if (document.newentry.message.createTextRange) {
document.newentry.message.focus();
document.selection.createRange().duplicate().text = Which;
} else {
document.newentry.message.value += Which;
}
}
//-->
</SCRIPT>
<script language='JavaScript'>
function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=='submit'||tempobj.type.toLowerCase()=='reset')
tempobj.disabled=true
}
}
}
</script>
this is the place where the "doLink" should go
<area shape='rect' coords='28,28,72,49' href=\"javascript:SetSmiley('[url] [/url]')\" ONFOCUS=\"filter:blur()\">
andy body gt suggestions on how to make this box happen?