Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > button with image

Reply
Thread Tools

button with image

 
 
Pascal Schmidt-Volkmar
Guest
Posts: n/a
 
      04-12-2004
Hi there,

I am using the following code to create a button with an image on it.
Unfortunately, the button is still visible. I would like the button to
vanish underneath the image, so the image will only be seen. Is that
possible?

<button name="FirstRecord" type="button"

value="First"
onClick="self.location.href='http://desktop/myisapi/biolifesingle.dll/ShowRe
cord?No=2&Aussage=false'">

<p><img src="http://desktop/myisapi/first.jpg" width="87" height="37"
border="0" alt="Erster Datensatz"><br>

</p>

</button>

Thanks for any hint,

Pascal


 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      04-12-2004
"Pascal Schmidt-Volkmar" <> wrote:

> I am using the following code to create a button with an image on it.


Use a normal submit button instead. Form follows function.

> Unfortunately, the button is still visible.


Well, you just said the purpose was to create a button...

> I would like the button
> to vanish underneath the image, so the image will only be seen.


Forget the image idea - use images in document content to help convey
your message, not to obscure the user interface.

> <button name="FirstRecord" type="button"


The <button> element is poorly supported (the "implementation" on IE is
particularly miserable), and using type="button" means that you create
something that may (or may not) look a bit like a button but does not do
anything unless the user has forgot to disable scripting.

> onClick="self.location.href='http://desktop/myisapi/biolifesingle.dll/
> ShowRe cord?No=2&Aussage=false'">


Is that supposed to do something?

Replace it by a link (it looks like you might actually be trying to
create a complicated, expensive and fundamentally broken plastic
imitation of a link, but maybe this is just the impression caused by the
lack of a real URL) or by a submit button in a form with suitable other
fields (probably including some hidden fields).

> <p><img src="http://desktop/myisapi/first.jpg" width="87" height="37"
> border="0" alt="Erster Datensatz"><br>


There _is_ a way to set up an image submit button, but a) this isn't it,
and b) it's mostly pointless or worse anyway. Before saying with 100%
certainty that your current approach is a wrong solution, I would like to
see the problem (I mean the real problem, with a URL, not just snippets
of HTML or quasi-HTML markup).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
 
 
 
Whitecrest
Guest
Posts: n/a
 
      04-12-2004
In article <Xns94C9B05ACAF82jkorpelacstutfi@193.229.0.31>,
says...
> There _is_ a way to set up an image submit button, but a) this isn't it..


Why can't you just make this easy like before?

From: Jukka Korpela ()
Subject: Re: Custom Submit button
Newsgroups: comp.infosystems.www.authoring.html

....For an image submit button, you can suggest a rollover behavior - the
image changes from, say, send.gif to go.gif on mouseover and changes
back when the mouse moves out - as follows:

<input type="image" src="send.gif"
name="Send" value="Send" alt="Send"
onmouseover="this.src='go.gif'"
onmouseout="this.src='send.gif'">

So the answer is yes, you can do it like this, and here is a bonus if
you want rollovers...

--
Whitecrest Entertainment
www.whitecrestent.com
 
Reply With Quote
 
Davmagic .Com
Guest
Posts: n/a
 
      04-12-2004

>From:
>(Whitecrest)
><input type="image" src="send.gif"
>name="Send" value="Send" alt="Send"
>onmouseover="this.src='go.gif'"
>onmouseout="this.src='send.gif'">


I tried that code and it works fine on IE5+, NN7+ but when used on the
current (Out-Dated) version of MSNTV it fails to work... ho hum...

So, if anyone out there (probably none) wants a JS Image Submit Rollover
code that will work on IE5+, NN7+ and MSNTV... look here (it's a bit
more complex): http://www.htmlcodetutorial.com/forms/

Here's one of my pages where I use it:
http://davmagic.com/info/PAGES71.html

Web Design, Magic, Painting, Junking, More
http://www.davmagic.com
Paint A House
http://www.paintahouse.com
NOTE: This emailbox is CLOSED do NOT reply!!!

 
Reply With Quote
 
Whitecrest
Guest
Posts: n/a
 
      04-12-2004
In article <6712-407AD7CB->,
says...
> I tried that code and it works fine on IE5+, NN7+ but when used on the
> current (Out-Dated) version of MSNTV it fails to work... ho hum...


I am interested, how small a subset of web sites actually work with
WebTV? (your personal guess/experience is fine for the number)
--
Whitecrest Entertainment
www.whitecrestent.com
 
Reply With Quote
 
Kim André Akerĝ
Guest
Posts: n/a
 
      04-12-2004
"Whitecrest" <> skrev i melding
news:...
> In article <6712-407AD7CB->,
> says...
> > I tried that code and it works fine on IE5+, NN7+ but when used on the
> > current (Out-Dated) version of MSNTV it fails to work... ho hum...

>
> I am interested, how small a subset of web sites actually work with
> WebTV? (your personal guess/experience is fine for the number)


I'd say about one or two out of several million. And that's mainly just
those who specifically design for the WebTV browser.

--
Kim André Akerĝ
-
(remove NOSPAM to contact me directly)


 
Reply With Quote
 
Davmagic .Com
Guest
Posts: n/a
 
      04-12-2004

>From:
>(Whitecrest)
>I am interested, how small a subset of
>web sites actually work with WebTV?
>(your personal guess/experience is fine
>for the number)


Actually most sites work... it's when designers use CSS for positioning,
that the sites are not completely "viewable"... in addition to many
financial sites that use updated code that the current MSNTV browser
does not support...

MSNTV has a "New" box in the works... no one really knows what it will
be capable of doing when they release it (in bata now), but my hopes are
that they spend more time updating the browser side and less time with
the tv side...

I use a PC for all my design work but I still enjoy the "convience" of
the box browser platform... laid-back on the recliner surfing away...

Web Design, Magic, Painting, Junking, More
http://www.davmagic.com
Paint A House
http://www.paintahouse.com
NOTE: This emailbox is CLOSED do NOT reply!!!

 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      04-12-2004
Davmagic .Com wrote:

> I tried that code and it works fine on IE5+, NN7+ but when used on the
> current (Out-Dated) version of MSNTV it fails to work... ho hum...


WebTV is an interesting beast.

Did you know that WebTV (and the WebTV simulator) has full alpha support
for PNG images? It's quite crazy really -- Microsoft didn't consider it an
important enough feature to include in IE/win, but they put it in WebTV
(and also in IE/mac, although only for foreground images).

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Pascal Schmidt-Volkmar
Guest
Posts: n/a
 
      04-12-2004
Hi there,

the customer only uses IE so there won't be a problem. This code snippet
actually does its work but it lokks ugly.

I do need an image where you could click on and it will call the specific
dll as I wrote. How to do so??

Pascal


 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      04-12-2004
On Tue, 13 Apr 2004 00:24:24 +0200, Pascal Schmidt-Volkmar
<> wrote:

> Hi there,
>
> the customer only uses IE so there won't be a problem.


The customer? Only one customer?

Kinda hard to justify a whole website...

> This code snippet
> actually does its work but it lokks ugly.


What code snippet? You replied to a discussion of WebTV.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
image button as a back button Chicagoboy27 ASP .Net 2 10-30-2006 05:00 PM
Changing a HTML submit button that requests a Servlet, to an image button? How? James Storey via JavaKB.com Java 7 04-08-2005 06:10 PM
wx.Image: Couldn't add an image to the image list. Laszlo Zsolt Nagy Python 1 01-26-2005 09:55 PM
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
Image button acting like submit button. Russell ASP .Net 3 06-24-2004 01:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57