vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Auto-Scroll Sig - 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
Auto-Scroll Sig (3rd Apr 08 at 5:15pm UTC)
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
 Printable View

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