且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在PHP中使用Flow Player的while循环?

更新时间:2023-02-11 14:25:52

You can replace the id for a class and initialise the players targeting the 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" // This allows the HTML to hide the flash content
    }, {
        clip: {
        autoPlay: false
       }
    });
</script>

This will now setup multiple players on your page.

相关阅读

技术问答最新文章