Results 1 to 8 of 8

Thread: cmotiongallery in table

  1. #1
    Join Date
    Jan 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default cmotiongallery in table

    http://www.dantasy.be/aangepast/pagina/belettering.html

    I'm trying to make this script working. I've tried many things, but it keeps refusing. Can anyone see what is wrong?

    PS: sorry for my bad English, I speak Dutch.

  2. #2
    Join Date
    May 2007
    Location
    Canada
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You have a syntax error in Line 164 of your script. You have:

    if (typeof motioncontainer!=='undefined'&&motioncontainer.filters){

    I believe You need to put some space before and after "&&". That should work

  3. #3
    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 pman View Post
    You have a syntax error in Line 164 of your script. You have:

    if (typeof motioncontainer!=='undefined'&&motioncontainer.filters){

    I believe You need to put some space before and after "&&". That should work
    Completely wrong, adding space there would only make it easier to read for humans, it has no effect on how the code is parsed by the browser.

    The main trouble with that page is this:

    Code:
    <body onload="fillup();MM_preloadImages('images/nav/evemb.gif')">
    in the motiongallery.js file. Tags belong on the page, not in the script. So, just get rid of that, and make this be the body tag on the page (replace the existing on page body tag):

    Code:
    <body onload="fillup();MM_preloadImages('../images/nav/evemb.gif','../../images/bannerv2.jpg')">
    There could also be other problems.
    - John
    ________________________

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

  4. #4
    Join Date
    Jan 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your help!

    I did what you said, on a new page, but it doesn't work...
    http://www.dantasy.be/aangepast/pagi...concepten.html

  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

    No, you did not. You must also (as I already said) remove this (red) from your motiongallery.js file:

    Code:
     . . . tion(e);
    showhidediv("hidden");
    }
    }
    loadedyes=1
    if (endofgallerymsg!=""){
    creatediv();
    positiondiv();
    }
    if (document.body.filters)
    onresize()
    }
    
    <body onload="fillup();MM_preloadImages('images/nav/evemb.gif')">
    
    onresize=function(){
    if (typeof motioncontainer!=='undefined'&&motioncontainer.filters){
    motioncontai . . .
    - John
    ________________________

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

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

    Default

    Excuse me, I forgot...

    But it WORKS now!!!

    Thank you very much!!!

  7. #7
    Join Date
    Jan 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    One more question: how can I use this script more than once on one page?
    When I just copy the script to an other place in the document, it's just like I haven't placed the code for the head...

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

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
  •