Peter
New Member
God
Posts: 6
|
Post by Peter on Oct 27, 2004 10:29:41 GMT
Code created by Shadow[/color]
This is a modification of my old Character Map in posts code. It used to be to the left of the textarea, but now it's right there with the colors dropdown!! Preview<script type="text/javascript"> //Code created by Shadow (http://hldesigns.proboards30.com) //Character Map In Posts V2 function put() { option=document.forms[0].dropdown.options[document.forms[0].dropdown.selectedIndex].text txt=document.forms[0].message.value txt=txt + option document.forms[0].message.value=txt } if(location.href.indexOf("=post")!=-1 || location.href.indexOf("=createpoll")!=-1 || location.href.indexOf("=modify")!=-1 || location.href.indexOf("=imsend")!=-1){
var TD = document.getElementsByTagName("select");
for(t=0;t<TD.length;t++){ if(TD[t].name.match("color")){ TD[t].outerHTML +=' <select name="dropdown" onChange="put()"><option>Characters<option>€<option>‰<option>™<option>¢<option>£<option>¥<option>§<option>©<option>®<option>°<option>²<option>³<option>¶<option>¹<option>¼<option>½<option>¾</select>' }}} </script>
|
|