Ken Snyder wrote:
> Alex Duffield wrote:
>
>> Ken, thanks. This looks great, but unfortunately I cant get it to
>> work... Its throwing an error in effects.js setting oldOpacity
>>
>> I have a minimized test page at
>>
> Here is a better version. It does seem to flicker on the last image...
> maybe its still not looping exactly right.
>
> --Ken
>
It looks like the flicker comes from your last image source not existing:
http://www.galianoliving.com/images/spa/Spa5.jpg
you might also want to add some image preloading:
initialize: function(...) {
...
this.sources.each(this.prefetch);
},
prefetch: function(source) {
var img = document.createElement('img');
img.src = source;
},
Have fun. Let us know what the final result looks like.
--Ken
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---