OK but, please stop posting in purple italics.
Define a beginningofgallerymsg just below the endofgallerymsg:
Code:
var endofgallerymsg='<span style="font-size: 11px;">End of Gallery</span>';
var beginningofgallerymsg='<span style="font-size: 11px;">Beginning of Gallery</span>';
Next find the moveleft() and moveright() functions:
Code:
function moveleft(){
if (loadedyes){
movestate="left";
if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px";
showhidediv("hidden");
}
else{
statusdiv.innerHTML=endofgallerymsg;
showhidediv("visible");
}
}
lefttime=setTimeout("moveleft()",10);
}
function moveright(){
if (loadedyes){
movestate="right";
if (iedom&&parseInt(cross_scroll.style.left)<0){
cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px";
showhidediv("hidden");
}
else{
statusdiv.innerHTML=beginningofgallerymsg;
showhidediv("visible");
}
}
righttime=setTimeout("moveright()",10);
}
Add the red parts.
Bookmarks