background image in body tag

E

Eric

Can i do this?

<body background="GetImage.cgi" bgcolor="gray" onLoad="UpdateClocks();" >

With GetImage.cgi just sending back the bytes of the particular image file i
want? will cgi override the bgcolor?
Anything special needed in the cgi (if i can do this)?

Thanks
Eric
 
D

David Dorward

Eric said:
<body background="GetImage.cgi" bgcolor="gray"

Background images and colours should be handled by CSS, not HTML.
With GetImage.cgi just sending back the bytes of the particular image file
i want? will cgi override the bgcolor?

A URL that returns an image file is a URL that returns an image file. How
the server gets its data is immaterial to the client.
Anything special needed in the cgi (if i can do this)?

No. (Although you obviously need to send the correct content-type headers,
and probably want to set cache control headers so the user doesn't have to
repeated download the image).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top