sometimes.. users press on the "Post New Topic" or "Post Reply" button many times ((accedently)) which result the Flood Protection Activation... ok! use this script in your site where do you want buttons to truned off after 1 click on it.
see preview at: http://www.geocities.com/topsecretzonex/Once.htm
please note: copy and paste the shortcut in your browser to see the page, some scripts errors will appear, it's not cause by this code but by the Yahoo! code (conflict).
The Code:
<script language="JavaScript">
<!--
var wasclicked = false;
function regsubmit(obj)
{
obj.disabled=1;
if (!wasclicked)
{
wasclicked=true;
window.focus();
}
return false;
}
//-->
</script>
then.. replace the button with this:
<input class="Bsbttn" onclick="return regsubmit(this);" type="submit" value="Post New Topic" name="Submit"><p></p>
it should work to anyone... hope you find this usefull, i know that's it simple but it's useful.. isn't!?
$--Dr. Fix--$