Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript Images Scroller :: Firefox: flashes || IE: No flashes
Old 03-03-2007, 08:47 AM Javascript Images Scroller :: Firefox: flashes || IE: No flashes
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Hey all,

I'm developing a small image scroller script and so far, I managed quite well.
(Don't start me about ugly or bad code. )

I'm having a small bug when viewing the scrolling in Firefox.
Each time the images are all 'updated' (They all move one table data to the left), you see a flash with the next image.
Strangely this doesn't happen in IE.
Anyone can help me with this?

[ Scroller + code ]
http://pcpraedinius.nl/scroller

Regards,
Insensus
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-03-2007, 11:00 AM Re: Javascript Images Scroller :: Firefox: flashes || IE: No flashes
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
My hunch is it's because you're using tables (you have a weird jerky issue in IE6 by the way.)

This would actually be a case for absolute positioned divs within a relatively positioned div. You have div 1, 2, and 3 for your images, each of which is positioned at top: 0, left: (sum total of whatever widths of the previous images are to start + padding space), and then you slide them over. When left is less than -1 * width of image, left becomes width of the other images + padding space + a little bit to keep it away from the other stuff.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-03-2007, 12:01 PM Re: Javascript Images Scroller :: Firefox: flashes || IE: No flashes
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
I don't really see what you mean with that last part.
I'll try the same thing with divs.

Regards,
Insensus

Edit: I tried it. No improvement at all. The only thing that changed was that it was even harder for me to position the whole scroller and to change the padding easily.

Edit 2: I figured of one way how to fix it but I'm not certain yet whether it will work and how to implent it.
Here's my idea:

Put all the images in the table twice. (Script-wise of course. Not by adding them two times manually.)
Let everything pass once.
When that's over place the whole table back at the beginning.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>

Last edited by Insensus; 03-03-2007 at 12:16 PM..
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-03-2007, 01:51 PM Re: Javascript Images Scroller :: Firefox: flashes || IE: No flashes
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Thanks for your help Adam, but my solution works great.

Regards,
Insensus
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-03-2007, 02:21 PM Re: Javascript Images Scroller :: Firefox: flashes || IE: No flashes
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
As long as you got it, that's all I care about.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Javascript Images Scroller :: Firefox: flashes || IE: No flashes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19673 seconds with 12 queries