Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover link - highlight area, and vice versa. #133

Closed
boboz opened this issue May 8, 2013 · 4 comments
Closed

Hover link - highlight area, and vice versa. #133

boboz opened this issue May 8, 2013 · 4 comments

Comments

@boboz
Copy link

boboz commented May 8, 2013

Hi!

I have an image and a simple text menu.

When hovering an area of the image, I'd like the corresponding menu item to highlight (as in hover) and when hovering a menu item, I'd like the corresponding image map area to highlight.

I've set up a simple fiddle to illustrate the problem: http://jsfiddle.net/tqpFU/23/

How would I go about it?
Thank you.

@ruhley
Copy link

ruhley commented May 9, 2013

Hey boboz,

I encountered something like this for my project. Here is a quick modification of your code. http://jsfiddle.net/V7NY9/1/

@boboz
Copy link
Author

boboz commented May 12, 2013

Hey ruhley!

Immensely grateful for your help!
After some further modifications I got the desired behaviour. http://jsfiddle.net/Tr4hE/2/

Big Thanks!

@ruhley
Copy link

ruhley commented May 13, 2013

No worries. One minor improvement that could be made is that the jquery function hover can take two parameters. So you should be able to remove the a.mouseleave and put it as part of a.hover. See http://api.jquery.com/hover/

@boboz
Copy link
Author

boboz commented May 13, 2013

Great, thanks again.

@boboz boboz closed this as completed Jun 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants