Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash 为什么我的叠加div不能在Internet Explorer中工作?_Flash_Internet Explorer_Html - Fatal编程技术网

Flash 为什么我的叠加div不能在Internet Explorer中工作?

Flash 为什么我的叠加div不能在Internet Explorer中工作?,flash,internet-explorer,html,Flash,Internet Explorer,Html,总之,我在我的网站顶部有一个flash横幅,上面有一个覆盖的div,为它创建链接。这实际上是我能让flash横幅链接的唯一方法,因为它有一个嵌入的actionscript,创建了一个不需要的链接 它在Chrome和Firefox中运行绝对完美,但拒绝在Internet Explorer中运行 我正在使用wordpress,它放在Header.php文件中。这段短代码就是flash横幅 <div align="center"> <div id="example" align="c

总之,我在我的网站顶部有一个flash横幅,上面有一个覆盖的div,为它创建链接。这实际上是我能让flash横幅链接的唯一方法,因为它有一个嵌入的actionscript,创建了一个不需要的链接

它在Chrome和Firefox中运行绝对完美,但拒绝在Internet Explorer中运行

我正在使用wordpress,它放在Header.php文件中。这段短代码就是flash横幅

<div align="center">
<div id="example" align="center" style="width:900px; height:90px; position:absolute; cursor:pointer;" >
</div>
[kml_flashembed movie="http://linktoflashbanner/728x90.swf" height="90" width="728" /]
</div>

<script type="text/javascript">
document.getElementById("example").onclick = function() {
    window.open("http://www.domaintolinkto.com.au/"); 
}
</script>

[kml_闪存电影=”http://linktoflashbanner/728x90.swf“height=“90”width=“728”/
document.getElementById(“示例”).onclick=function(){
窗口打开(“http://www.domaintolinkto.com.au/"); 
}

Internet Explorer似乎需要为覆盖层定义背景颜色,以便在嵌入式flash对象顶部捕捉鼠标事件

此外,还有更好的方法通过使用链接标记来应用链接。以下是一个工作示例:

HTML

<div class="flashWrapper">
    <a href="http://www.google.com" target="_blank"></a>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="90">
        <param name="movie" value="http://www.flashvortex.com/examples/289.swf?divId=289&amp;autoWidth=0&amp;autoHeight=0" />
        <param name="allowScriptAccess" value="always" />
        <param name="wmode" value="opaque" />
        <embed src="http://www.flashvortex.com/examples/289.swf?divId=289&amp;autoWidth=0&amp;autoHeight=0" width="728" height="90" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</div>

Internet Explorer似乎需要为覆盖定义背景颜色,以便在嵌入式flash对象顶部捕捉鼠标事件

此外,还有更好的方法通过使用链接标记来应用链接。以下是一个工作示例:

HTML

<div class="flashWrapper">
    <a href="http://www.google.com" target="_blank"></a>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="90">
        <param name="movie" value="http://www.flashvortex.com/examples/289.swf?divId=289&amp;autoWidth=0&amp;autoHeight=0" />
        <param name="allowScriptAccess" value="always" />
        <param name="wmode" value="opaque" />
        <embed src="http://www.flashvortex.com/examples/289.swf?divId=289&amp;autoWidth=0&amp;autoHeight=0" width="728" height="90" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</div>

奇妙的答案,在所有浏览器中都能完美运行。非常感谢你的帮助+1 thx@3dgoo在尝试了所有其他我能想到的Internet Explorer工作方式后,背景技巧一直在逃避我,有时这种方式很奇怪。很高兴我能帮助@charlietflfantistic解答,在所有浏览器中都能完美运行。非常感谢你的帮助+1 thx@3dgoo在尝试了所有其他我能想到的Internet Explorer工作方式后,背景技巧一直在逃避我,有时这种方式很奇怪。很高兴我能帮助@charlietfl