Results 1 to 5 of 5

Thread: CMotion Image Gallery conflicts with roll over images

  1. #1
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CMotion Image Gallery conflicts with roll over images

    1) Script Title: CMotion Image Gallery

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

    3) Describe problem:
    This script worked fine when I tested on a basic layout of my webpage. However, After I added navigation bar with rollover effects, the nav script seems to conflict with the motion gallery script. Now the gallery doesnt work. If I remove the nav bar, the gallery works. ???

    Im using a DW dwt file as my template which has the navigation bar for all pages sitewide. I want different galleries on different pages, so I just added the head and body code respectively to each gallery page. It all worked fine until I added navigation bar with rollover effects to dwt file to update all pages. Im thinking the onload preload script cold be overiding the gallery script??

    Thanks for any help with this.

  2. #2
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This seems to be the problem affecting the motion gallery script. If I close the body with a > and add a < before class, the gallery works, but the body style is not being applied to page. Being a noob to this, Im not sure of work around for this. Am I ontrack or off base? THanks again for any help.


    <body class="styles" onload="MM_preloadImages('../images/nav-top-over_01.jpg','../images/nav-top-over_02.jpg','../images/nav-top-over_03.jpg','../images/nav-top-over_04.jpg','../images/nav-top-over_05.jpg','../images/nav-top-2-over_02.jpg','../images/nav-top-2-over_03.jpg','../images/nav-top-2-over_04.jpg','../images/nav-top-2-over_05.jpg','../images/nav-top-2-over_06.jpg')">

  3. #3
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I too have had the same problem. Script works fine when inserted into the code absent any other script, but with an image-based rollover navigation bar, the motion gallery simply fails to work. I have sent the code to several people for help, but as of yet have no resolution.

  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

    In the motiongallery.js file change:

    Code:
    window.onload=fillup;
    to:

    Code:
    if (window.addEventListener)
     window.addEventListener('load', fillup, false);
    else if (window.attachEvent)
     window.attachEvent('onload', fillup);
    - John
    ________________________

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

  5. #5
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks!

    Worked perfectly! Thank you much!

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
  •