<!-- SCROLLING POP-UP - II --> <!-- 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 scrollingWin() { if (navigator.appName == "Microsoft Internet Explorer") { CW=window.open('scroll.html','NewWin','toolbar=no,menubar=no,location=no,resizable=no,status=no,width=350,height=135,scrollbars=no') } else { CW=window.open('scroll.html','NewWin','toolbar=no,menubar=no,location=no,resizable=no,status=no,width=350,height=135,scrollbars=yes') } // 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:scrollingWin();">Click</a> to open small window. <!--===========================================================================================--> <!-- This goes in the HEAD of the html file that shall be the scrolling pop-up --> <!-- This file should be named 'scroll.html' --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2002, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- var scroll1 = 1; // the number on the left is the y co-ordinate function scrollWin() { scroll1++; window.scroll(1,scroll1); SD=window.setTimeout("scrollWin();", 100); // the speed of the scrolling can be increased or // decreased by changing the number 100 in the round // brackets on the left. if (scroll1 == 170) { scroll1 = 1 } // the scrolling of the window can be stopped at any } // given place by changing the number 170 in the // round brackets on the left. You can have the pop-up // close itself at the end by putting window.close() // instead of scroll1 = 1 (document.getElementById && !document.all) ? dom = true : dom = false; if (document.layers || dom) window.captureEvents(Event.MOUSEDOWN); if (document.layers || dom) window.captureEvents(Event.MOUSEUP); function stopIt(e) { if ((document.layers || dom) && ( e.which == 1 )) { window.clearTimeout(SD); } if (document.all && ( event.button == 1)) { window.clearTimeout(SD); } } function startIt(e) { if ((document.layers || dom) && ( e.which == 1 )) { scrollWin(); } if (document.all && ( event.button == 1 )) { scrollWin(); } } window.onmousedown = stopIt; document.onmousedown = stopIt; if (document.layers) window.onmouseup = startIt; document.onmouseup = startIt; // --> </script> <!-- This is the script to be included in the BODY tag --> <!--Note the addition to the BODY tag--> <body onLoad="scrollWin();"> <br /><br /><br /><br /><br /><br /> <center> <font size="4" face="verdana, arial, helvetica, sans-serif"> <b>Here goes the content of the HTML file.</b></font> <br /><br /><br /><br /><br /><br /><br /><br /> </center>