This article mainly introduces the implementation code that uses html to add links to FLASH. It is implemented through the div layer and is compatible with multiple browsers, including chrome, ie, and firefox. Today, a customer wants to advertise, the materials are flash. Although we don't like them very much, we can't help it. Customers like flash. For fear that some browsers or software will block the link that comes with flash. Do you need to add a link through html, otherwise it will not work well. You know the consequences.
I did it a few years ago when I helped others maintain it. After a long time, I felt very unfamiliar. I have made some special preparations here to help my friends who need it. I hope you can support me more.
The following is the complete code. Because the flash files are large, we use iframe to load the advertisement:
Copy XML/HTML Code to clipboard
-
-
-
-
- Flash and link _ private
-
-
-
-
-
-
-
-
-
Now the advertising manager is not easy to use, Baidu manager stops other materials, cnzz is blocked by 360, and google's access is slow. It is not easy to enter the background. You can't just put it on your own server.
Notes:
In this example, touming.png is a 1-pixel transparent png file. If the image is not needed, the link in ie is incorrect.
Of course, css style is the most important. First, position: relative, and then position: absolute;
Later, I saw a method provided by someone else on the Internet. Through the button, it means that a new window cannot be opened. By the way. If you find this is not good, please contact us for updates. Thank you.
Copy XML/HTML Code to clipboard
-
-
-
-
- Untitled document
-
-
-
-
-
- Codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width = "100%" height = "100%">
-
-
-
-
-
-
-
-
-
Well, this article will introduce this and it can be used together. Leave a comment. Original script home.