On Tue, 20 Jan 2004 16:43:50 -0800, Adrian <ad****@nocrapplease.ascc.com>
wrote:
That worked great, thanks. I should have mentioned but I need to do it
with type="image" and it does not work the same. Any work arounds?
You could do one of two things.
1) Name the buttons differently. You could then check for the presence of
either name, rather than one name and two different values[1].
2) Use the BUTTON element, and place an IMG element inside it. This will
keep the standard functionality, but it is rendered horribly by Internet
Explorer. By contrast, it looks quite nice in Opera, and the button can be
styled so that you can't even see it (IE ignores the same styling). I
don't know how it will look in Mozilla and Netscape, but probably a lot
better than IE.
Mike
[1] As you've probably found, you'll get name/value pairs of the form
"name.x=nn" and "name.y=nn" where "nn" is the co-ordinates of the click,
and "name" is the name of the control.
--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)