<style type="text/css"> #leaf,#leaf:before{background:url(sprite.png)} #leaf{position:relative} #leaf:before{content:'\0020';position:absolute;top:0;left:0;display:none} </style> <ul id="menu"> <li id="leaf"><a href="#">Link</a></li> </ul> <script type="text/javascript"> $(document).ready(function () { $('.min-nav li').hover({ </script>
Of course, this could also be done using CSS3 instead of jQuery. This is exactly what the guys are doing from the site you are connected to.
source share