SoFunction
Updated on 2025-03-01

Add a hyperlink to Flash (recommended to use transparent layer) compatible with mainstream browsers

Today I want to add a hyperlink to a Flash on Xingzhu. I originally wanted to directly attach a hyperlink outside the object, but after trying it, I found that this is not the case. I asked Baidu for help, the problem was solved, and the records are as follows:

reason:Flash is the highest level by default. Therefore, I often encounter situations where Flash blocks the drop-down menu and covers other elements.

Solution:

The first one: the steps are as follows
1. Put the Flash file into a layer, set it to the lowest layer, and set FLASH to transparent.
Copy the codeThe code is as follows:

<div class="ad_top" style="text-align:center;">
<object class
codebase="/pub/shockwave/cabs/flash/#version=6,0,0,0"
width="948" height="93" >
<param name="movie" value="../../templets/content/images/">
<param name="quality" value=high>
<embed src="../../templets/content/images/" quality=high width="948" height="93" name="flashlogo"
type="application/x-shockwave-flash" pluginspage="/go/getflashplayer">
</embed>
<STRONG><SPAN style="COLOR: #cc0000"><param name="wmode" value="transparent" /></SPAN></STRONG>
</object></div>

2. Add another layer to the FLASH layer, and Flash itself cannot directly add onclick and other events, so you can only use other things. Just add a transparent layer to FLASH:
Copy the codeThe code is as follows:

<div style="cursor: hand; position:absolute; top:142px; width:948px; height:93px; z-index:1; visibility: visible; text-align:center;"><a href="" target="_blank"> <img src="/templets/content/images/" width="948" height="93" border="0"></a></div>

illustrate:If it is transparent, it will cover the Flash below;
3. IE browser can go to the above step, and Firefox needs the next step
Add in embed
Copy the codeThe code is as follows:

wmode="transparent"

The complete code is as follows:
Copy the codeThe code is as follows:

<div class="ad_top" style="text-align:center;">
<object class codebase="/pub/shockwave/cabs/flash/#version=6,0,0,0" width="948" height="93" >
<param name="movie" value="../../templets/content/images/"> <param name="quality" value=high>
<embed src="../../templets/content/images/" quality=high width="948" height="93" name="flashlogo" type="application/x-shockwave-flash" pluginspage="/go/getflashplayer" wmode="transparent"> </embed>
<param name="wmode" value="transparent" />
</object>
</div>
<div style="cursor: hand; position:absolute; top:142px; width:948px; height:93px; z-index:1; visibility: visible; text-align:center;"><a href="" target="_blank"> <img src="/templets/content/images/" width="948" height="93" border="0"></a></div>

The second solution, I didn’t try it online, as follows:
It is to call external scripts through FSCommand within Flash. The method is simple and practical, with strong controllability. For specific usage, please search for FSCommand keywords online.