...

View Full Version : Problem with javascript for gif anims in IE



gordon k
05-28-2009, 12:10 PM
Hallo all - new poster here.

I've set up a photo viewer on my website, and one of the features is that every time you click a button to view a photo, a small flashgun-style gif animation is triggered in the thumbnail preview window.

This works fine in Firefox, but when I tested it using IE7, the gif animation doesn't display - or rather only the last frame (a black matt) displays each time.

http://www.organica.co.uk/organica/images.htm


function clickone() {
playSound();
document.images['thumb-pic'].src = "flashgun.gif";
document.images['main-pic'].src = "images/LightFlowerSq.jpg";
document.images['name-label'].src = "images/LightFlowerLabel.gif";

The image displays fine by itself, so I'm wondering if I'm doing something nonstandard with the Javascript which inserts it.

Can anyone suggest what the problem might be?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum