Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: CMotion Image Gallery (Scrolling)

  1. #1
    Join Date
    Apr 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CMotion Image Gallery (Scrolling)

    Sorry in advance for my ignorance...
    I can not figure out why the script seems to function... but i get no scrolling images.

    Will you please help me!!
    css and js file are in the right spots:

    http://ntsos2.medensure.com/gallery2.html

  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

    You have a script conflict with the:

    HTML Code:
    <script type="text/javascript" src="scripts/nav_functions.js"></script>
    script. Either remove it or, in motiongallery.js, go the bottom and change this:

    Code:
    window.onload=fillup
    to:

    Code:
    if ( typeof window.addEventListener != "undefined" )
        window.addEventListener( "load", fillup, false );
    else if ( typeof window.attachEvent != "undefined" )
        window.attachEvent( "onload", fillup );
    else {
        if ( window.onload != null ) {
            var oldOnload = window.onload;
            window.onload = function ( e ) {
                oldOnload( e );
                fillup();
            };
        }
        else
            window.onload = fillup;
    }
    In order to be kind to folks who may be surfing with very old browsers, you should also put the calls for the other two scripts before cmotion:

    HTML Code:
    		<script type="text/javascript" src="scripts/nav_functions.js"></script>
    		<script src="scripts/sifr.js" type="text/javascript"></script>
    <script type="text/javascript" src="scripts/motiongallery.js">
    /***********************************************
    * CMotion Image Gallery- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/
    </script>
    This is not required for modern browsers.
    - John
    ________________________

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

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

    Default

    Thanks so much... It worked great. Last question...

    Is it possible to break the images displayed on multiple rows and scroll each row separatly.

    thanks again.

    http://ntsos2.medensure.com/gallery.html

  4. #4
    Join Date
    Apr 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    never mind.... i found the ref question to the iframe fix for multiple scripts.

    I'm also looking for how to add a caption to the image or maybe a brief description when it loads popup. I will see if i can find ref to this in the forum

    Thank you so very much for your help.

  5. #5
    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

    Quote Originally Posted by dydoyaga
    I'm also looking for how to add a caption to the image or maybe a brief description when it loads popup.
    I'm not sure if you mean a caption for the the images as they slide by, and/or for them once they are in the pop-up. Both are possible and have been covered elsewhere. Let us know if you are having trouble finding and/or using the references.
    - John
    ________________________

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

  6. #6
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi guys, i'm facing the exact same problem..the script works (it opens the enlarged image in a popup window) but it just doesn't scroll..

    i've tried following the advice jscheuer1 has given but it still doesn't work..

    HELP!

    Attached is the code in .txt format..

  7. #7
    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

    Quote Originally Posted by lilithfiend
    hi guys, i'm facing the exact same problem..the script works (it opens the enlarged image in a popup window) but it just doesn't scroll..

    i've tried following the advice jscheuer1 has given but it still doesn't work..

    HELP!

    Attached is the code in .txt format..

    Your case is simpler but also could be solved using the method shown in post #2 in this thread (just the part in the middle two code blocks about replacing the window.onload call in the script). Another, as I say simpler, method would be to remove:

    Code:
    window.onload=fillup
    from the script ans add it like so, to your body onload event:

    Code:
    <body onLoad="fillup();MM_preloadImages('images/link_01_.gif','images/link_02_.gif','images/link_03_.gif','images/link_04_.gif','images/link_05_.gif','images/link_R_.gif')">
    Either of these two methods will prevent onload conflicts between the script and the MM_preloadImages() function. There could be other problems.
    - John
    ________________________

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

  8. #8
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for the advice..ok this is what i did:

    1) removed
    Code:
    window.onload=fillup
    from the motiongallery.jsp file

    2) added
    Code:
    <body onLoad="fillup();MM_preloadImages('images/link_01_.gif','images/link_02_.gif','images/link_03_.gif','images/link_04_.gif','images/link_05_.gif','images/link_R_.gif')">
    to my html file

    is this correct?

    cos i did it, but it still doesn't work..

  9. #9
    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

    Quote Originally Posted by lilithfiend
    thanks for the advice..ok this is what i did:

    1) removed
    Code:
    window.onload=fillup
    from the motiongallery.jsp file

    2) added
    Code:
    <body onLoad="fillup();MM_preloadImages('images/link_01_.gif','images/link_02_.gif','images/link_03_.gif','images/link_04_.gif','images/link_05_.gif','images/link_R_.gif')">
    to my html file

    is this correct?

    cos i did it, but it still doesn't work..
    There must be other problems, either that or you have an old version of the page cached or lying around somewhere that is getting used.

    A link to your page would be best for troubleshooting.
    Last edited by jscheuer1; 04-21-2006 at 07:55 AM.
    - John
    ________________________

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

  10. #10
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i've already tried deleting the temp files and refreshed many times..

    here's the link to the page..appreciate your help!

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
  •