PDA

View Full Version : Problem with cmotiongallery



Matthias
01-24-2008, 07:22 PM
http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.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

dabri
01-24-2008, 08:38 PM
motiongallery.js

change:

var maxwidth=1;

to:

var maxwidth=1000;

Matthias
01-25-2008, 10:09 AM
Thank you very much! It works perfect now!

Matthias
01-25-2008, 10:52 AM
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/

jscheuer1
01-25-2008, 04:55 PM
You cannot have this (red) - looks like you inserted some scripts into the stylesheet:


<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:


<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:


window.onload=fillup;

from the motiongallery.js file, and add to your body onload:


<body onload="fillup();MM_preloadImages('images/nav/evemb.gif')">

Matthias
01-27-2008, 07:54 PM
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?

Matthias
01-28-2008, 05:06 PM
Please? This script has to work. It's urgent...