Hyperlink 将其他链接放置在内部链接的闪存元件上

Hyperlink 将其他链接放置在内部链接的闪存元件上,hyperlink,flash,Hyperlink,Flash,如何更改flash元素内部的链接?我有一个SWF文件,里面有一个链接,我想在网站上改成我的。这个东西我需要控制广告系统 尝试此操作,但不起作用: <style> #content { position: absolute; z-index:2; } #flash { position: relative; z-index:1; } </style> <div id="content" onclick="window.open('http://

如何更改flash元素内部的链接?我有一个SWF文件,里面有一个链接,我想在网站上改成我的。这个东西我需要控制广告系统

尝试此操作,但不起作用:

<style>
#content {    
position: absolute;
z-index:2; 
} 
#flash {   
position: relative;
z-index:1; 
} 
</style>

<div id="content" onclick="window.open('http://mylink.com','_blank');"><img src="no" width="100" height="100" border="0"></div>

<div id="flash"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" width="100" height="100">
<param name="movie" value="111.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed src="111.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="100" height="100"></embed>
</object></div>
现在我们找到了这个例子:

<div style="border: #FF9900 3px dotted; width: 400px; height: 200px;">
     <object id="swf">
        <embed src="/uploads/storys_files/2006.03.15_15.55.30/123.swf" loop="true" quality="high" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="200" width="400">
     </object><a href="#"><img src="http://yapro.ru/uploads/users/1/2010/12/16/782d4b5d3c55bdc50619b8aa141b4ecc.gif" height="170" width="350" style="border: #99FF00 3px dotted; position: relative; top: -190px; left: 20px; margin-bottom: -170px; z-index: 1;"></a>
</div>
但每次都需要输入上、左、下边距参数。有人可以修改它,使其在不指向顶部、左侧、边距底部参数的情况下正常工作吗?

您需要.FLA文件来编辑源代码并重新编译,除非SWF是XML驱动的。但这听起来不像是你建造的东西

下面是如何进行div覆盖

HTML代码:


以下是如何忽略SWF闪存文件的内部程序链接而在SWF闪存文件上放置任何链接的决定:

<div style="position:relative;">

<div style="z-index:822; position:absolute; width:inherit; height:inherit; cursor:hand; cursor:pointer;">
<img src="transparent.gif" width="100" height="100" onclick="location.href='http://webproverka.com';">
</div>

<object >
<embed src="111.swf" loop="true" wmode="opaque" quality="high"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="100" width="100">
</object>


</div> 

@如果我没有FLA文件怎么办?有没有办法改变一个链接或者把我的链接放在SWF文件上?不是真的,至少不是通过flash。您可以在SWF上覆盖HTML@TNC执行您的示例,flash和内容层分别显示,而不是一对一是的,我不会为您构建所有内容:我让您开始了,看起来您得到了所需的内容。
#content {
    background-color:#0099ff;
    height:200px;
    width:300px;
    position:fixed;
    margin-left:100px;
    z-index:2;
}
#flash {
    background-color:#ccff33;
    height:300px;
    width:600px;
    position:fixed;
    margin-top:100px;
}
<div style="position:relative;">

<div style="z-index:822; position:absolute; width:inherit; height:inherit; cursor:hand; cursor:pointer;">
<img src="transparent.gif" width="100" height="100" onclick="location.href='http://webproverka.com';">
</div>

<object >
<embed src="111.swf" loop="true" wmode="opaque" quality="high"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="100" width="100">
</object>


</div>