Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 html question
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Dan Martin
Average Member

USA
528 Posts

Posted - 17 July 2001 :  11:36:08  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message

function colorToHex(thisColor)
select case UCase(thisColor)
case "WHITE"
colorToHex="#FFFFFF"
case "BLACK"
colorToHex="#000000"
end select
end function


That will work...if you fill in all the colors you want to support (yeah...no small task, that's why I didn't do it). Add it to your equivalent of inc_functions and you should be able to use it anywhere.

Maybe not the most elegant way to do this...but it would work.

-Dan
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07