Welcome Guest [Log In] [Register]
Viewing Single Post From: Signature Overflow
Ellothar121
Member
[ * ]
Name: Signature Overflow
Description: This adds a maximum height to the signature area, and adds a scroll bar to display any signature that exceeds that height.
Browsers: FF3; In IE7, this will create a scroll bar, but there is a large amount of empty space that I'm not positive how to get rid of. Suggestions appreciated.
Installation: Below the Board
Customization: The part in red can be adjusted/added to like normal CSS.

Code:
Quote:
 

<script type="text/javascript">
var allPageTags = new Array();

function addSignatureOverflow() {
var getTableData=document.getElementsByTagName("td");
for (z=0; z<getTableData.length; z++) {
if (getTableData[z].className=="c_sig") {
signature=getTableData[z].innerHTML;
getTableData[z].innerHTML='<div id="signature" style="height: 200px; overflow: auto;">'+signature+'</div>';
}
}
}
document.onLoad = addSignatureOverflow();
</script>
Edited by Ellothar121, Dec 7 2008, 07:22 PM.
Offline Profile Quote Post
Signature Overflow · Code & Modification Database