Ho questo script che mi fa un scroll di un testo, però se cambio la risoluzione della pagian, mi cambia anche il posizionamento dello scroll e questo sarebbe un problema.
Sarebbe possibile farlo fisso?
codice:
<!-- Begin
topedge = 150;
leftedge = 190;
boxheight = 300;
boxwidth =400;
scrollheight = 20000;
function scrollnews(cliptop) {
if (document.layers) {
newsDiv = document.news;
newsDiv.clip.top = cliptop;
newsDiv.clip.bottom = cliptop + boxheight;
newsDiv.clip.left = 0;
newsDiv.clip.right = boxwidth + leftedge;
newsDiv.left = leftedge;
newsDiv.top = topedge - cliptop;
}
else {
newsDiv = news.style;
newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
newsDiv.pixelLeft = leftedge;
newsDiv.pixelTop = topedge - cliptop;
}
cliptop = (cliptop + 1) % (scrollheight + boxheight);
newsDiv.visibility='visible';
setTimeout("scrollnews(" + cliptop + ")", 20);
}
_____________________________________
Grazie.
:::::::::::::::::::::::::::::::::::