RE: Question on JavaScript, <button> and using image
by "Charlton, Mark" <Mark.Charlton(at)saint-gobain.com>
|
| Date: |
Thu, 3 May 2001 17:13:46 -0400 |
| To: |
"'Andrej Kostresevic'" <temporalassassin(at)yahoo.com>, Katherine E Dungan <kedungan(at)jcpenney.com>, hwg-languages(at)mail.hwg.org |
| |
todo: View
Thread,
Original
|
|
I could be wrong, (and I'm sure you willl tell me if I am), but I didn't
think an image supported onClick, and if it does, not in many browsers.
I tend to use
<.a
href="javascript:launch('http://sdstest.jcpenney.com/dns/TestPop.html')"><.i
mg src="http://sdstest/dns/helphand.gif" border='0'></a>
Regards
-----Original Message-----
From: Andrej Kostresevic [mailto:temporalassassin(at)yahoo.com]
Sent: Thursday, May 03, 2001 4:10 PM
To: Katherine E Dungan; hwg-languages(at)mail.hwg.org
Subject: Re: Question on JavaScript, <button> and using image
This should work:
<img src="button.gif"
onClick="launch('http://sdstest.jcpenney.com/dns/TestPop.html')">
--- Katherine E Dungan <kedungan(at)jcpenney.com> wrote:
> >
>
> The system I am working on is actually written in Java. It
> generates HTML pages that require input.
> The question/problem I am having is I want to add a pop up help window
> on the client side (without returning to the server) and would like to
> use an animated gif as the button. I
> inserted the '.' in the following code
> for printing reasons. They do not exist in the actual code.
>
> I can get the following to work:
> <.INPUT TYPE="Button" NAME="Button" VALUE="HELP"
> onClick="launch('http://sdstest/dns/TestPop.html') ";
>
> However, that is just a plain old gray button.
>
> The code I am UNable to get to work is
> <.BUTTON TYPE="BUTTON" NAME="Button" VALUE="Button"
> onClick="launch('http://sdstest.jcpenney.com/dns/TestPop.html')"><.img
> src="http://sdstest/dns/helphand.gif"
> border="no"><./BUTTON>
>
>
> The javascript code :
>
> function launch(url)
> {
> remote = open(url,"HELP","scrollbars,status,width=200,height=300");
> }
>
> --
> Have a wonderful day,
>
> Katherine Dungan
>
> email : kedungan(at)jcpenney.com
>
>
=====
/***********************************
Andrej Kostresevic
Project manager, Senior Developer
~~~~~~~~~~~~Strashev~~~~~~~~~~~~
Consulting, Design & Development
***********************************/
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.