There are at least two approaches. Have it start out visible, but then when it repeats, have it come in from the bottom. For that use this function in place of the one we already replaced:
Code:
function scrollDiv(){
dataobj.style.top = parseInt(dataobj.style.top) - scrollspeed + "px";
if (parseInt(dataobj.style.top) < thelength * (-1))
dataobj.style.top = (window.innerHeight? innerHeight : Math.max(document.documentElement.clientHeight, document.body.clientHeight)) + 5 + "px";
setTimeout(scrollDiv, 40);
};
The other approach would be to have it always start from the bottom, even at the beginning. For that use the scrollDiv() function above, and also change this line:
Code:
function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}
like so:
Code:
function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top = (window.innerHeight? innerHeight : Math.max(document.documentElement.clientHeight, document.body.clientHeight)) + 5 + "px";
setTimeout("getdataheight()", initialdelay)
}
Bookmarks