vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Expand Quick Reply
Expand Quick Reply - Posted By Michael (wrighty) on 29th Apr 08 at 6:50pm
This code will add a link under the quick reply message box that says 'expand' to allow your members to expand the quick reply message box's height.
edit part in red to alter how much it expands.
<script>
/*Expand Quick Reply
Created By Wrighty
Do Not: Rip, Repost or Claim*/
var e = {
x: 5,
m: get('message','name')[0],
check: function(){
if(get('quick_reply_ubbc','id')){
this.do();
}
},
do: function(){
var a = document.createElement('a');
a.href='javascript: e.xpand();';
a.appendChild(document.createTextNode('Expand'));
this.m.parentNode.appendChild(a);
this.m.parentNode.nextSibling.vAlign = 'top';
},
xpand: function(){
this.m.rows = parseInt(this.m.rows + this.x);
}
};
e.check();
</script>
Global Footer