html - How to use a while loop for Flow Player in php? -
i have videos coming server. first video player works fine rest empty not sure why here have right now.
while($row = mysql_fetch_assoc($query12)) { echo"<a href='$urls' style='display:block;width:520px;height:330px' id='player'> </a> <br/> <br/>"; }
and flow player
<script> flowplayer("player", { src:"flowplayer-3.2.16.swf", wmode: "opaque" // allows html hide flash content }, { clip: { autoplay: false } }); </script>
you can replace id
class
, initialise players targeting class name.
example
php/html
while($row = mysql_fetch_assoc($query12)) { echo"<a href='$urls' style='display:block;width:520px;height:330px' class='player'> </a> <br/> <br/>"; }
js
<script> flowplayer("a.player", { src:"flowplayer-3.2.16.swf", wmode: "opaque" // allows html hide flash content }, { clip: { autoplay: false } }); </script>
this setup multiple players on page.
Comments
Post a Comment