Change the :
<div id="yourimage" style="width: 100px;height: 100px;position:absolute;background-color: red;top:100px;"></div>
to
<img src="broomani.gif" border="0" id="your_id"/>
and the :
Code:
<input type="button" onclick="moveright('yourimage', 50);" value="Move Right">
<input type="button" onclick="moveleft('yourimage', 50);" value="Move Left">
<input type="button" onclick="moveup('yourimage', 50);" value="Move Up">
<input type="button" onclick="movedown('yourimage', 50);" value="Move Down">
to:
Code:
<input type="button" onclick="moveright('your_id', 50);" value="Move Right">
<input type="button" onclick="moveleft('your_id', 50);" value="Move Left">
<input type="button" onclick="moveup('your_id', 50);" value="Move Up">
<input type="button" onclick="movedown('your_id', 50);" value="Move Down">
Note: The part in red can be changed according to your settings.
Bookmarks