Guardian-Mage Posted March 14, 2008 Share Posted March 14, 2008 I am a PHP programming, and not a Javascript One(Yet). For this project I am using someone's Else's script that I have streamlined a bit. I want it so I can drag a picture from the top to the bottom and for that I need it to auto scroll. Does anyone have any insights into how I might to this: http://cdlandscaping.biz/dev2/test/sorting.html Link to comment https://forums.phpfreaks.com/topic/96198-autoscrolling-for-this-drag-and-drop-script/ Share on other sites More sharing options...
Guardian-Mage Posted March 14, 2008 Author Share Posted March 14, 2008 This code works well at scrolling a page, any idea how to implement it how I want? And direction or advice? It is appreciated <html> <head> <script type="text/javascript"> function scrollWindow(inc) { speed=100; newinc=inc+20; t=setTimeout("scrollWindow(newinc)",speed); window.scrollTo(0,inc); } </script> </head> <body onLoad="javascript:scrollWindow(20);"> <?php $i=0; while ($i < 1000) { echo "I AM LINE NUMBER $i<br />"; $i++; } ?> </body> </html> Link to comment https://forums.phpfreaks.com/topic/96198-autoscrolling-for-this-drag-and-drop-script/#findComment-492460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.