Hi i have a page that is scrolling when you rollOver a layer. Works great! The page is also looping so when you come to the end of the page it returns to the beginning. This is what I made up to know: [URL=http://www.jeugdwerkrozenoord.nl/Testscript/]Link to website
The only problem I have is that the page starts in the bottom at the right and I want it to begin at the top at the left. What can I do about it. This is the script:
[code=php]
<script language=”JavaScript1.2″>
var currentposY=1
var currentposX=1
setInterval(“scrollwindow()”,1)
function scrollwindow(){
currentposY=document.body.scrollTop
currentposX=document.body.scrollLeft
if (currentposY > 1693){
currentposY = 1
window.scroll(currentposX,currentposY)
}
if (currentposY == 0){
currentposY = 1693
window.scroll(currentposX,currentposY)
}
if (currentposX > 3021){
currentposX = 1
window.scroll(currentposX,currentposY)
}
if (currentposX==0){
currentposX = 3021
window.scroll(currentposX,currentposY)
}
}
</script>