Jump to content

Navigation use of hover and Javascript


antpower26

Recommended Posts

Hi, I'm building a site and using image replacement, for the navigation, as opposed to using some CSS.

In the sites current condition, the image replaces the original image using onmouseover and onmouseout events to create the hover. On the page that that website is on

There is no onmouseout, so once hovered the image replacement sticks.

However I don't think this is robust enough, as the hover states done with these events, won't naturally activate when that page is active, if the mouse doesn't hover.

Does anyone have any better ideas? I'm definately sticking with replacement images, is there are a good JavaScript program, that can activate the image replacement on hover and on active.

Thanks

Ant

 

Ps Merry Xmas

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...