Sample code: Animating more than one image

<html> <head> <title>JavaScript Image Animations</title> <script type="text/javascript"> <!– var imgObj ; var imgObj2 var animate ; function init(){ imgObj = document.getElementById(’myImage’); imgObj2 = document.getElementById(’myImage2’); imgObj.style.position= ‘relative’; imgObj2.style.position= ‘relative’; imgObj.style.top = …