Closed Thread Icon

Preserved Topic: Image calling an event? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18466" title="Pages that link to Preserved Topic: Image calling an event? (Page 1 of 1)" rel="nofollow" >Preserved Topic: Image calling an event? <span class="small">(Page 1 of 1)</span>\

 
Dark
Neurotic (0) Inmate
Newly admitted
posted posted 12-11-2001 04:58

Is it possible to use an "image" to call a event in javascript instead of a button? or text?
Right now I have

<input type=button onClick="shake(2)" value="Shake Me!">


Jestah
Maniac (V) Mad Scientist

From: Long Island, NY
Insane since: Jun 2000

posted posted 12-11-2001 06:46

Well I've never tried it, but I don't see why :

<img src=".../images/image.jpg" onClick="shake(2)" value="Shake me!">

wouldn't work.

--------------
cheers.jay

Dark
Neurotic (0) Inmate
Newly admitted
posted posted 12-11-2001 07:35

Hey yeah that works perfect

Thanks Jestah =)

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-11-2001 07:39

That will work in IE and Mozilla but not Netscape 4.

Dark
Neurotic (0) Inmate
Newly admitted
posted posted 12-11-2001 16:28

What will work in Shitscape anyway?

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 12-11-2001 18:54

the buttons on the toolbar?


"A kleptomaniac is a person who helps himself because he can't help himself." --Henry Morgan
ICQ: 67751342

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 12-11-2001 20:13

<input type="image" src="..." ...

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 12-11-2001 21:17

<A HREF="javascript:alert('test');"><IMG SRC="blah.gif" BORDER="0"></A>


Dark
Neurotic (0) Inmate
Newly admitted
posted posted 12-12-2001 22:54

Thanks again max =)

« BackwardsOnwards »

Show Forum Drop Down Menu