Results 1 to 7 of 7

Thread: Problem with cmotiongallery

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

    Default Problem with cmotiongallery

    http://www.dynamicdrive.com/dynamici...iongallery.htm

    Because this script didn't work, I've pasted it into a simple, empty html-page. And even then it isn't working... What am I doing wrong? I've downloaded the css and javascript files...

    Here's an example:
    http://www.dantasy.be/test/test.html
    Last edited by Matthias; 01-24-2008 at 07:37 PM.

  2. #2
    Join Date
    Dec 2007
    Location
    Muenster - Germany
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    motiongallery.js

    change:
    Code:
    var maxwidth=1;
    to:
    Code:
    var maxwidth=1000;

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

    Default

    Thank you very much! It works perfect now!

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

    Default

    I have a new problem now. When I'm trying to put the script into an existing page, it still doesn't work.
    http://www.dantasy.be/test/

  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

    You cannot have this (red) - looks like you inserted some scripts into the stylesheet:

    Code:
        <style type="text/css">
    	<script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-3343841-2");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>
    <!--
    #Layer1 {
    	position:absolute;
    	width:200px;
    	height:115px;
    	z-index:7;
    }
    body {
    	margin-top: 17px;
    }
    body,td,th {
    	font-size: .9em;
    }
    .style5 {color: #CC0000; font-weight: bold; }
    .style6 {
    	color: #FFFFFF;
    	font-family: "Arial Black";
    }
    .style7 {
    	font-family: "Arial Black";
    	font-weight: bold;
    }
    -->
        </style>
    Try it like so:

    Code:
    	<script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-3343841-2");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>
        <style type="text/css">
    <!--
    #Layer1 {
    	position:absolute;
    	width:200px;
    	height:115px;
    	z-index:7;
    }
    body {
    	margin-top: 17px;
    }
    body,td,th {
    	font-size: .9em;
    }
    .style5 {color: #CC0000; font-weight: bold; }
    .style6 {
    	color: #FFFFFF;
    	font-family: "Arial Black";
    }
    .style7 {
    	font-family: "Arial Black";
    	font-weight: bold;
    }
    -->
        </style>
    There could also be other problems. Ah, yes - you also have an onload conflict. Remove:

    Code:
    window.onload=fillup;
    from the motiongallery.js file, and add to your body onload:

    Code:
    <body onload="fillup();MM_preloadImages('images/nav/evemb.gif')">
    - 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

    OK, thank you very much for your code.
    But I have to place this script into a table with two arrows (like the example on http://www.dantasy.be/aangepast/pagina/belettering.html).
    The exact height of not yet right, but this isn't very important, I think...
    If you could help me one more time with this problem?

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

    Default

    Please? This script has to work. It's urgent...

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
  •