Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Aug 17th, 2017, 4:26pm

Coding Forum
Important News
Remember to add where the code goes in the headers/footers.

Also, please check the list of codes on the Hacks board, especially if you have an error. The code may already have been corrected.
Thanks.
Welcome to the Conforums Hacks Board!

Please follow these simple rules.

1. No spamming.
2. Do not advertise your board in here!
3. Keep on topic, or the thread will be locked.
4. No flame wars.
5. No bringing up old topics.

Please note: For codes other than those submitted in the Hacks Forum, please ask for permission to use from the creator. Be aware that coding queries in the Coding Forum become public domain. If you still seek coding help but find it inconvenient to display it publicly then please PM one of the moderators. We encourage all queries to be submitted here in hopes to help other members who might have the same question. Thank you.

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
Gizzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: more colors in dropdown?  (Read 4106 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17642
xx Re: more colors in dropdown?
« Reply #2 on: Oct 27th, 2006, 12:15pm »

Yes you can. Add this board footers:

<script type="text/javascript">
<!--
if(document.postmodify) {
if(document.postmodify.color) {
document.forms['postmodify'].color.options[14] = new Option('Text to appear','Color Value');
}}
// -->
</script>

Repeat this line:

document.forms['postmodify'].color.options[14] = new Option('Text to appear','Color Value');

To insert more color selections.

Change the info in red to suit.
User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2073
xx Re: more colors in dropdown?
« Reply #3 on: Oct 27th, 2006, 12:30pm »

on Oct 27th, 2006, 12:15pm, Dave wrote:
Yes you can. Add this board footers:

<script type="text/javascript">
<!--
if(document.postmodify) {
if(document.postmodify.color) {
document.forms['postmodify'].color.options[document.forms['postmodify'].color.options.length] = new Option('Text to appear','Color Value');
}}
// -->
</script>

Repeat this line:

document.forms['postmodify'].color.options[14] = new Option('Text to appear','Color Value');

To insert more color selections.

Change the info in red to suit.


Cool thanks Dave. Hey where did you get this code from ?
« Last Edit: Oct 27th, 2006, 3:18pm by Dave » User IP Logged

Raptoryfm350
Junior Member


member is offline

Avatar

Ride Hard or Go Home!!


Homepage PM

Gender: Male
Posts: 294
xx Re: more colors in dropdown?
« Reply #4 on: Oct 27th, 2006, 2:50pm »

Thanks Garet. You are the man. Very appreciative. It works great.
« Last Edit: Oct 27th, 2006, 2:52pm by Raptoryfm350 » User IP Logged

User Image

Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17642
xx Re: more colors in dropdown?
« Reply #5 on: Oct 27th, 2006, 3:13pm »

on Oct 27th, 2006, 12:30pm, Garet wrote:
Cool thanks Dave. Hey where did you get this code from ?


I just made it up... grin
User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Raptoryfm350
Junior Member


member is offline

Avatar

Ride Hard or Go Home!!


Homepage PM

Gender: Male
Posts: 294
xx Re: more colors in dropdown?
« Reply #6 on: Oct 27th, 2006, 3:17pm »

Sorry Dave, I gave props to the wrong guy. But no, really, thanks to both of you. You guys are geniuses. This stuff is greek to me. I'm trying to learn.
User IP Logged

User Image

Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2073
xx Re: more colors in dropdown?
« Reply #7 on: Oct 27th, 2006, 3:17pm »

on Oct 27th, 2006, 3:13pm, Dave wrote:
I just made it up... grin


Wow i wish i was as good at coding as you are. Hey do you want me to add it to the hacks database.
User IP Logged

Raptoryfm350
Junior Member


member is offline

Avatar

Ride Hard or Go Home!!


Homepage PM

Gender: Male
Posts: 294
xx Re: more colors in dropdown?
« Reply #8 on: Oct 27th, 2006, 3:19pm »

I think it would be a good idea. I think alot of people would use this one.
User IP Logged

User Image

Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17642
xx Re: more colors in dropdown?
« Reply #9 on: Oct 27th, 2006, 3:20pm »

Sure you can. I just changed it slightly to improve it slightly.
User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls