<!--MOVING POP-UP--> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2002, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- function movingWin() { CW=window.open('moving.html','NewWin','toolbar=no,menubar=no,location=no,resizable=no,status=no,width=350,height=135,scrollbars=no') // change the figures of width and height above to customize the size of the window to be opened. CW.moveTo(10,10); // change the numbers in the brackets on the left to first open the pop-up in the desired position // these co-ordinates should be in sync with the co-ordiantes in the pop-up window as explaned below } // --> </script> <!-- This goes in the BODY of the html file --> <a href="javascript:movingWin();">Click</a> to open small window. <!-- ======================================================================================= --> <!-- This goes in the HEAD of the html file that shall be the moving pop-up --> <!-- This file should be named 'moving.html' --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2002, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- var mov1 = 1; // the number on the left is the x co-ordinate var mov2 = 1; // the number on the left is the y co-ordinate // users can adjust the numbers to move the pop-up in different directions function moveWin() { mov1++; // change the ++ on the left to -- in order to make the pop-up scroll backwards mov2++; moveTo(mov1,mov2); SD=window.setTimeout("moveWin();", 10); // the movement of the pop-up can be speeded up or // slowed down by changing the number 10 in the round // brackets on the left. the higher the number the // slower the movement if (mov1==200) { window.clearTimeout(SD); } // the movement of the window can be stopped at any // given place by changing the number 200 in the // round brackets on the left } // --> </script> <!-- This is the script to be included in the BODY tag --> <!--Note the addition to the BODY tag--> <body onLoad="moveWin();">