October 21, 2018, 03:42:55 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Add More Colors to Dropdown

Pages: [1]   Go Down
  Print  
Author Topic: Add More Colors to Dropdown  (Read 514 times)
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« on: February 22, 2009, 03:30:38 pm »

Footers:
Code:
<script>
function AddMore(Name,HEX){
//Created by Agent Moose (revolutionx.smfforfree3.com)
var sel = document.getElementsByTagName("select");
for(x=0;x<sel.length;x++){
if(sel[x].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.id == "postmodify"){
var num = sel[x].options;
wo = num[num.length] = new Option(Name,HEX);
};};};
AddMore("NAME","COLOR/HEX");
</script>

I decided to try to do this again, and this time, it worked Smiley

NAME = The Name for that option
COLOR/HEX = The Color/Hex number for the text.

Enjoy Smiley
Report Spam   Logged


Social Buttons

skillag3
Member
Member
Offline Offline

Gender: Male
Posts: 29


View Profile
Badges: (View All)
« Reply #1 on: February 22, 2009, 03:33:02 pm »

Got a question. How does this work, like is it for all the drop down boxes or do you just create one?
Report Spam   Logged
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« Reply #2 on: February 22, 2009, 05:55:34 pm »

Its for the one in the Quick Reply, and the one on the reply screen.
Report Spam   Logged


Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #3 on: June 17, 2009, 05:59:03 am »

Thx Moose. Adding it now  Cheesy
Report Spam   Logged






Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum | Buy traffic for your forum/website

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy