Home > Web Front-end > JS Tutorial > body text

Add a hyperlink to Flash (transparent layer recommended) compatible with mainstream browsers_javascript skills

WBOY
Release: 2016-05-16 17:32:28
Original
1096 people have browsed it

Today I want to add a hyperlink to a Flash on Xingzhu.com. I originally wanted to put a hyperlink directly outside the object, but after trying it, I found that this is not the case. I asked Baidu to help solve the problem. The record is as follows:

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

Solution:

First method: The steps are as follows
1. Put the Flash file in a layer, set it to the bottom layer, and set FLASH to transparent.

Copy code The code is as follows:


codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6, 0,0,0"
width="948" height="93" id="flashlogo" >


type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">

< /STRONG>


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

Description: The transpanrent.gif needs to be transparent, otherwise it will be covered by the Flash underneath;
3. For IE browser, just go to the above step, and Firefox needs the next step
Add
Copy code The code is as follows:
wmode="transparent"


Full code As follows:
Copy code The code is as follows:





The second option was found online but has not been tried, as follows :
It is to call external scripts through FSCommand inside Flash. The method is simple and practical, with strong controllability. For specific usage, please search for FSCommand keywords online.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template