Results 1 to 4 of 4

Thread: a simple

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    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>

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    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

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    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
  •  



Click Here to Expand Forum to Full Width