• TBT's 2026 New Year's Party has started! Join us from now until January 11th in eight fun New Year's activities. Earn currency to spend on collectibles and raffle tickets. Get started in The Bulletin Board event thread. Happy New Year!

sig limits

Propaganda Man

Senior Member
Joined
Feb 27, 2005
Posts
9,272
Bells
1,428
Countdown Coins
0
Lucky Tickets
0
This will work the same but get rid of the red text

Code:
<style type='text/css'>
.toobigsig {
border: 2px solid red
}

.toobigsigtext {
font-weight:bold; color:#FFFAEB

}

</style>
<script type='text/javascript'>
<!--


sigWidth = 590
sigHeight = 200

e = document.getElementsByTagName('DIV')
for (n =0; n< e.length;n++) {
if (e[n].className == 'signature') {
ct = ''
ct = e[n].style.cssText
if (ct != '') e[n].style.cssText = ''
e[n].style.width = sigWidth +'px'
e[n].style.height = sigHeight + 'px'
e[n].style.overflow = 'hidden'
if ((sigWidth < e[n].scrollWidth) || (sigHeight < e[n].scrollHeight)) {
e[n].className = 'toobigsig'
if (showScroll) e[n].style.overflow = 'auto'
if (tooBigText && tooBigText.length != 0) {
tbt = document.createElement('DIV')
tbt.innerHTML = tooBigText
tbt.className = 'toobigsigtext'
if(e[n].nextSibling) e[n].parentNode.insertBefore(tbt, e[n].nextSibling); else e[n].parentNode.appendChild(tbt);
}} else {
e[n].style.width = ''
e[n].style.height = ''
e[n].style.overflow = ''
if (ct != '') e[n].style.cssText = ct
}}}
// -->
</script>
 
Back
Top