1
Good afternoon,
I’m in need of a help because I built a horizontal page that besides the scroll of the mouse it also uses the arrows on the side for the drive, but the more you press the arrows, the more it advances regardless of whether it has reached the end of the page or not, I send the code I used, I wonder if you could give me a hand:
var projObj = null;
function init(){
projObj = document.getElementById('PagProjetos');
projObj.style.position= 'relative';
projObj.style.right = '0px';
}
function moveRight(){
projObj.style.right = parseInt(projObj.style.right) + 600 + 'px';
}
function stop(){
projObj.style.right = '0px';
}
window.onload =init;
Thank you very much