|
-
Jan 22nd, 2005, 08:34 AM
#1
Thread Starter
Fanatic Member
displaying images
Hi,
I just wanted to display all images ,one next to the other one each time I click the button..
But I could not fix it...Hope you can help me out...
thanks in advance
-----------------------------
<body>
<script>
var pic=new Array("","0154.gif","0174.gif","0184.gif","0190.gif","0189.gif","0199.gif")
var con;
con=0;
function gox()
{
con++;
document.room.src=pic[con];
if(con==6)
con=0;
document.getElementById('ses').value=con+1;
for(m=0;m<=6;m++)
{
document.room.src=pic[con];
}
}
</script>
<img src="" name="room" >
<form>
<input type="button" value="here we go" onclick="gox()">
<input type="button" name="ses" value="">
</form>
</body>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|