Yeni10
<script language="JavaScript">
var selectedImage = 1;
var numImages = 2;
var img = new Array();
img[1] = "http://www.aspindir.com/images/aspindirb.gif";
img[2] = "http://www.aspindir.com/images/aspindirb2.gif";
function swapImageRight(){
if (selectedImage < numImages){
++selectedImage;
document.image.src=img[selectedImage];
}
}
function swapImageLeft(){
if (selectedImage > 1){
selectedImage = selectedImage - 1;
document.image.src=img[selectedImage];
}
}
</script>
<table border="0">
<tr>
<td colspan="2">
<img name="image" src="http://www.aspindir.com/images/aspindirb.gif">
</td>
</tr>
<tr>
<td align="right">
<input type="button" value="<<" onclick="swapImageLeft()">
</td>
<td align="left">
<input type="button" value=">>" onclick="swapImageRight()">
</td>
<tr>
</table>