Why, when you hover only on the first item, is the close icon displayed? Where is the mistake?
trooble.ru/test.php
<script> $(document).ready(function(e) { $('#msg').hover(function(e) { $('#msg a').show(); }, function(e) { $('#msg a').hide(); }); $('#msg a').click(function(e) { $('#msg').detach(); }); }); </script>