inherit
52328
0
Mar 13, 2009 16:15:58 GMT -8
CrAzY_J
871
July 2005
crazyj2
|
Post by CrAzY_J on Nov 17, 2005 17:46:55 GMT -8
Global Footers
This code will add the colors normally in a drop down menu, in the posting area, in a new cell beneath the UBBC icons. <script type="text/javascript"> /* Add colors in new cell - created by crAzY_J do not redistribute this code without the creator's permission global footers*/ var iCell if( document.postForm ) { var colors = document.postForm.color; colors.style.display = 'none'; var iRow = colors.parentNode.parentNode.parentNode.parentNode.insertRow(4); iCell = iRow.insertCell(0); iCell.width = '30%';iCell.className = 'windowbg2';iCell.innerHTML = '<font size="2">Add Colors</font>'; iCell = iRow.insertCell(1); iCell.width = '70%';iCell.className= 'windowbg2'; for( o = 0 ; o < colors.options.length ; o ++ ) { iCell.innerHTML += ' <font style="cursor:pointer;" color="'+colors.options[o].value+'" onClick=\'javascript:add("[color=' +colors.options[o].value+ ']","[/color]")\'>' +colors.options[o].value+ '</font> '; } } </script>
|
|