[jQuery] jQuery Cycle - onBefore not running on first slide?

2009-01-05 Thread Azzlack
I'm using the onBefore() function to check for the tagName of the next element/slide. (If it's a jpg, png, flv, etc.) But it looks like the onBefore() function is not run on the first slide, because the function does not start on the first slide, but it does start properly when the slideshow

[jQuery] Re: jQuery Cycle - onBefore not running on first slide?

2009-01-05 Thread Azzlack
Apparently, yes. I tried to put a setTimeout around the if-part, and it seems to work. setTimeout(function() { if(player (tag == 'object' || tag == 'embed')) { player.sendEvent('PLAY', true); } }, 1500); -- View this message in context:

[jQuery] Re: jQuery Cycle - onBefore not running on first slide?

2009-01-05 Thread Azzlack
http://www.3ddesign.no/tjenester/film.aspx Here is the onBefore function: function onBefore(curr, next, opts) { var tag = next.tagName.toLowerCase(); if(player (tag == 'object' || tag == 'embed')) { player.sendEvent('PLAY', true); }

[jQuery] Re: Jquery Cycle - Determine active slide

2008-12-03 Thread Azzlack
This works, but it does not start playing if the first slide is a flash object. Any idea of how to fix this? Regards, Ove Andersen malsup wrote: function onBefore(curr, next, opts) { // next is the element that is about // to be transitioned in var tag =

[jQuery] Jquery Cycle - Pager with maximum 10 links

2008-11-03 Thread Azzlack
Is it possible to configure the cycle plugin so that it only shows a maximum of 10 numbers in the pager + prev and next? Or is it best to use a plugin like scrollTo for this purpose? -- View this message in context:

[jQuery] Jquery Cycle - Determine active slide

2008-11-03 Thread Azzlack
I have a mixture of images and flash movies (using JW Media Player) in my slideshow. The flash movies are set to autostart, which works good in every browser except IE, because instead of starting the movie when the slide is visible like the other browsers, it starts it when the page loads. So

[jQuery] Appending/prepending image source attribute

2008-01-31 Thread Azzlack
I am trying to change the source of an image when the page loads to include some code in front, and after the url. Like this: Original src: http://www.teamviewer.com/images/teamviewer.png How I want it to look like: /umbraco/ImageGen.aspx?image= + (original-src) + amp;width= + width +