PDA

View Full Version : Advanced Gallery script weird timing change problem?



rscprod
08-14-2008, 03:51 AM
Hello All,

1) Advanced Gallery script

2) http://www.dynamicdrive.com/dynamicindex17/agallery.htm

3) Describe problem: almost work, first frame up set duration, 2nd frame just get a 1/2 sec. then jumps back to first frame. not sure were to even look for this??

Also just noticed doesn't seem to be working in FireFox?

My testpage: http://wyandotte.net/home-test-gallery.htm

Thanks Rich :confused:

Dirt_Diver
08-14-2008, 04:11 AM
Try adding


window.onload=startgallery right under the last section of your code just before the </script> tag

you have:

if (window.addEventListener)
window.addEventListener("load", startgallery, false)
else if (window.attachEvent)
window.attachEvent("onload", startgallery)
else if (document.getElementById)

It should read:

if (window.addEventListener)
window.addEventListener("load", startgallery, false)
else if (window.attachEvent)
window.attachEvent("onload", startgallery)
else if (document.getElementById)
window.onload=startgallery

rscprod
08-14-2008, 04:35 AM
Thanks Dirt_Diver

that helped some of the issues.

Almost better, all scripts appear to be where they belong and functioning in both IE & FF...

Except I am still getting the flicker instead of timed alternateing on the Gallery Script in both browsers.

My testpage: http://wyandotte.net/home-test-gallery.htm

-Rich :confused:

Dirt_Diver
08-14-2008, 10:59 AM
Does it do the same thing if you swap the two ads?

rscprod
08-14-2008, 04:43 PM
Hello again,

Yes, it still is doing the flicker after I fliped the ad,

Then, just to check, I added a 3rd ad to see what would happen and it
now flickers past every other ad (appearing to jump from ad 1 (skip 2) to 3
(skip 1) to 2 (skip 3) to 1 ect.

My testpage: http://wyandotte.net/home-test-gallery-3ads.htm

Also: I just noticed that if I switch the gallery to manual mode then back to automatic, the gallery seams to then work properly.
This happens in both IE & FF.

Thanks - Rich C. :confused: