You are here: Re: Image presentation via Perl script « HTML « IT news, forums, messages
Re: Image presentation via Perl script

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация