...

View Full Version : IE6 Image Swap problem



digeridude
07-20-2007, 07:10 PM
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.)

koyama
07-20-2007, 08:54 PM
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? :confused:

Remove the red part and insert the blue part:


<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.

digeridude
07-20-2007, 09:09 PM
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!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum