|
-
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>
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
|