Results 1 to 6 of 6

Thread: Featured Content Slider - How to stop the slide rotation when a movie played in IE?

  1. #1
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Featured Content Slider - How to stop the slide rotation when a movie played in IE?

    1) Script Title: Featured Content Slider

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tentslider.htm

    3) Describe problem:

    We've been using this awesome script for a few months now, but we would like to add a movie. No big deal.

    We don't want the movie to autoplay, but have the user interact to start it. We've embedded the movie with autoplay turned off, but the slide keeps rotating when you click Play in IE 6 and 7. In Firefox and Safari, the slide rotation stops when you click play or when you click anywhere within a slide, just as if you clicked on the previous or next slide, the auto rotation stops.

    How do we adjust for behavior to work in IE?

    Thanks,
    Garrett
    Last edited by BumpStop; 09-15-2008 at 03:15 PM.

  2. #2
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any Ideas?

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The script reacts to the onClick event when the user clicks anywhere within a slide. The problem then sounds like an issue with IE not reporting a click when it's done inside a Flash object. FYI the pertaining code inside the script for this feature is:

    Code:
    		sliderdiv["onclick"]=function(){ //stop content slider when slides themselves are clicked on
    			featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
    		}
    Assuming that's what's going on, is there anyway to modify your Flash player to explicitly execute a JavaScript code when the play button is clicked on?
    DD Admin

  4. #4
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Not sure, the video is from PreviewMe.TV

    Here is our example. Like I mentioned before, it works fine in Safari/FireFox

    REMOVED URL, no longer valid

    Thanks
    Garrett
    Last edited by BumpStop; 09-19-2008 at 03:51 PM. Reason: Removed temp url

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I see the problem, which appears to be what I suspected. This is not so much an issue of the script, but IE not sending click events that's occurring on the Flash player up to the containing DIV, so JavaScript can detect and react accordingly when that happens. In FF/ Safari, the browser does this. Having said that then, the solution really is to find out if there's a way to call a JavaScript code when the Flash player is clicked on- you may want to try asking PreviewMe.TV.
    DD Admin

  6. #6
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that little investigation. I'm working with PreviewmeTV now and relayed your information.

    Thanks,
    Garrett

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •