[Zope] background picture

Geir B Hansen Geir B Hansen <geirh@funcom.com>
Thu, 23 Dec 1999 09:53:21 +0100


on 22. desember 1999 Roland Schopp wrote :
RS> Dear Zopeistas,

RS> has anybody managed to get a background picture on his site that is served
RS> by zope ?

RS> I want a <body background=<dtml somewhat> >.

RS> My last try was to save the image as a simpe file and say
RS> <body background=<dtml var filename>>

RS> Then i got the data of the GIF-Image as Characters. Of course i have to tell
RS> the browser that there is an image to come. But how ???

ought to work if you use
<body background="filename">

<dtml-var filename> returns a full <img src=".. tag when 'filename is
an image.
Check the source of the generated html.. probably looks like this the
way you made it :
<body background="<img src="filename">> or something similar..
You do not have to tell the browser there is an image coming. <body
background="" does that just fine


--
Geir B Hansen
web-developer/designer
geirh@funcom.com
http://www.funcom.com