iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 19, 2007 19:49:21 GMT -5
When posting a message, or sending a message, this code will allow you to add more options to the drop down color menu.
Global Footers.
Cross Browser.
Open Source.
<script type="text/javascript"> <!--
/*Extra Colors when Posting - By iAlex - Open Source*/
var iRainbow=[ ["Name 1", "Hex Code 1"], ["Name 2", "Hex Code 2"], ["Name 3", "Hex Code 3"] //No comma on the last line ];
if(document.postForm && document.postForm.color){ for(i=0;i<iRainbow.length;i++){ var iWantMoreColors=document.createElement('option'); iWantMoreColors.value=iRainbow[1]; var Colors4MePl0x=document.createTextNode(iRainbow[0]); iWantMoreColors.appendChild(Colors4MePl0x); document.postForm.color.appendChild(iWantMoreColors); } }
//--> </script>
And example of how to edit the red text, would be something like this: ["Light Orange", "FF8080"],
If you wish to add more colors, then continue to add this line: ["Name 4", "Hex Code 4"],
Just make sure there is not a comma on the last line. If you have trouble editing, don't hesitate to ask.
|
|
|
Post by Jeeeeeel on Feb 23, 2008 18:35:52 GMT -5
This is going ot really be useful for me. Thanks for the code, iAlex.
|
|
Tʀuɘ Rəmɪx
New Member
IwillGIVEyouMYheart
Posts: 22
|
Post by Tʀuɘ Rəmɪx on Apr 23, 2008 16:41:02 GMT -5
Yea, this code is very useful.
|
|
RoboFrog
New Member
More Ovaltine Please!!!!!!!
Posts: 37
|
Post by RoboFrog on Apr 25, 2008 12:29:22 GMT -5
can't wait to use it on my board, weve been looking for something just like this, thanks.
|
|