Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
‽ jQuery Add Colors; Easier adding of colors to the dropdown
Topic Started: Feb 10 2008, 04:08 PM (2,505 Views)
Nicola
Darth Vader's Sewing Instructor

Ryan A.
Jun 10 2008, 07:36 AM
Is JQuery Reliable?

And what exactly is it?
Of course it's reliable, and Interrobang is an extremely good coder so it's going to work.

It's a code for adding more colour options to the colour menu on the posting page.

$(function() { that part makes the code execute (right Ben? :P ) when the rest of the page has loaded, so I don't think placement truly matters. However Above the Copyright box in the Board Template should be okay.
Offline Profile Quote Post Goto Top
 
.Koda
Member Avatar
Livin' The Life
[ *  * ]
Mine didn't work.

Here's What I got:

Code:
 
<script type="text/javascript">//<![CDATA[$(function() { if($('select[name=fcolor]').length) {var colors = {'Ninja Salmon' : 'FF9966','Overlord Gold' : 'E8D21C'};for (color in colors)$('select[name=fcolor]').append($('<option></option>').attr('value','#' + colors[color]).text(color));}});//]]></script>
Offline Profile Quote Post Goto Top
 
Natasha2
Member
[ * ]
I also tried this code it doesn't work
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · User Created Codes · Next Topic »
Add Reply