javascript - 为什么 Internet Explorer 11 不接受这个 clickTAG flash 变量?

标签 javascript html flash internet-explorer-11 google-dfp

Google DFP 为 Flash 横幅生成的代码在 Internet Explorer 11 中不起作用。问题是未读取“clickTAG”变量(它被定义为“未定义”)。

如果我在模拟 IE10 模式下运行 IE11,横幅将起作用。

我的问题是是否有人可以查看下面的代码是否有任何问题。

<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<style type="text/css">
<!--
a:link { color: #000000 }a:visited { color: #000000 }a:hover { color: #000000 }a:active { color: #000000 }  -->
</style>

<script type="text/javascript">
<!--
(function(){window.ss=function(){};})();(function(){var c=function(a,e,h){var b=document;b.addEventListener?b.addEventListener(a,e,h||!1):b.attachEvent&&b.attachEvent("on"+a,e)};var d,f=!1,g=!1;c("mousedown",function(){f=!0});c("keydown",function(){g=!0});document.addEventListener&&c("click",function(a){d=a},!0);window.accbk=function(){var a=d?d:window.event;return a?f||g?!1:(a.preventDefault?a.preventDefault():a.returnValue=!1,!0):!1};})();function st(id) {var a = document.getElementById(id);if (a) {}}function ha(a,x){  if (accbk()) return;}function ca(a) {window.open(document.getElementById(a).href);}function ia(a,e,x) {if (accbk()) return;}function ga(o,e,x) {if (document.getElementById) {var a=o.id.substring(1),p="",r="",g=e.target,t,f,h;if (g) {t=g.id;f=g.parentNode;if (f) {p=f.id;h=f.parentNode;if (h)r=h.id;}} else {h=e.srcElement;f=h.parentNode;if (f)p=f.id;t=h.id;}if (t==a||p==a||r==a)return true;ia(a,e,x);window.open(document.getElementById(a).href);}}
//-->
</script>
<title></title>

<style type="text/css">
 body.c4 {background:transparent}
 div.c3 {position:relative;width:990px;height:240px;z-index:1000}
 div.c2 {position:relative;z-index:1001;width:990px}
 div.c1 {position:absolute;left:0px;z-index:1001}
</style>
</head>
<body class="c4">
<div id="google_flash_inline_div" class="c2">
<div id="google_flash_div" class="c1"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="google_flash_obj" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="990" height="240"><param name="movie" value="https://tpc.googlesyndication.com/pagead/imgad?id=CICAgICQv7mzShDeBxjwASgBMggY7LA9fUdj5g">
<param name="quality" value="high">
<param name="AllowScriptAccess" value="never">
<param name="wmode" value="opaque">
<param name="FlashVars" value="clickTAG=http://googleads.g.doubleclick.net/aclk%3Fsa%3Dl%26ai%3DCu9aee9GNUsPOFoS-yAOUhoGwAQEAexABILlgKARQ7pa9qv______AYgBAZABAMABAsgBBOACAagDAaoEVU_QlAYttWO5-9IxgKZ4VN1XHdRio1XcLTcx9QQf8tVpX1PUExFkbtCwGDDpSY9K8rNfS-Wuk70W-FbO01WTo0Ulq5ZEbrFMQ3RQDQ5xIESl-2LaEpe4BAE%26preview%3D%26num%3D1%26sig%3DAOD64_0pjWqfH6mwz0BOadU_gncO7GRTjQ%26client%3Dca-gfp-rama1%26adurl%3Dhttp://www.jalmersur.se">
<object data="https://tpc.googlesyndication.com/pagead/imgad?id=CICAgICQv7mzShDeBxjwASgBMggY7LA9fUdj5g" id="google_flash_embed" width="990" height="240" type="application/x-shockwave-flash"></object></object></div>
</div>
<div class="c3"></div>
<!--[if IE]><script language="javascript" src="https://tpc.googlesyndication.com/pagead/inject_object_div.js"> </script><![endif]-->
</body>
</html>

运行示例:https://partner.googleadservices.com/gampad/ads?client=ca-gfp-rama1&gct=PwwFS2Vs1nEKcwsYBCAAMgA6AEoAaOienP080AGAgICAkL-5s0qaAx1hcHBsaWNhdGlvbi94LXNob2Nrd2F2ZS1mbGFzaKgD1AewA_AB0AMAgATeB4gE8AGgBALQDxXaEBdodHRwOi8vd3d3LmphbG1lcnN1ci5zZQz4DAEYkZ63lAUoADCRuuybBTgAWAFqBl9ibGFua3DXs7iFBQ&height=240&width=990

最佳答案

Google DFP 的一种解决方案是使用名为“带有可选第三方跟踪的 Flash 横幅”的创意模板。它有点高级,使用起来也不方便,但这是我目前想到的最好的。

关于javascript - 为什么 Internet Explorer 11 不接受这个 clickTAG flash 变量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20117032/

相关文章:

actionscript-3 - 使用Actionscript 3.0淡入声音

actionscript-3 - Flash/AS3-预加载或流式嵌入声音

javascript - 变量作为 JavaScript 对象文字中的属性名称?

javascript - HTML 拖放持久化

javascript - 响应式方形图像和文本网格

JQuery MouseUp 报告 CHILD 元素

javascript - 使用 JavaScript 两次(或多次)插入 HTML 元素

javascript - Angular 6 : TypeError: Unable to get property 'nativeElement' of undefined or null reference

html - CSS 布局问题(twitter bootstrap)

flash - flash如何打开端口来监听服务器请求?