Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Building a Menu that shows pics

Status
Not open for further replies.

evr72

MIS
Dec 8, 2009
265
US
Hello,

I am trying to build a menu just like in this webpage
but not sure how to get started. I apologize if this is the correct place to post this.
Not looking for somebody to write the code for me, just looking to get some pointers in how to get started.

I appreciate any help. thanks!!
 
Look at the onmousever event and the src attribute of whichever image element you want to target.


Code:
<a href="" onmouseover="document.getElementById('imgtargetID').src="path/to/img.jpg">...</a>


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
that would change the image when you hover over the botton correct?
But when there is nothing going on the images change by themselves?
 
that would change the image when you hover over the botton correct?
Correct.

But when there is nothing going on the images change by themselves?

Nope. That would be a different thing. You could probably get the same effect using the settimeout() function.





----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top