> But how can I find out what is the active slide? There is a class for it in > the pager, but I need to find out if my slideshow div currently shows a > object/embed element or an img element.
You can use the 'before' or 'after' callbacks for that. $('#slideshow').cycle({ before: onBefore }); function onBefore(curr, next, opts) { // next is the element that is about // to be transitioned in var tag = next.tagName.toLowerCase(); if (tag == 'object' || tag == 'embed') { // start playing media } };