|
-
Jan 26th, 2005, 01:49 PM
#1
Thread Starter
Fanatic Member
a simple
Hi,
I tried to create a simple shooting game.but I confused as how to use the
"visibility" element..
For example ,if I manage to hit the target(image1) ,I want image1 to be "hidden"
but image2(a bmp image of explosion) to be visible ..and disappear in a second..and so on..
Here are my half-finished codes..
Thanks in advance.
---------------------------------------------------
<head>
<style>
#mm{position:absolute;cursor:hand;}
</style>
<script>
function Count()
{
count++;
alert("hit..."+count+"..fireNum.."+fire)
document.mm2.style.visibility="visible";
document.mm.style.visibility="hidden"
}
fire=0;
function deneme()
{
fire++
}
</script>
</head>
<body onload="kos()" onmousedown= "deneme()">
<table border=5 width=430 height=300 bgcolor=silver>
<img src=0174.gif id=mm2 style="position:absolute;z-index:0;">
<img src="patlama.bmp" id=mm style="position:absolute;"onclick="Count()">
</table>
</body>
-
Jan 26th, 2005, 07:45 PM
#2
Frenzied Member
Re: a simple
Don't bother replying to this, the guy's got plenty of help in another place where he asked the same question:
http://js-x.com/forum/viewtopic.php?t=747
-
Jan 27th, 2005, 03:59 AM
#3
Re: a simple
Are you stalking him? 
It's a little odd though... by the time he posted this post on VBF, there were 3 replies on that other website.
-
Jan 27th, 2005, 05:29 AM
#4
Frenzied Member
Re: a simple
know about it cos I'm a moderator on the other forum. Maybe he thought he wanted more replies, that's usually the case.
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
|