[jQuery] Cycle plugin - frame number / IE behaviour

2009-05-19 Thread clement.val.cee...@gmail.com

Hi !

As implied by the subject, my question concerns jquery.cycle plugin
and I have 2 questions. I tried to find answers searching the web, but
didn't find any.

I'm currently using cycle to built a photography website and enjoy it
a lot so far. However, I'd like to display/update the image number at
the same time as the legend (taken in the "alt" of the images). i.e,
I'd like to be able to write something like "current frame number /
total number of frames" in a div, somewhere.

It looks like somebody heavily edited the cycle plugin for the
http://www.indexhibit.org/ project to do what I want, but it's not
really made in the most elegant way (the cycle plugin is modified, the
div name is hard written in the code...). If I find no workaround, I
might do it the same way, but I'd prefer avoiding modifying the
plugin, if that's possible.

So here's my first question :
Does anybody know how to display the frame number (and total number of
frames) using the standard plugin, only putting some code in the
after: function callback ?

Second question : with IE7, if all images are already in cache, they
all display on the page before the cycle starts and hide them. (one of
the page is here : http://www.claudinedoury.com/portfolio_artek.htm).
Is there a way to avoid that ?

Thanks to those who will help :o)


[jQuery] Re: Cycle plugin - frame number / IE behaviour

2009-05-19 Thread clement.val.cee...@gmail.com

On 19 mai, 15:48, Mike Alsup  wrote:
> http://www.malsup.com/jquery/cycle/count.html

Wow !!

That was fast ! Strangely, I never found this demo. Thanks a LOT !

> Use CSS style rules to position and stack the images.

Do you mean forcing the images to be all at the same position ?

Thanks again,

Clement


[jQuery] Re: Cycle plugin - frame number / IE behaviour

2009-05-20 Thread clement.val.cee...@gmail.com

It works ! Thanks again :o)


On May 19, 9:24 pm, Mike Alsup  wrote:
> > > Use CSS style rules to position and stack the images.
>
> > Do you mean forcing the images to be all at the same position ?
>
> Yes.  That's what the plugin does once it is run, but you can do it in
> CSS to avoid flicker on page load.