inherit
54941
0
Mar 24, 2011 16:00:30 GMT -8
Mithras
2,603
August 2005
mithras
|
Post by Mithras on Nov 1, 2006 17:20:47 GMT -8
Pretty simple.... no edit needed unless you want to add fonts.
Global Footer
<script type='text/javascript'> <!-- // Fonts In Drop-Down Box In Quick Reply by Mithras // Do not repost without permission
// Fonts -- Do not edit unless you want to add fonts var allFonts = [ ['Verdana'], ['Times New Roman'], ['Comic Sans MS'], ['Arial'], ['Courier New'], ['Tahoma'], ['Century'], ['Autumn'], ['Lucida Console'], ['Rockwell'], ['Scibble'], ['Trebuchet'] ];
function addFont() { var ta = document.getElementsByName('message'); var whichFont = document.fontForm.font.selectedIndex; ta[0].value += '[font=' + allFonts[whichFont] + '][/font]'; } if(location.href.match(/thread=/)) { var tds = document.getElementsByTagName('TD') for(a=0; a<tds.length; a++) { if(tds[a].width=='100%' && tds[a+1].align=='right') { var b = a } } var quickReply = tds[b].innerHTML; var fontHTML = '<form name="fontForm">Add Font: <select name="font" onchange="javascript: addFont()">'
for(i=0; i<allFonts.length; i++) { fontHTML += '<option value="' + allFonts[i] + '">' + allFonts[i] + '</option>'; } fontHTML += '</select></form><br/>'; tds[b].innerHTML = fontHTML + '' + quickReply; } //--> </script>
|
|