iAlex
Junior Member
Posts: 73
|
Post by iAlex on Mar 7, 2008 3:05:48 GMT -5
Nothing special, but this code will allow you to alter the amount of UBBC icons displayed per line. Simply edit the red text with the amount of icons per line.
Cross Browser.
Global Footer.
Open Source.
<script type="text/javascript"> <!--
/*Open Source*/
var iPerLine=7
if(document.postForm && document.postForm.color){ var iColour=document.postForm.color; var iParent=iColour.parentNode; iParent.removeChild(iParent.getElementsByTagName('br').item(0)); iParent.removeChild(iColour.previousSibling); iParent.appendChild(iColour); a=0; for(var iLink=iParent.getElementsByTagName('a'), i=0;i<iLink.length;i=i+iPerLine){ iParent.insertBefore(document.createElement('br'), iLink.item(i)); a++ } var iHeight=iLink.item(0).firstChild.height*(a/2); var iWidth=(iPerLine!=28)? iLink.item(0).firstChild.width*iPerLine : 5; document.write(iHeight); iColour.style.position='relative'; iColour.style.bottom=iHeight+'px'; iColour.style.left=iWidth+'px'; }
//--> </script>
|
|