Voici un exemple qui utilise ton flux ATOM :
Code de la page contenant le Image Rotator
(test.php pour l´exemple) :
--------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>JW Image Rotator</title>
</head>
<body>
<object type="application/x-shockwave-flash"
data="imagerotator.swf"
wmode="transparent"
flashvars="file=external_feed.php&shownavigati
on=true" height="380" width="480">
<param name="movie" value="imagerotator.swf" />
<param name="wmode" value="transparent" />
<param name="flashvars"
value="file=external_feed.php&shownavigation=t
rue" />
</object>
</body>
</html>
--------------------------------------------------
Code du fichier external_feed.php :
--------------------------------------------------
<?php
/*
You can use this script to pass-through a playlist from an external server to the players.
Just insert the url to external playlist below and copy this file to your server.
You can use the flashvar "file=external_feed.php" in your HTML feed this script to the player.
// build file headers
header("content-type:text/xml;charset=utf-8");
// refer to file
readfile("
http://api.flickr.com/services/feeds/pho
tos_public.gne?id=10769950@N05&lang=fr-fr&
format=atom");
// that´s all
exit();
?>
--------------------------------------------------
Dans readfile, c´est l´url de ton flux ATOM soit :
http://api.flickr.com/services/feeds/photos_public.gne?id=10769950@N05&amp;lang=fr-fr&amp;format=atom
- J´ai remplacé un & par & vers la fin.
Tu as trois fichiers situé au même endroit :
test.php
external_feed.php
imagerotator.swf
- Cet exemple fonctionne et il affiche deux images (les deux t-shirts).
- J´ai supposé que tu as un serveur pouvant interprêté du code PHP.