vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Show/Hide Quick Reply
Show/Hide Quick Reply - Posted By Michael (wrighty) on 3rd Apr 08 at 8:12pm
This code will as a default hide the quick reply, until you click 'show' on the right hand side of the title
<script>
/*Show/Hide Quick Reply
Coded By Wrighty
Do Not: Rip, Repost or Claim*/
var d = get('quick_reply','id');
if(d){
get('quick_reply','id').rows[1].parentNode.style.display = 'none';
var div = document.createElement('div');
var a = document.createElement('a');
with(a){
onclick = function(){get('quick_reply','id').rows[1].parentNode.style.display = (get('quick_reply','id').rows[1].parentNode.style.display == '')? 'none' : '';};
appendChild(document.createTextNode('Show/Hide'));
href = 'javascript: void(0);';
}
with(div){
style.cssText = 'float: right';
appendChild(a);
}
with(d.firstChild.rows[0].cells[0]){
firstChild.style.cssText = 'float: left';
appendChild(div);
}
}
</script>
Global Footer