[Game] jQuery Tetris (JavaScript 版俄羅斯方塊)
[jsg.example]<script type="text/javascript">
function iframefocus() {
document.body.scroll = 'no';
window.scrollTo(0, 185);
}
function iframeblur() {
document.body.scroll = 'yes';
}
document.body.onclick = function() {
document.body.style.overflow = 'auto';
}
</script>
<iframe src="_lib/jquery/Tetris/tetris.html" width="515" height="480" frameborder="0" scrolling="no" onfocus="iframefocus()" onblur="iframeblur()"></iframe>
<style>
body {overflow: hidden}
</style>
[/jsg.example]
[color=magenta]PS. 為了遊戲順暢,本網頁預設不能往下捲動,您必須先用滑鼠點到遊戲區塊之外的地方後才能解除。[/color]
[img]http://jsgears.com/_icons/famfamfam/folder.gif[/img] Tetris with jQuery
[img]http://jsgears.com/_icons/famfamfam/icon_home.gif[/img] [url]http://fmarcia.info/jquery/tetris/tetris.html[/url]
[img]http://jsgears.com/_icons/famfamfam/comment.gif[/img] 用 jQuery 寫的俄羅斯方塊!
頁:
[1]