All,
<html>
<ul class="menu">
<li>
<a href="">Header</a>
<ul class="submenu">
<li><img src=""/> Link 1</li>
<li><img src=""/> Link 2</li>
</ul>
</li>
</ul>
</html>
Can the code be changed such that link1 and link2 will appear on mouse over….
With CSS or with JS?
Here with CSS:
But this probably does not work in IE6 and lower (thanks Andy E) as the don’t allow the
:hoverpseudo selector with other selectors thana.There are better approaches but as your question is not very specific, this is my solution.
Edit:
This would be
Reference.
Be aware that this might not work with every browser. But you’ll find plenty information which CSS elements are supported by which browser in the internet.