Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
scrolling .html page to xy? |
Page: 1 | Reply |
Mar 1st 2003 | #93528 Report |
Member since: Mar 1st 2003 Posts: 9 |
i was wondering if anyone knew where to get the javascript code for a script that will scroll a page to x/y coordinates? i have a page that is around 2000 pixels wide and it has a horizontal scrollbar, i want to put in next/back links that will scroll the page forward/backwards to certain x/y coordinates. any ideas? i have seen it done before, but i have no idea where i saw it. |
Reply with Quote Reply |
Mar 1st 2003 | #93531 Report |
Member since: Mar 24th 2002 Posts: 3114 |
[PHP] function scrollBastard(x,y){ window.scrollBy(x,y) *or* window.scrollTo(x,y) } *and link it like this* [/PHP] etc etc.. not 100% sure, haven't got the time to test it, but I'm pretty sure that's the way........... |
Reply with Quote Reply |
Mar 1st 2003 | #93538 Report |
Member since: Mar 1st 2003 Posts: 9 |
i'll give it a try and report back. thanks
|
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |