|
Posted by Ed Jay on 11/01/05 06:25
"Jonathan N. Little" <lws4art@centralva.net> wrote:
>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;
Thanks. You introduced me to the world of Perl modules. I had no idea...
--
Ed Jay (remove M to respond by email)
Navigation:
[Reply to this message]
|