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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer IE6 Image Swap problem

    Have a look at this site I'm working on:

    http://www.digeridude.com/scad/photo/wip/main.html

    It works fine in all browsers except IE6. Normally you should be able to click on the thumbnails and portfolio names and have an image appear via a simple onClick SwapImage command, but IE6 refuses to work this way. The images simply do not load.

    Instead I've had to use onMouseDown, which only works if you click and hold on the thumbnails/headers in IE6 long enough for the pictures to load. Again, all other browsers are fine. It's like the command to load the image is only being executed for a split second with onClick in IE6, rather than finishing when the image appears.

    Any help would be greatly appreciated.

    (Please note that preloading the images is not feasible. There's about 4 megs of them.)

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by digeridude View Post
    It works fine in all browsers except IE6. Normally you should be able to click on the thumbnails and portfolio names and have an image appear via a simple onClick SwapImage command, but IE6 refuses to work this way. The images simply do not load.
    Hmm... this is really a JavaScript question.

    You are using the javascript pseudo protocol in combination with inline event handlers? How is that supposed to make sense?

    Remove the red part and insert the blue part:
    Code:
    <a href="javascript:;" class="linkopacity"
    onmousedown="MM_setTextOfLayer('description','','<p>\'Into the Sea Again\'</p>\n<p> June 2007, France</p>');
    MM_swapImage('photo','','images/photographs/camargue/intotheseaagain.jpg',0);return false;">
    <img src="main_files/intotheseaagain.gif" border="0" height="33" width="33">
    </a>
    You need to do this for all of the other similar anchor elements.

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. That's the first time adding 'return false' hasn't given me an error. I can't test it on my present PC, so I don't know if it works yet.

    Thanks!


  •  

    Posting Permissions

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