Portfolio
Portfolio
Out of context: Reply #1
- Started
- Last post
- 7 Responses
- orrinward20
I typically do this in a pretty simple but probably inefficient way:
Give each discipline a class, such as 'branding', 'print' e.t.c.
Give each thumbnail container the classes relevant to their disciplines, and give the menu item the class as well.
Then do something like:
//THIS IS FOR MENU HOVER
$('#disciplinemenu .branding').hover(
function(){
$('#thumbnailsmenu .branding').addClass('highlight...
},
function(){
$('#thumbnailsmenu .branding').removeClass('highlig...
}
);I'd then do something similar for the reverse scenario, but with each of the disciplines as a separate function.
Not the neatest way but for someone new to jQuery it'd work a charm.