»
Tiếng AnhTiếng PhápTiếng Việt

In - Cửa sổ bay từ 4 hướng - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Trình duyệt » Cửa sổ » Cửa sổ bay từ 4 hướng
URL: https://www.javascriptbank.com/window-scroller.html

Cửa sổ bay từ 4 hướng © JavaScriptBank.comHiệu ứng tạo một cửa sổ di chyển từ bốn hướng vào trung tâm màn hình.

Phiên bản đầy đủ: jsB@nk » Trình duyệt » Cửa sổ » Cửa sổ bay từ 4 hướng
URL: https://www.javascriptbank.com/window-scroller.html



CSS
<STYLE>BODY {OVERFLOW: scroll; OVERFLOW-X: hidden; OVERFLOW-Y: hidden}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language=javascript>function WinScroll(direction,xWidth,xHeight){if ((navigator.appVersion.indexOf('4')!= -1)){self.resizeTo(xWidth,xHeight)if (direction == 1){ //Upself.moveTo((screen.availWidth-xWidth)/2,screen.availHeight-10)for (var c=1; c<=(screen.availHeight-(-xHeight))/2; c++)self.moveTo((screen.availWidth-xWidth)/2,screen.availHeight-c)}if (direction == 2){  //Downvar x=screen.availHeight+screen.Heightself.moveTo((screen.availWidth-xWidth)/2,(screen.availHeight-x))for (var c=0; c<=(screen.availHeight-(-xHeight/2)); c++)self.moveTo((screen.availWidth-xWidth)/2,(screen.availHeight-x)+c)}if (direction == 3){  //leftvar x=screen.availWidth-10self.moveTo(x,(screen.availHeight-xHeight)/2)for (var c=1; c<=(x-(-xWidth))/2; c++)self.moveTo((x-c),(screen.availHeight-xHeight)/2)}if (direction == 4){ //Rightvar x=screen.availWidth+(xWidth-10)self.moveTo((screen.availWidth-x),(screen.availHeight-xHeight)/2)for (var c=1; c<=(screen.availWidth-(-xWidth))/2; c++)self.moveTo(((screen.availWidth-x)+c),(screen.availHeight-xHeight)/2)}}}for (c=1; c<=4; c++) WinScroll(c,400,400)</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<INPUT onclick="location.href='http://javascriptbank.com'" onmouseout="window.status='© javascript'; return true" onmouseover="window.status='Bring you to JavaScriptBank.com'; return true" title="   Bring you to JavaScriptBank.com   " type=button value="   Bring you to JavaScriptBank.com   "><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->