|
Posted by Jonathan N. Little on 10/31/05 20:30
Ed Jay wrote:
> I'm using a Perl script to generate html pages. I want to use images in
> the html page. The fundamental code I use to display an image is:
>
> print "<p><img src=\"http://www.my-site.com/image.gif\" border=1
> width=\"53\" height=\"32\" alt=\"logo\">\n";
>
> The image doesn't display.
>
> I have the same problem importing linked external style sheets and
> external javascripts.
>
Best use CGI.pm Then your code would be... I formatted it so your can
see the parts without the NG wordwrap confusing things
use "CGI";
print p(
img(
{
-href=>'http://www.my-site.com/image.gif',
-border=>1,
-width=>53,
-height=>32,
-alt=>'logo'
}
)
);
if your want it all 'prettified' with CR's and TAB's then
use CGI::Pretty;
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|