Results 1 to 5 of 5

Thread: Ultimate Fade-In Slideshow and menu Machine Safari / Chrome trouble

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-In Slideshow and menu Machine Safari / Chrome trouble

    1) Script Title: Ultimate Fade-in slideshow (v2.1)

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

    3) Describe problem:

    I am using Menu Machine drop down menus which overlap the slideshow:

    http://s-on.co.uk/cleverass/

    This works fine in Firefox but not in Safari, Chrome, IE 7 or IE 8.

    Without the menu it works fine:
    http://s-on.co.uk/cleverass/simplicity1.html

    So it appears to be a script conflict with Menu Machine.

    Anyone got any ideas how to fix?
    Last edited by Duffloop; 04-25-2010 at 07:42 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There is an error in the menumachine2.js file. Find this bit of code:

    Code:
    if (typeof(Array.shift)==_u)
    Change it to:

    Code:
    if (typeof(Array.prototype.shift)==_u)
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Brilliant! - it works :-)

    many thanks (though i'm curious how you found that error??)

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I use many browsers to check a problem. Most have their own ways of reporting errors if you know how to get them to do it. In this particular case it was Opera that reported that it was the Array.prototype.shift that was causing a problem. I then just searched the menumachine2.js file for shift. When I found it I could (because of my experience with javascript) see the error.

    That part of the code was written for browsers that don't have native shift code for arrays. Almost no one uses a browser like that these days. If they do, they would have many other problems with your and most web pages. I'm not sure if what the author did would work in those browsers or not, but I have to assume that the author thought so. It is clear that it causes a problem for at least some browsers that do have native shift code. By making the change, we guarantee that only those browsers without a native shift function will use the one created by the author. All modern browsers will use their own.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    that's interesting - must check out Opera...

    Many thanks again for sorting it out!

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
  •