Here's my code. I want the animation to stop at the starting point and 'bounce' back to the other point. As you can see on the 'bounce' back it just keep's going off the page. Thank's for any help you can give me!<br><br><html><br><head><br><title>Example of Sliding Layers</title><br><br><script language="JavaScript"><br><br>function moveLayer(lyr,xadder,yadder,xend,timer){<br> lyr.top += yadder<br> lyr.left += xadder<br> <br> if ((xadder < 0) && (lyr.left > xend)) {<br> setTimeout('moveLayer(document.layers["'+lyr.name+'"],'+xadder+','+yadder+','+xend+','+timer+')',timer)<br> }<br>else{<br>setTimeout('moveLayer(document.layers["'+lyr.name+'"],4,4,30,20)',20)<br>}<br>}<br></script><br><br></head><br><body bgcolor="Black" onload="moveLayer(document.layers['Image1'],-4,-4,4,20)"><br><layer name="Layer1" top=100 left=100 visibility=show><br><img src="Image1.jpg" width=90 height=90 alt="Image1"><br></layer><br><br></body> <br></html>