vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Show/Hide Quick Reply - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Show/Hide Quick Reply (3rd Apr 08 at 8:12pm UTC)
This code will as a default hide the quick reply, until you click 'show' on the right hand side of the title {Smile}

<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
 Printable View

All times are GMT+0 :: The current time is 4:53pm
Page generated in 0.0887 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums