I thought about if it would be possible to determine which link is hovered. Like if I hover http://google.com/ a div should pop up (display:block) and show the google logo and if I hover stackoverflow.com the stackoverflow logo and so on…
Can this be achieved with a:hover or do I have to put every link in to it’s own div?
Thanks, really much!
You can do this by assigning a listener to all
aelements.If you don’t want to do exact url matching, you can add special data attributes to your a elements and check them instead.