Hi there, I also was interested in this image scroller. I first tried the AC_RunActiveContent.js, in the beginning it gave me red boxes scrolling with the example. But with foto's it didnt work nicely. I followed the thread from Hama and liked that option. I saw he used different java which i believe is already superseeded by newer version, so i tried the swfobject.js (version 1.5). That worked at some point and the one made for Hama was also just what i wanted.
I carried out some more enhancement. Than i noticed that the scroller didnt work in Explorer (i use Firefox 3). Then I closed Firefox and upon reopening the scroller didnt work anymore (perhaps I had been working with a cached version???). I have been trying everything now, tested with other swf files, which do work (for instance swfobject.html). So nowi have come to a point that in both browsers the scroller is still not visible, but somehow working, upon clicking i see the intermediate picture. I can see the www is chopped of for some reason, i dont know if that has something to do with it.
Is the swf then damaged or what is going on? Why did it work at some point and then not anymore?
Here is the code i use in <?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
$path=$CONFIG['site_url'];
$xml = '<?xml version="1.0" encoding="iso-8859-1"?><content>';
if ($FORBIDDEN_SET != "") $FORBIDDEN_SET = "AND $FORBIDDEN_SET";
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' ORDER BY RAND() LIMIT 10");
while ($row = mysql_fetch_array($result))
{
$type = max($row['pwidth'], $row['pheight']) > $CONFIG['picture_width'] ? 'thumb' : 'thumb';
$xml .= "<image><path><![CDATA[" . $path . get_pic_url($row, $type) . "]]></path><description><![CDATA[" . $row['title'] . "]]></description><data><![CDATA[" . $path . "displayimage.php?pos=-" . $row['pid'] . "]]></data></image>";
}
$xml .= '</content>';
echo $xml;
?>
and in the anycontent page
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css" media="screen">
object {
outline:none;
}
#flashcontent {
width: 500px;
height: 220px;
}
</style>
</head>
<body bgcolor="#000000" scroll="auto">
<tr align="center" valign="middle"><td>
<div id="flashcontent"><strong>You need to upgrade your Flash Player</strong>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("flow_link.swf", "flow_link", "500", "220", "9", "#FFFFFF");
so.addVariable("xmlPath", "http://www.fotofantastic.nl/flow33.php"); <!-- absolute path to flow.php -->
so.addParam("quality", "high");
so.addParam("scale", "noscale");
so.addParam("wmode", "transparent");
so.write("flashcontent");
// ]]>
</script>
</td></tr>
<p><br>
<tr align="center" valign="middle"><td class="tableb" >
<div align="justify"><img src ="images/cath_marco.png" align="left" valign="30">
<p>
<b>Welkom op onze site</b>. Wij zijn Cathelijne en Marco. In onze mooie relatie doen wij veel leuke dingen zoals dierenparken en motorraces bezoeken, motorrijden en van dat alles fotos te nemen. Daarnaast doen wij met veel plezier fotoshoots waarbij mijn allerliefste Cath model is en ik de fotograaf ben, (omdat wij een liefdesteam zijn).<BR />
Veel kijkplezier op deze door Cathelijne gemaakte website, Cath & Marco. P.S. deze site is nog in aanbouw, dus als iets (nog) niet goed werkt...... </div>
</td></tr>