Gossamer Forum
Home : Products : DBMan : Customization :

background image

Quote Reply
background image
I did a search and could not find this out: how do I get my pages to have a background image? I have tried adding background="img.gif" to the <body > tags but it doesn't seem to do anything. I can change the background color or remove the color from this tag.

Must be something simple I'm missing.

Thanks in advance.
Phil
Quote Reply
Re: background image In reply to
Phil - You will need to use the entire URL to your background image (i.e. http://the.url.to.your/background/image)

Hope this helps !



------------------
donm
My theory on evolution is that Darwin was adopted.--Steven Wright

Quote Reply
Re: background image In reply to
Thanks, that did it!
Quote Reply
Re: background image In reply to
Actually, you don't have to use the whole URL. You can use the directory where your image is located, like the following:

Code:
/images/image.gif

If you are using the User Friendly html.pl or want to make your file more user-friendly, you can do the following:

1) Create the following variable in your default.cfg file:

Code:
$body = 'body background="/images/image.gif" bgcolor="FFFFFFF" text="000000" link="0000ff" vlink="00009c" alink="ff0000"';

2) Add this variable to your sub-routines in your html.pl file, like the following:

Code:
<$body>

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited October 12, 1999).]
Quote Reply
Re: background image In reply to
Eliot - yes, that will work in some instances but not in every case. For example, what if my html.pl is in a cgi-bin directory and my background image is in image directory outside of the cgi-bin directory?

In this instance /images/bg.gif would NOT work. I would have to use ../images/image.gif.

The ".." to back out of the cgi-bin directory and then the "/" to enter the images directory where the image.gif is stored.

This is why I always use full URL's when pointing to images that are in cgi scripts - the full URL always works.

As always I hope this helps !



------------------
donm
My theory on evolution is that Darwin was adopted.--Steven Wright

Quote Reply
Re: background image In reply to
Really, donm...That is a new one to me. I have ALWAYS used directory and image files rather than full URLS in ALL my cgi and perl scripts, and it WORKS just fine (on NT and UNIX systems).

Wink

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited October 12, 1999).]