//selects all text and refocuses text box after submit //chosen over clearing the message as some messages dont go through //due to flood controls, character limits, etc //this gives the user an option of changing the text, or simply overwriting it function clear_message() { document.tagform.message.focus(); document.tagform.message.select(); } //handles the popup window for smilies //attempts to write all the contents directly, without file accesses //this is faster and requires less effort on the browser function pop_up_smilies() { var smilie=window.open('','smilies','resizable=yes,scrollbars=yes,width=300,height=500'); smilie.opener=window; smilie.document.open("text/html"); smilie.document.write('\\\Tag-Board Smilies\\\.nounder{text-decoration:none;}\\ \\\
\Smilie Code\\\\\\Image\Replacement\\\'); smilie.document.write('\wc(":)","",15,"156/smile");wc(":(","",15,"156/sad");wc(":o","",15,"156/shocked");wc(":D","",15,"156/biggrin");wc(";)","",15,"156/wink");wc(":p","",15,"156/tongue");wc(":artist:","",15,"156/artist");wc(":bowling:","",15,"156/bowl");wc(":mad:","",15,"156/mad");wc(":dizzy:","",15,"156/dizzy");wc(":nono:","",15,"156/nono");wc(":eyepatch:","",15,"156/pirate");wc(":sick:","",15,"156/sick");wc(":cry:","",15,"156/cry");wc(":uhh:","",15,"156/uhh");wc(":wacko:","",15,"156/wacko");wc(":yinyang:","",15,"yin-yang");wc(":frog:","  ",25,"frog");\\\'); smilie.document.write('\ '); //close our open 'file' in javascript and return false so that the backup //popup doesn't display smilie.document.close(); return false; } //used to remember user names and 'urls' across all tag boards //based solely on cookies. Used as a simple convenience feature function rememberme() { var tempdate=new Date() //code to write the user's clock as variable data for setting timestamps //to local values. This local timestamp feature is not yet implemented document.write ('\'); document.write ('\'); //used to start up the netscape code if this is netscape start_net(); } //clear the message after it is submitted. pause 0.2 seconds to be sure //that the message has been submitted first function Clear_Last_Message_on_Submit() { document.tagform.submit(); setTimeout("clear_message()",200); return false; } //empty functions, only needed under netscape 4.x function start_net() { } function netscape_support() { }
1
Hosted by www.Geocities.ws