Onclick code for an image

Discussion in 'JavaScript' started by MisterSinister, May 20, 2014.

  1. #1
    I have this website retro-arcade.com,when i hit the red button(to go back to main menu) the image disapears in ie (and chrome),i have the code for onmouseout and onmouseover but i dont have it for onclick.
    Can someone help me with this?I have 5 dollars in my paypal account.
     
    MisterSinister, May 20, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    What image? And what do you mean by disappear? I've tested now in Firefox, Chrome and IE, and they all work fine.
     
    PoPSiCLe, May 20, 2014 IP
  3. tylerman169

    tylerman169 Member

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    43
    #3
    The website seems to work fine for me in all browsers when you click the red button. I am not sure what image you are talking about. I like your website design, the joystick navigation is pretty cool.
     
    tylerman169, May 20, 2014 IP
  4. MisterSinister

    MisterSinister Well-Known Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #4
    In IE and Chrome if you hit the red button quicly(dont wait for the hoover effect,hit the button quickly) it will disapear(dont hit the button if you are on the main menu because thats in flash,only on a game page),I think that happens because i dont have a code for onclick only for onmouseout and onmouseover
     
    MisterSinister, May 20, 2014 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    I can barely see what you're talking about on a couple of games, but it only happens for a second (at most) and seemingly only the first time it's clicked - as the page / flash animation reloads, it's back. So I don't think it's a big problem.
     
    PoPSiCLe, May 22, 2014 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    My question would be why are you trying to trap onclick to do an anchor's job, and why are you using onmouseover and onmouseout to do CSS' job? WAIT, no! You don't have JavaScript doing that, you have ActionScript in the SWF doing that... so .. you're asking in the wrong place.

    Of course the gibberish markup with tags like FONT that have no business on any site written after 1997... not helping.
     
    deathshadow, May 22, 2014 IP
  7. MisterSinister

    MisterSinister Well-Known Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #7
    The actionscript is only on the main page where the main menu is,on the rest of the pages(where the games are) is javascript.
     
    MisterSinister, May 22, 2014 IP