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<=8) {
…..
}
You can then write out the style sheet using the document write technique; or for a larger site you can use this simple code and import the style sheet(s) by placing a Javascript compatible link tag code inside a document write tag.
I have made an online demonstatrion to show how this is currently feasable with the current JavaScript technology. It is endlessly modifiable and can easily be adapted you site’s needs. If you are having problems with this issue, stop on by and see if this solution is right for you.
http://www.geocities.com/overlord_77520/national_security_colors.html
Duke the Coward is dedicated to the education of Business and Investment reality abroad. Visit his site on education and innovative ideas for your business at http://www.geocities.com/overlord_77520/












Sorry, the comment form is closed at this time.