3 replies [Last post]
Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 5 years 46 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

I ran across a site at work the other day that one of the designers used a .TXT file as the background image and it actually rendered out. If I tried to view the background it told me to download it, so I did and it's all in gibberish.

how does this work?
why does this work?
is this a horrible thing to do?
is there a reason to ever do it?

All the main questions that come along with it.

I tried to Google it but I keep coming up with converting Text to PNG, PDF, etc spam crap-ware.

Any help or information would be appreciate.

Thanks!!

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Triumph (not verified)
Anonymous's picture
Guru

Did it have a mime-type

Did it have a mime-type attributed to it? image/png?

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 years 13 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Was this viewable in IE? IE

Was this viewable in IE? IE will sniff the file's apparent type and ignore the mime-type. I've not seen it with images, but you just flat cannot view a text file version of an html page.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Tom L
Tom L's picture
Offline
Enthusiast
Liverpool
Last seen: 12 years 7 weeks ago
Liverpool
Timezone: GMT+1
Joined: 2005-09-23
Posts: 91
Points: 2

Got a link Deuce?

Got a link Deuce?