This article describes the universal flv web player code implemented by js. Share it for your reference, as follows:
<div id="player5"><script type="text/javascript" src="swfobject.js"></script><script type="text/javascript"> var s5 = new SWFObject("FlvPlayer201002.swf","playlist","300","210","7"); s5.addParam("allowfullscreen","true"); s5.addVariable("autostart","false"); s5.addVariable("image","flash5.jpg"); s5.addVariable("file","nobody.flv"); s5.addVariable("width","300"); s5.addVariable("height","210"); s5.write("player5");</script></div>Attached:
swfobject.js' official address: http://blog.deconcept.com/swfobject/
For more information about JavaScript, please check the topics of this site: "Summary of JavaScript switching effects and techniques", "Summary of JavaScript search algorithm skills", "Summary of JavaScript animation effects and techniques", "Summary of JavaScript errors and debugging techniques", "Summary of JavaScript data structures and algorithm skills", "Summary of JavaScript traversal algorithms and techniques", and "Summary of JavaScript mathematical operations usage"
I hope this article will be helpful to everyone's JavaScript programming.