TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

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