in reply to Re^2: CGI.pm form buttons and Firefox
in thread CGI.pm form buttons and Firefox

Is that cut and pasted from the original source?

If it is, the closing parenthesis noted below needs to be removed. The img tag is printed after the anchor tag is closed - it needs to be inside the anchor.

# ============ remove this paren ================v $query->a({-href => 'http://wrights/index2.html'}), $query->img({-src => 'home.gif', -border => 0}));
BTW, with the paren removed it (CGI.pm v3.04, perl 5.8.4) prints: <a href="http://wrights/index2.html"><img border="0" src="home.gif" /></a>, which should do what you want.

Replies are listed 'Best First'.
Re^4: CGI.pm form buttons and Firefox
by Popcorn Dave (Abbot) on Apr 19, 2005 at 05:19 UTC
    Thank you! That did the trick. I had the image outside the HTML tag in the div element. Now the button isn't showing the URL reference when I hover over it.

    It's always the little things that get you. :)

    Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.
      Mmmh... Now I remember why I never use those CGI.pm html-generating functions... ;)
        In all fairness, CGI just did what I told it to do. Not it's fault. :)

        Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.