Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2007, 06:53 PM
Authorized User
 
Join Date: Jun 2007
Location: Christchurch, , New Zealand.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hericles
Default Flickering image transitions in javascript

Hi,
I have a created a banner for a web site that features five images. These images use javascript to fade out, change to another image and then fade back. The problem in both IE and FF is that the images flicker when reappearing. I have followed some advice to lower the maxium opacity from 100 to 99 but that has no effect. All the images are pre-loaded when the page runs. All five images call the same transition function - is there a chance it is unable to cope with the load?
I would appreciate any advice.
Thanks,
Steve

__________________
\"I will prepare and one day my chance will come.\"
 
Old July 7th, 2007, 07:56 AM
Friend of Wrox
 
Join Date: Nov 2005
Location: Rotterdam, , Netherlands.
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I usually prevent writing these codes myself because its a time consuming task. Why don't you try mootools framework here is a link for a script that does exactly what you want
http://demos.mootools.net/Asset.images

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.
 
Old July 19th, 2007, 02:35 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

if you want some suggestions, I'd be happy to. Can you post your code?

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
 
Old July 19th, 2007, 04:58 PM
Authorized User
 
Join Date: Jun 2007
Location: Christchurch, , New Zealand.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hericles
Default

Hi, thanks for your email but I figured out what was wrong. The asyncronous nature of JavaScript was causing conflicts. I cut down the number of images and it worked fine.

Thanks Again,
Steve





Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Image to Image Control using JavaScript ctranjith General .NET 1 May 28th, 2013 05:43 AM
how to prevent image flickering? galatea C# 1 March 12th, 2005 01:09 PM
How to avoid flickering of controls on CFormview lmadhavi Visual C++ 1 October 4th, 2004 03:00 AM
flickering ducks! Ashleek007 JSP Basics 2 May 11th, 2004 06:36 AM
Refresh a page without the flickering effect pigtail Classic ASP Basics 12 April 5th, 2004 01:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.