Index du Forum » » Image et Vidéo

Auteur

[Résolu] - Image rotator
Jireck
2520       
 Modules Team

  Posté : 08-07-2014 21:51

Essaye cela



function rotator($conf_file,$playlist, $width=150,$height=115,$show nav="false",$screencolor="0xFFFFFF") {
   if ($conf_file)
      !include!("images-rotator.conf.php");
   $ibid=uniqid("JW");
   $content="<div id=\"div_rotator$ibid\"></div& gt;";
   $content.="<script type=\"text/!javascript!\"  src=\"modules/images-rotator/swfobject.js\"></script>";
   $content.="<script type=\"text/!javascript!\"> < br />      //<![CDATA[
      var s1 = new SWFObjec t(\"modules/images-rotator/imagerotator.swf\",\"rotator$ibid\",\"$width\",\"$he ight\",\"1\");
      s1.addVariable(\"file\",\"modules/images- rotator/xml/$playlist.xml\");
      s1.addVariable(\"width\",\"$width\");
      s1.addVariable(\"height\",\"$height\"); < br />      s1.addVariable(\"searchbar\",\"false\");
      s1.addVariable(\"shownavigation\",\"$show nav\");
      s1.addVariable(\"screencolor\",\"$screenc olor\");
      s1.write(\"div_rotator$ibid\");
      //]]>
   </script>";
    global $block_title;
    if ($block_title=="")
      $title=translate("Images Rotator");
    else
      $title=$block_title;
    themesidebox($title, $content);
   
}




Cet article provient de Modules NPDS

http://modules.npds.org/viewtopic.php?topic=3240&forum=109