Code (div layer) _ html/Xhtml _ webpage creation by Adding links to FLASH through HTML

Source: Internet
Author: User
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

  1. 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

  1. Untitled document
  2. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.