マウスをその上に置いたときにタグを非表示にして表示したいのです<p>
が、私のコードではタグを非表示にすることしかできずp
、二度と表示することはできません。なぜですか?
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script>
$(function(){
$("#mouse").mouseover(function(){
if($(this).is(':hidden')){
$(this).show("normal");
}
else{
$(this).hide("slow");
}
});
});
</script>
</head>
<body bgcolor="white">
<p id="mouse">
test
</p>
</body>
</html>