Jump to content

onClick doesn't work


ajaxiskey

Recommended Posts

test/test works fine... are you using firefox?

 

also the code runs fine if it is the only code on the page... but when it is included with my entire code, when i click the image the onClick doesn't trigger...

 

        <div id="ERRORBOX" style="position: absolute; left: 50%; top: 50%; width: 200px; height: 150px; margin-left: -100px; margin-top: -75px; background-image: url('images/errorbox.png'); visibility: hidden;">
      <div style="margin-top: 2px; margin-left: 2px; width: 196px; background-color: #121212; text-align: center; color: #FF0000; padding-top: 1px;">ERROR</div>
      <div id="ERRORBOX2" style="position: relative; top: 30%; color: #FFFFFF; text-align: center;"></div>
      <img style="display: block; position: absolute; bottom: 6px; right: 6px;" src="images/x.png" onClick="document.getElementById('ERRORBOX').style.visibility='hidden';">
    </div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.