<div class="codetitle"> <span><a style="CURSOR: pointer" data="99848" class="copybut" id="copybut99848" onclick="doCopy('code99848')"><u>复制代</u></a></span> 代码如下:</div> <div class="codebody" id="code99848"> <br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <BR><html xmlns="http://www.w3.org/1999/xhtml"> <br> <br><title></title> <br><style type="text/css"> <br>#img1 <br>{ <br>幅: 500px; <br>高さ: 400ピクセル; <br>ボーダー: 実線 1px #ccc; <br>表示:なし; <br>} <br></style> <br><script src="jquery-1.9.1.js" type="text/javascript"></script> <br><script type="text/javascript"> <br>変数カウント = 0; <br>$(function () { <br>$('#Button1').click(function () { <br>if (count % 2 != 0) { <br>$('#img1'). Hide(5000); <br>} <br>else { <br>$('#img1').show(5000); <br>} <br>}) <br>}) <br></script> <br></head> <br> <br><form id="form1" runat="server"> <br><div> <br><img id="img1" src="images/1.jpg" /> <br><input id="Button1" type="button" value="点我看看" /> <br> </div> <br></form> <br></body> <br></html> <br><br> </div>