Embed适用于Firefox和Safari,但不适用于Internet Explorer 8
Embed works in Firefox and Safari, but not in Internet Explorer 8
我有一个基于flash的广告,显示/隐藏基于一些javascript。它适用于Firefox, Safari, Chrome…但在Internet Explorer 8中没有。这是为了在节日期间向非营利组织捐款,所以任何帮助都会很好。
见试验现场。
谢谢!彼得。
,Var pop_suppress = "true";<div class="grid_12 alpha omega"> <script type="text/javascript"> GA_googleFillSlot("360_dropdown"); </script><script src="http://pubads.g.doubleclick.net/gampad/ads?correlator=1323096793738&output=json_html&callback=GA_googleSetAdContentsBySlotForSync&impl=s&client=ca-pub-1030295571732009&slotname=360_dropdown&page_slots=360_dropdown&cookie_enabled=1&url=http%3A%2F%2Fdemo-studio360.wnyc.net%2F&lmt=1323096764&dt=1323096793743&biw=1201&bih=961&adk=203353989&ifi=1&u_tz=-360&u_his=2&u_java=true&u_h=1200&u_w=1920&u_ah=1174&u_aw=1920&u_cd=24&u_nplug=10&u_nmime=85&flash=11.0.1&gads=v2&ga_vid=901695308.1323096794&ga_sid=1323096794&ga_hid=1643565815"></script><div id="google_ads_div_360_dropdown_ad_container"><script language="javascript" type="text/javascript" src="http://www.pri.org/developer/js/flash_v3005.js"></script>
function show_div(div_id) { // hide all the divs document.getElementById('pencil').style.display = 'none'; document.getElementById('expand').style.display = 'none'; document.getElementById('intro583325').style.display = 'none'; // show the requested div document.getElementById(div_id).style.display = 'block'; }
function auto_show_div(div_id) { // hide all the divs document.getElementById('pencil').style.display = 'none'; document.getElementById('expand').style.display = 'none'; document.getElementById('intro583325').style.display = 'none'; // show the requested div document.getElementById(div_id).style.display = 'block'; }
//<div style="position: absolute; top: 1px; right: 1px;"> <a href="" onclick="show_div('expand'); return false;" style="outline: none;"><img src="http://www.pri.org/developer/images/adtop_expand.png" alt="Expand Ad" border="0" height="23" width="23"></a> </div>
var SOB=new flashObj(); var enc_goto = escape("http://secure.publicbroadcasting.net/pri/banner/pledge.pledgemain"); var enc_goto2 = escape(""); SOB.ID = "reexpand_ad"; SOB.flashFile = "http://media.wnyc.org/media/resources/2011/Nov/30/360pushdown.swf"; SOB.DenyIEdl = "TRUE"; SOB.wmode = "opaque"; SOB.width = "960"; SOB.height = "230"; SOB.FlashVer = 9; SOB.cabVersion = "9,0,0,0"; SOB.altTxt = '<a href="http://www.pri.org/give-pri.html" target="_new">Give to PRI</a>'; SOB.render(true);
//]]><a href="" onclick="show_div('pencil'); return false;" style="outline: none;"><img src="http://www.pri.org/developer/images/adtop_collapse.png" alt="Contract Ad" border="0" height="23" width="23"></a> </div>
//["内容到频率上限的ID ", "显示频率间隔(仅限整小时)"]var capcontent=new Array()Capcontent [0]=["intro583325", "24小时"]get_cookie(Name) {var search = Name + "="Var returnvalue = ";如果(。。长度> 0){//<! [CDATA[ var SOB=new flashObj(); var enc_goto = escape("http://secure.publicbroadcasting.net/pri/banner/pledge.pledgemain"); var enc_goto2 = escape(""); SOB.ID = "intro_ad"; SOB.flashFile = "http://media.wnyc.org/media/resources/2011/Nov/30/360pushdown.swf"; SOB.DenyIEdl = "TRUE"; SOB.wmode = "opaque"; SOB.width = "960"; SOB.height = "230"; SOB.FlashVer = 9; SOB.cabVersion = "9,0,0,0"; //SOB.altTxt = '<a href="http://www.pri.org/give-pri.html" target="_new">Give to PRI</a>'; SOB.render(true); //]]> </script><embed src="http://media.wnyc.org/media/resources/2011/Nov/30/360pushdown.swf" swliveconnect="FALSE" quality="best" scale="exactfit" flashvars="null" wmode="opaque" id="intro_ad" name="flash2" menu="false" devicefont="false" salign="lt" allowscriptaccess="Always" allownetworking="All" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" height="230" width="960"> <div style="position: absolute; top: 1px; right: 1px;"> <a href="" onclick="show_div('pencil'); return false;" style="outline: none;"><img src="http://www.pri.org/developer/images/adtop_collapse.png" alt="Contract Ad" border="0" height="23" width="23"></a> </div>
}返回returnvalue;}函数resetcookie (id) {var expireDate = new Date()expireDate.setHours (expireDate.getHours(-10年))文档。cookie = id+"=;path=/;expires=" + expireDate.toGMTString()}函数showorhide (caparray) {如果(get_cookie (caparray [0]) ! =) {文档。write("#"+caparray[0]+"{display: none;}'n")//CSS隐藏内容.style . getelementbyid("铅笔")。Display = 'block';其他}{var t = setTimeout("auto_show_div(‘铅笔’)",14000年);var expireDate = new Date()expireDate.setHours (expireDate.getHours() +方法(caparray [1]))文档。cookie = caparray[0]+"="+parseInt(caparray[1])+";path=/;expires=" + expireDate.toGMTString()}}document . write("' n")(我= 0;我")offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) }
</div>
很确定ie浏览器不支持嵌入标签。我建议使用swfobject框架来加载Flash内容
相关文章:
- HTML5 Canvas toDataURL(“image/png”)适用于一些绘画,而有些则不然,不确定原因
- JavaScript不显示剩余字符,但适用于其他页面
- 我如何完善这个Javascript代码,使其只适用于来自图像的链接(而不是来自文本的链接)
- 为什么这只适用于身体部分而不是头部
- 为什么不't此正则表达式适用于重复出现的对
- document.getElementById 对内部 html 的调用适用于 $_POST 和 $_GET 变量,但不
- JavaScript 位置适用于本地主机而不是服务器
- Rally App SDK 2.0:Rallymultiobjectpicker,适用于不显示displayField的
- jQuery事件在Mozilla上不起作用,并且适用于其他浏览器
- Angular.js - 控制器不为索引执行,适用于其余模板
- D3 .on 更改适用于文本而不是图表
- Zillow 数据 - json_encode不起作用 - 适用于常规变量
- 弹出模式仅适用于表格中的第一个元素,第二次单击后不会再次打开
- Phonegap Android项目适用于模拟器,而不是实际的手机
- ajax jonp 不应该适用于 请求的上不存在“访问控制-允许源”标头
- AngularJS:ng-单击不起作用,适用于<按钮>
- Javascript不会在移动设备上加载.适用于桌面
- 为什么我的代码适用于高度:100px,而不是高度:100%
- 拖放区.js + Laravel-多文件上传不起作用(仅适用于一个文件)
- 哪些限制适用于不透明响应