Post by Tallest MEL on Apr 14, 2004 20:49:25 GMT -5
Because of the way web browsers interpret color information, specifying "crap" as the background color will actually make your web page have a brown background. Grossness on the programmer's part? Not quite. The browser actually has no idea what color "crap" is, but it guesses you typed in some screwed up hex code for a color and left off two numbers (it assumes those are 00) and the # in front. It knows that R and P aren't in the hex number system (for those who don't know, counting in hex is 0123456789ABCDEF), so it assumes they're zeroes. So in the end, the browser guesses "crap" is actually "#C0A000". The result? Brown. Wanna try it? Copy both of the following lines (separately, of course) and paste them into the address bar of your favorite browser (in a new window, preferably on a blank page):
javascript:void(document.bgColor="crap" );
javascript:void(document.bgColor="#c0a000" );
People have actually spent time trying to find all sorts of colors for words. For example "Sonic" (#0000C0) comes out blue. Just for fun, I came up with the colors for common words used around here:
Invader Zim = #00DE00 = Green
Tallest Red = #0AE00E = Green
Tallest Purple = #A00000 = Red
Dib = #0D000B = Kinda black (really dark purple)
Gaz = #000A00 = Kinda black (really dark green)
Ms. Bitters = #00B0E0 = Cyan
Doom = #D00000 = Red
Earthworm Jim = #EA0000 = Red
Peter Puppy = #E00000 = Slightly darker shade of red
Princess What's-Her-Name = #0000E0 = Blue
Queen Slug-For-A-Butt= #0E00A0 = Blue
Professor Monkey-For-A-Head = #FE00A0 = Fuchsia
Psy-Crow = #00C000 = Green
Evil The Cat = #E0000C = Red
Henchrat = #0EC0A0 = Cyan
Bob The Killer Goldfish = #B00000 = Red
Number 4 = #00BE04 = Green
Cow = #0C0000 = Kinda black (really dark red)
Hamsternator = #0A0EA0 = Blue
Before you get tempted to use these in your web pages, the colors won't look the same in all browsers. The colors I've shown here are the ones that show up in Internet Explorer.
javascript:void(document.bgColor="crap" );
javascript:void(document.bgColor="#c0a000" );
People have actually spent time trying to find all sorts of colors for words. For example "Sonic" (#0000C0) comes out blue. Just for fun, I came up with the colors for common words used around here:
Invader Zim = #00DE00 = Green
Tallest Red = #0AE00E = Green
Tallest Purple = #A00000 = Red
Dib = #0D000B = Kinda black (really dark purple)
Gaz = #000A00 = Kinda black (really dark green)
Ms. Bitters = #00B0E0 = Cyan
Doom = #D00000 = Red
Earthworm Jim = #EA0000 = Red
Peter Puppy = #E00000 = Slightly darker shade of red
Princess What's-Her-Name = #0000E0 = Blue
Queen Slug-For-A-Butt= #0E00A0 = Blue
Professor Monkey-For-A-Head = #FE00A0 = Fuchsia
Psy-Crow = #00C000 = Green
Evil The Cat = #E0000C = Red
Henchrat = #0EC0A0 = Cyan
Bob The Killer Goldfish = #B00000 = Red
Number 4 = #00BE04 = Green
Cow = #0C0000 = Kinda black (really dark red)
Hamsternator = #0A0EA0 = Blue
Before you get tempted to use these in your web pages, the colors won't look the same in all browsers. The colors I've shown here are the ones that show up in Internet Explorer.