vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Auto-Scroll Sig

Auto-Scroll Sig - Posted By Michael (wrighty) on 3rd Apr 08 at 5:15pm
This code will make it so that if a user enters a sig that is too wide for the forum it will add a scrollbar to the bottom of it to stop the forum from stretching.


<script type="text/javascript">
<!--
/* Auto-Scroll Sig by Cr0w & Wrighty! =P */

var td = get('td','tag');
var w = (vf_width * 0.8) + 'px';

for(t=0;t<td.length;t++){
    if(td[t].className == "post signature"){
        var d = document.createElement('div');
        d.style.cssText = "width: "+w+"; overflow-x: auto;";
        d.appendChild(td[t].firstChild.nextSibling);
        td[t].appendChild(d);
    }
}
//-->
</script>


Global Footer