建站资讯

网页播放软件因界面过小而按钮重叠的解决方案

作者:admin 发布时间:2020-08-03
伟明网站制作 ::05 人气指数:5031 人/次 字体:大 中 小

  今天给客户做一个视频在线观看器模块,因播放软件过小导致按钮重叠起来,如下图:

 

  经过一番研究,石家庄市企业网站建设(p>

 

以下是引用片段:

script type="text/javascript" src="swfobject.js" /script
div id="CuPlayer" /div
script type=text/javascript
var so = new SWFObject("Player.swf","CuPlayer","200","150","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("ess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
so.addVariable("CuPlayerFile","move.flv");//视频文件格式地址
so.addVariable("CuPlayerShowImage","true");
so.addVariable("CuPlayerWidth","200");//视频宽度
so.addVariable("CuPlayerHeight","150");//视频高度
so.addVariable("CuPlayerAutoPlay","yes");//是否全屏播放
so.addVariable("CuPlayerAutoHideTime","6");
so.addVariable("CuPlayerVolume","80");
so.addVariable("CuPlayerGetNext","false");
so.write("CuPlayer"); 
/script

  上面的效果如下图:

 

  下载文件:Player.rar

 

石家庄市企业网站建设公司-伟明网站制作,拥有设计专业团队为企业提供网站制作,网页设计,


收缩