|
Post by Schubaltz on Aug 6, 2007 13:12:32 GMT -5
Description: Adds a drop-down box with several fonts to the posting page.
Source: Open
Cross-browser: Yes
Global Footer
<script type="text/javascript"> <!-- // Drop-down Font Face
var ops = [ "arial", "verdana", "courier new", "georgia", "roman" ]
if(document.postForm && document.postForm.message) { var i = document.createElement("select"), e = document.postForm.color.parentNode; i.options[0] = new Option("Font Face"); for(var x = 0; x < ops.length; x ++) i.options[x + 1] = new Option(ops[x]); i.onchange = function() { add("[font=" + this.options[this.selectedIndex].text + "]", "[/font]"); this.selectedIndex = 0; } e.appendChild(document.createTextNode(" ")); e.appendChild(i); } //--> </script>[/size]
|
|