The Daily Click ::. Forums ::. Non-Klik Coding Help ::. Html/Java buttons
 

Post Reply  Post Oekaki 
 

Posted By Message

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
7th May, 2005 at 20:38:27 -

Ok I've got a picture with a hyperlink in it. How when I click the button, I want the picture to change to something else, and also want to update another frame which the button is not in.
Anyone know how to do this?
Btw, in case anyone cares, this is for the Splinter Source 2 website.

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
8th May, 2005 at 04:52:59 -

To update another frame, I think in the "a" tag you have to specify the attribute target="name", where name is the name of your frame. I'm not sure about changing the picture, though.

 
http://www.davidn.co.nr - Games, music, living in America

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
8th May, 2005 at 11:31:15 -

A simple rollover script is:

< img src="whatever.gif" onMouseOver="this.src='rollover.gif'" onBlur="this.src='whatever.gif'" >

 
www.thenatflap.co.uk

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
8th May, 2005 at 20:05:51 -

nevermind guys, i figured it out.

http://www.dkdproductions.com/iron_nail

check back soon for screens and shit.

*edit*
Splinter Source 2 is now under a new name: "Iron Nail"

Image Edited by the Author.

 
n/a

guri-n ha



Registered
  16/04/2005
Points
  245
12th May, 2005 at 05:04:35 -

it's really easy to do java buttons under MS Frontpage. You just add the images and the rest is done with it's built in code.

 
n/a

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
12th May, 2005 at 07:48:01 -

But they're Java buttons, and you can do it much easier with JavaSCRIPT

 
n/a

guri-n ha



Registered
  16/04/2005
Points
  245
12th May, 2005 at 08:21:10 -

but javascript isn't good with gfx.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
12th May, 2005 at 08:25:21 -

JS is fine with graphics. The browser handles it.

 
n/a

Cybermaze



Registered
  03/04/2003
Points
  853
12th May, 2005 at 09:30:16 -

Java applet would be overkill when you can do JS.

 
If you knew, I would have to kill you...

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
13th May, 2005 at 08:23:32 -

Java applets for simple rollover buttons are one of the most annoying things ever.

 
www.thenatflap.co.uk
   

Post Reply



 



Advertisement

Worth A Click