Re: Question on JavaScript, <button> and using image
by Andrej Kostresevic <temporalassassin(at)yahoo.com>
|
Date: |
Thu, 3 May 2001 13:10:26 -0700 (PDT) |
To: |
Katherine E Dungan <kedungan(at)jcpenney.com>, hwg-languages(at)mail.hwg.org |
In-Reply-To: |
jcpenney |
|
todo: View
Thread,
Original
|
|
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