| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| adding text color choices | |
|---|---|
| Tweet Topic Started: Dec 13 2008, 07:37 PM (487 Views) | |
| Cannabean | Dec 13 2008, 07:37 PM Post #1 |
|
Member
|
I had an Invisionfree Board some years ago and remember a code snippet that gave the entire board a huge selection of colors for text. They were included in the poster's text color drop down. As I recall the following code was put into the footer section in admin CP. <script type='text/javascript'> <!-- // add colors and fonts to dropdowns at post page // created by ticlo, http://ifsz.net/ n = 0 addColors = [] addFonts = [] // add colors here addColors[n++] = 'Black' addColors[n++] = 'Blue' addColors[n++] = 'Blueviolet' addColors[n++] = 'Brown' addColors[n++] = 'Cadetblue' addColors[n++] = 'Chocolate' addColors[n++] = 'Coral' addColors[n++] = 'Cornflowerblue' addColors[n++] = 'Crimson' addColors[n++] = 'Darkblue' addColors[n++] = 'Darkcyan' addColors[n++] = 'Darkgoldenrod' addColors[n++] = 'Darkgreen' addColors[n++] = 'Darkmagenta' addColors[n++] = 'Darkolivegreen' addColors[n++] = 'Darkorange' addColors[n++] = 'Darkorchid' addColors[n++] = 'Darkred' addColors[n++] = 'Darkslateblue' addColors[n++] = 'Darkslategray' addColors[n++] = 'Darkviolet' addColors[n++] = 'Deeppink' addColors[n++] = 'Dimgray' addColors[n++] = 'Firebrick' addColors[n++] = 'Forestgreen' addColors[n++] = 'Goldenrod' addColors[n++] = 'Gray' addColors[n++] = 'Green' addColors[n++] = 'Hotpink' addColors[n++] = 'Indianred' addColors[n++] = 'Indigo' addColors[n++] = 'Lightseagreen' addColors[n++] = 'Lightslategray' addColors[n++] = 'Magenta' addColors[n++] = 'Maroon' addColors[n++] = 'Mediumaquamarine' addColors[n++] = 'Mediumblue' addColors[n++] = 'Mediumorchid' addColors[n++] = 'Mediumpurple' addColors[n++] = 'Mediumseagreen' addColors[n++] = 'Mediumslateblue' addColors[n++] = 'Mediumvioletred' addColors[n++] = 'Midnightblue' addColors[n++] = 'Navy' addColors[n++] = 'Olive' addColors[n++] = 'Olivedrab' addColors[n++] = 'Orange' addColors[n++] = 'Orangered' addColors[n++] = 'Orchid' addColors[n++] = 'Palevioletred' addColors[n++] = 'Peru' addColors[n++] = 'Purple' addColors[n++] = 'Red' addColors[n++] = 'Royalblue' addColors[n++] = 'Saddlebrown' addColors[n++] = 'Salmon' addColors[n++] = 'Sandybrown' addColors[n++] = 'Seagreen' addColors[n++] = 'Sienna' addColors[n++] = 'Slateblue' addColors[n++] = 'Slategray' addColors[n++] = 'Steelblue' addColors[n++] = 'Teal' addColors[n++] = 'Tomato' addColors[n++] = 'Violet' n = 0 // add fonts here addFonts[n++] = 'Verdana' addFonts[n++] = 'Helvetica' addFonts[n++] = 'Comic Sans MS' addFonts[n++] = 'Lucida Sans Unicode' if (document.forms['REPLIER'] && document.forms['REPLIER'].fcolor) { e = document.REPLIER.fcolor.options for (n = 0; n < addColors.length; n++) { no = e[e.length] = new Option(addColors[n], addColors[n]) no.style.color = addColors[n] } e = document.REPLIER.ffont.options for (n = 0; n < addFonts.length; n++) { no = e[e.length] = new Option(addFonts[n], addFonts[n]) no.style.fontFamily= '"' + addFonts[n] + '"' }} // --> </script> I am not seeing the color additions in the drop down. Is there a missing snippet or corrupted line? It is driving me bats and I have spent the better portion of two days searching and looking for answers on this and several other IF skin forums. If this topic has been addressed recently I apologize now, for I have looked through massive amounts of code and topics again today. I would also like to thank anyone who can and will help me in advance for your time. |
![]() |
|
| Cory | Dec 14 2008, 03:33 AM Post #2 |
|
Member
|
Please post your board wrappers. The code works fine on my test board. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · zIFBoards - Skinning & Code Support · Next Topic » |






4:29 AM Jul 11