[NTLUG:Discuss] Linux, Perl, CGI, Background attribute...

Fred James fredjame at concentric.net
Tue Jul 17 16:07:57 CDT 2001


Page source looks like this:
(code omitted)
	<BODY BACKGROUND="../path/image.jpg">
(code omitted)
and it doesn't work, though the this one for color does:
(code omitted)
	<BODY BGCOLOR="orange">
(code omitted)

MadHat wrote:
> 
> At 12:55 PM 7/17/2001 -0500, you wrote:
> >The HTML BODY tag attribute BACKGROUND, points to the url of a graphic
> >file to use as the (tiled) background for the page.
> >
> ><BODY BACKGROUND="url">
> >
> >I have this to working in an *.HTML file, But I have not been able to do
> >so in a Perl *.cgi file, with or without the CGI.pm
> >
> >Any pointers would be appreciated.
> 
> when you views the source what do you see?  How are you trying to use it in
> the CGI?
> 
> print "<BODY BACKGROUND=\"url\">\n";
> 
> or
> 
> use CGI qw/:standard/;
> print start_html(-title=>'test page',
>                   -body=>{-background=>'url',
>                           -bgcolor=>'white'});
> 
> >--
> >...make every program a filter...
> >_______________________________________________
> >http://www.ntlug.org/mailman/listinfo/discuss
> 
> --
> MadHat at unspecific.com
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss

-- 
...make every program a filter...



More information about the Discuss mailing list