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 Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.