Re: BUTTON element (fwd)

Dave Raggett (dsr@w3.org)
Mon, 28 Jul 1997 09:20:00 -0400 ()


Date: Mon, 28 Jul 1997 09:20:00 -0400 ()
From: Dave Raggett <dsr@w3.org>
To: MegaZone <megazone@livingston.com>
cc: www-html@w3.org
Subject: Re: BUTTON element (fwd)
In-Reply-To: <199707260130.SAA09959@server.livingston.com>
Message-ID: <Pine.WNT.3.95.970728091444.-148885H-100000@holly>

On Fri, 25 Jul 1997, MegaZone wrote:

> >>   <INPUT TYPE=image SRC="buttonup.gif" PRESSED="buttondn.gif">
> 
> The two image problem was menitoend (when do they load?  What if they
> are different sizes?  etc...)
> 
> How about this:
> 
> <INPUT TYPE=image SRC="buttonup.gif" PRESS>
> 
> This just does what the BUTTON element does. Same image, but
> rendered with that psuedo beveled effect for the look of being
> pressable. 

The HTML working group opted for the BUTTON element when you want
this effect, e.g.

  <BUTTON type=submit><IMG src=button.gif></BUTTON>

Another possibility was to support the SRC attribute with the
INPUT element and type=button, e.g.

  <INPUT type=button value="Order Now!" src="ordernow.gif">

But this approach was regarded as being less flexible than the
BUTTON element which permits richer button content.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2521 (office) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)