Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    onClick change image, but image doesn't show on IE =0

    as the title described

    i have an onClick change image code that works perfectly fine in firefox,

    however, on ie, it loads a blank image sometimes when i call the onClick...

    is there a quick trick to fix this?....

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    We can't fix it if we can't see the code.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New Coder
    Join Date
    Jul 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
     <A href="javascript://"
    onClick="if(document.getElementById('food').style.display == 'none')
    {	
    document.getElementById('food').style.display = '';
    document.images['pointImg'].src = './images/minus.gif'
    } else {
    document.getElementById('food').style.display = 'none';
    document.images['pointImg'].src = './images/plus.gif'
    }">

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Code:
    <a href="#"
      onClick="...
          ...
        ;return false;">
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •