I am currently working on a project which needs some special navigation. I designed my
menu-header correctly. Now I want to add one image for each
menu-item. But how can I add the JS I need to one specific menu-item? These items get arrayed, so I don’t have the complete code within my theme.
Is there a way to do this?
FYI: I have five menu-items and each of these needs a different image to display. I did setup classes for each image with
display: none; so that the JS can turn it into
display: block; as you hover the menu-item.
I hope you get my point. Please let me know, if you have ideas...