<div id="home">
<div id="logo"> </div>
<div id="foot"> <div class="button"> CLICK ME</div>
<div class="button two"> CLICK ME</div> </div>
</div>
<div id="show">
TEST TEST TEST TEST
</div>
$('.button').click(function(){
$('#show').show();
})
#home {
width: 400px;
height: 400px;
background-color: #ccffff;
}
#logo {
width: 100%;
height: 300px;
background-color: #0099ff;
}
#foot {
width: 100%;
height: 100px;
background-color: #009999;
}
.button {
width: 90px;
height: 30px;
background-color: red;
margin-left: 50px;
}
私はGREEN、その後.SHOWこの非表示の外側をクリックした場合、私はその後、GREENは赤いボタンの上に私を見る.SHOW .button REDをクリックした場合、私はしたいと思います。ショー隠されたdivの
LIVE:http://jsfiddle.net/YeE4p/1/
:http://jsfiddle.net/neilheinrich/YeE4p/6/
は、私は絶対に配置する#show div要素を変更し、このJavaScriptを使用していました。おそらく明快にあなたの質問を編集する? –
私はstackoverflowと同じようにしたいです - トップページにニックネームをマウスオーバーする場合 –
それを示すためにあなたの質問を編集してください。 –