1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
$(document).ready(function() { $("#tab a").mouseover(function() { var temp = $(this).attr("rel"); var temp2 = '"#'+temp+'"'; $(temp2).hide(); }); });
$(function(){ $("#tab a").mouseover(function(){ $("#"+$(this).attr("rel")).hide(); }); }); </script> <div id="tab"> <a href="aushaus" rel="bt">AAAAAAaa</a> <input type="button" id="bt" value="Botao" /> </div>