I found a js code that'll move an image from left to right when the image is clicked on and changed it to move an image up. But it only works in IE. What needs to be changed or added to get it to work in Firefox?
Code:function moveit(spot){ if (document.layers){ var picture=document.all.image; if (spot<500){ picture.bottom=spot; spot+=1; setTimeout('moveit('+spot+')',1); } } if (document.all){ var picture=document.all.image.style; if (spot<500){ picture.bottom=spot; spot+=1; setTimeout('moveit('+spot+')',1); } } }



Reply With Quote

Bookmarks