»
EnglishFrenchVietnamese

Print - Window Mover - JavaScriptBank.com

Full version: jsB@nk » Browser » Window » Window Mover
URL: https://www.javascriptbank.com/window-mover.html

Window Mover © JavaScriptBank.comOpens up a second small window and moves the window around in a circular fashion.

Full version: jsB@nk » Browser » Window » Window Mover
URL: https://www.javascriptbank.com/window-mover.html



JavaScript
<SCRIPT><!--//  var mx=5  var my=5function movewindow(){  if (self.screenLeft + document.body.clientWidth > screen.width) mx=-5  if (self.screenLeft < 0) mx=5  if (self.screenTop + document.body.clientHeight> screen.Height - 20) my=-5  if (self.screenTop < 0) my=5  window.moveBy(mx, my)  setTimeout("movewindow()",100)//  movewindow()}--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload="movewindow();"></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->