在线客服QQ: 176797520 极酷FlvPlayer在线客服 酷播网页视频播放器

4.6.3 暂停广告





暂停广告:
视频播放时,当点击暂停时,会显示一个暂停广告;
支持swf,jpg,gif,png文件格式,均可以添加广告链接地址。
例(4.6.3)-1:调用方式一

//HTML代码参数
<script type="text/javascript" src="images/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/Player/Player.swf","ply","520","325","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
so.addVariable("JcScpFile","/Player/CuSunV2Set.xml");
so.addVariable("JcScpVideoPath","http://vhotwsh.video.qq.com/flv/209/39/7DyThulBJia.mp4");
so.addVariable("JcScpImg","/Player/Images/flashChangfa2.jpg");
......
//-暂停广告-----------------------------
so.addVariable("ShowJcScpAPause","yes"); //是否显示暂停广告
so.addVariable("JcScpAPauseW","375"); //暂停广告宽度
so.addVariable("JcScpAPauseH","230"); //暂停广告高度
so.addVariable("JcScpAPausePath","Images/Apause375x250.jpg");  //广告地址
so.addVariable("JcScpAPauseLink","http://yxp.163.com/act/20120214.html"); //广告链接地址
......
so.write("CuPlayer");
</script>

例(4.6.3)-2:调用方式二

//HTML代码参数
<script type="text/javascript" src="images/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/Player/Player.swf","ply","520","325","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
so.addVariable("JcScpFile","/Player/CuSunV2Set.xml");
so.addVariable("JcScpVideoPath","http://vhotwsh.video.qq.com/flv/209/39/7DyThulBJia.mp4");
so.addVariable("JcScpImg","/Player/Images/flashChangfa2.jpg");
so.write("CuPlayer");
</script>

//配置文件参数
......
<Flashvars_Set
JcScpServer =""
JcScpVideoPath = "http://mv.top100.cn/special_26851/Everytime.flv"
JcScpVideoPathHD = "http://mv.top100.cn/special_26851/Everytime.flv"
JcScpImg ="Images/flashChangfa2.jpg"
......
ShowJcScpAPause = "yes"
JcScpAPausePath = "Images/SevenColorPlayer_a1.swf"
JcScpAPauseW = "375"
JcScpAPauseH = "230"
JcScpAPauseLink = "http://yxp.163.com/act/20120214.html"
......