Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
divを点滅させるにはどうすればよいですか。div 要素にカーソルを合わせています。jQueryで作るにはどうすればいいですか?div が点滅し、点滅していること。そして10秒。
ありがとう
あなたが探しているのはこのようなものですか?このコードは、divを10秒ごとに表示および非表示にします。
<script type="text/javascript"> var blink = function(){ $('#blinker').toggle(); }; $(document).ready(function() { setInterval(blink, 10000); }); </script> <div id="blinker">This will blink</div>