可加装广告的swf播放器JS代码
加载flash动画前可以加载代码,设定广告显示秒数这些,还有些小bug,等有空了修复好法上来给大家
??
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>管宁割席_管宁割席的故事_管宁割席flash动画_成语故事_智慧妈咪育儿网</title>
<meta name="keywords" content="flash成语故事,早教成语故事,管宁割席">
<meta name="description" content="“管宁割席”的故事传颂至今,人们一直把管宁作为不慕荣华,不贪金钱的典型加以宣传。但管宁不能一分为二地看待自己的朋友,只采取绝交的态度,实在过于片面。">
<link type="text/css" rel="stylesheet" href="http://www.zhihuimami.com/statics/css/content.css"/>
<script type="text/javascript" src="http://www.zhihuimami.com/statics/js/common_gequ.js"></script>
<script type="text/javascript" src="http://www.zhihuimami.com/statics/js//jcore.js"></script>
<script type="text/javascript" src="http://www.zhihuimami.com/statics/js//yule_player_play.js"></script>
<script type="text/javascript" src="http://www.zhihuimami.com/statics/js//playdetails.js"></script>
<script type="text/javascript" src="http://www.zhihuimami.com/statics/js//swfobject.js"></script>
</head>
<body>
<div class="play_card">
<div class="play_main">
<div class="bd_ads" id="bd_ads"></div>
<!--播放导航--->
<div class="pd_play_content_left">
<!--播放器及赶兴趣列表-->
<div class="">
<!--屏幕-->
<div class="pd_play_details">
<!--播放主屏幕-->
<div class="pd_play" id="flashContainer">
<!--左广告-->
<div id="ad_left" >
<div class="adInfo" ></div>
</div>
<div id="Myflash"></div>
<input type="hidden" id="flashData" value="http://www.zhihuimami.com/uploadfile/2012/1115/20121115041937693.swf">
<!--播放控制按钮-->
<div class="pd_play_bottom2 closearea" id="closeArea" >
<div class="pd_play_contorl">
<span class="pd_play_pause2" onclick="changebtn(3,this)" id="p_play_span2"><a href="javascript:PlayFlashMovie();" id="pp_play" title="播放"></a></span>
<span class="pd_play_up2"><a href="http://www.zhihuimami.com/chengyugushi/63.html" title="上一个"></a></span>
<span class="pd_play_next2"><a href="http://www.zhihuimami.com/chengyugushi/65.html" title="下一个"></a></span>
<span class="pd_play_stop2" ><a href="javascript:RewindFlashMovie();" id="pp_rewind" title="重播"></a></span>
</div>漫画图片
<div class="pd_play_links">
<span class="pd_play_small2"><a href="javascript:normalWindow();" id="closeflash2" title="退出"></a></span>
</div>
</div>
</div>
</div>
<!--播放器按钮-->
<div class="pd_play_bottom">
<div class="pd_play_contorl">
<span class="pd_play_pause" onclick="changebtn(1,this)" id="p_play_span"><a href="javascript:PlayFlashMovie();" id="p_play" title="播放"></a></span>
<span class="pd_play_up"><a href="http://www.zhihuimami.com/chengyugushi/63.html" id="p_previous"></a></span>
<span class="pd_play_next"><a href="http://www.zhihuimami.com/chengyugushi/65.html" id="p_next"></a></span>
<span class="pd_play_stop" ><a href="javascript:RewindFlashMovie();" id="p_stop" title="结束"></a></span>
<span class="pd_play_big"><a href="javascript:maxWindow();" id="p_fscreen" title="全屏"></a></span>
</div>http://www.bizhizu.cn/manhua/katong/
<div class="pd_play_links">
<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_b" >
<img src="http://bdimg.share.baidu.com/static/images/type-button-6.jpg?cdnversion=20120831" />
<a class="shareCount"></a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=button&uid=831303" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
</script>
<!-- Baidu Button END -->
</div>
</div>
</div>
</div>
<!--通栏广告-->
<div id="ad1"></div>
<div>
</div>
<!--[if IE 6]>
<script type="text/javascript">document.execCommand("BackgroundImageCache", false, true);</script><![endif]-->
</div>
<div id="ads_play_load" >
<!--广告代码开始-->
这里可以放谷歌等广告代码
<!--广告代码结束-->
</div>
<!--播放器参数设置-->
<script type="text/javascript">
$(document).ready(function() {
$("#ad_left").html("请稍后,动画正在加载中...");
$("#ad_left").css(‘width‘,‘728px‘);
$("#ad_left").css(‘text-align‘,‘center‘);
$("#ad_left").css(‘padding-top‘,‘55px‘);
$("#ad_left").css(‘height‘,‘330px‘);
$("#ad_left").css(‘border‘,‘0px‘);
$("#ad_left").css(‘display‘,‘block‘);
$("#ad_left").html($("#ads_play_load").html());
var info = $(‘<div class="adInfo" >请稍后,动画正在加载中...</div>‘);
$("#ad_left").append(info);
var timer20 = 3; //设置广告播放秒数
var timer2 = window.setInterval(function() {
$(".adInfo").html("广告剩余" + timer20 + "秒")
timer20--;
if (timer20 == -1) {
$("#ad_left").css("display", "none");
window.clearInterval(timer2);
var flashData2 = document.getElementById("flashData").value;
swfobject.embedSWF(flashData2, "Myflash", "100%", "95%", "9.0.0", "images/expressInstall.swf");
}
}, 1000)
});
</script>
<div class="clear"></div>
</div>
<div class="index_box">
</div>
</body>
</html>
?
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。