UptimeAuditor
 
Register | Sign in  
 
UptimeAuditor > Articles > Web Design > How To Use Unsafe Web Colors With Minimum And Safety And Maximum And Profit




How To Use Unsafe Web Colors With Minimum And Safety And Maximum And Profit


Do you want to use unsafe web colors without offending anyone? You can and you can do it by using JavaScript. It will determine which style tag the user uses by looking at whether it can use unsafe colors. This can get quite complicated for a large web site. You can save these as external Javscript files and use them in a common template. You can even use them in combination with cookies to determine whether they can have unsafe web banner advertising.

I have heard about this problem for years but there seems to be no easy solution. Then I started experimenting with JavaScript and found that not only does it work, but it can be easily accomodated in yesterday's browsers with a minimum of fuss.

The Javascript code starts like this. You define the colordepth and then determine if it is limited to 256 (2 to the eight power) colors.

var color=screen.colorDepth;
if (color

Related Articles

Know when your website goes down?
Sign up for a 30 day free trial account!

 


Home - Sign Up - How Does it Work? - Services - Pricing
Screenshots - Frequent Questions - About Us

© 2005-2007 Uptime Auditor | articles | terms of service | privacy policy | contact us :: everyone is important :: easy employee scheduling