inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Dec 15, 2005 14:57:26 GMT -8
Global FooterHas the ability to add additional colors to the 'Color' selector when posting and can color code the options. If you don't want the options in different colors, remove the bit in green. Preview: Here<script type="text/javascript"> <!-- var color=[]; color[0]=["CC0066","Hot Pink"]; color[1]=["FF3366","Another Color"];
if(document.postForm) { var colorSelector = document.postForm.color; for(e=0; e<color.length; e++) { var re = document.createElement('option') re.value = color[e][0]; re.appendChild(document.createTextNode(color[e][1])); colorSelector.appendChild(re); } var option = colorSelector.options; for(c=0; c<option.length; c++) { if(option[c].value) { option[c].style.color = option[c].value; } } } //--> </script> Edit the lines which look like this: color[0]=["CC0066","Hot Pink"] color[1]=["FF3366","Another Color"] color[X]=["HEX Color","Color Name "]Where X increases by one each time
|
|