javascript mouseover and on.click

They have: 677 posts

Joined: Mar 1999

On this site I'm making http://www.21studios.com/paidwebsites/tylerharpool/mouse.htm
I dont want the mouseover to happen, i want the second image of this (mouseover) to happen when the first one is clicked. But i cant find anywere were this is made from javascript, so i figured you guys might be of help.
(Image1 is displayed)
(Image1 is Clicked, Then Image2 is Displayed)
(Image2 Stayed Until the New Page Loads)
This is what i want.
Thanks for all the help..
--------------
Ken Prescott http://www.21studios.com

Ken Prescott

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Okay, here's the deal! It's the same idea, but instead of onMouseOver, use onClick as the event that triggers the function... Don't use onMouseOut to restore the image. That's all.

(Image1 is displayed) (has onClick="function()" in the <a> tag)

(Image1 is Clicked, Then Image2 is Displayed) (i.e. the function happens)

(Image2 Stayed Until the New Page Loads) (the function is a straight image swap, nothing else will happen).

SO...

<a href="whatever.html" onClick="imageChange('imagename','imagesource')"><img src="image1.gif" name="imagename"></a>

See?

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 677 posts

Joined: Mar 1999

Yeah, I just got that done, i had to figure it out on my own : )... But it works.. Thanskf or the help.
------------
Ken Prescott http://www.21studios.com

Ken Prescott

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.