Add a hyperlink to Flash (transparent layer is recommended) compatible with mainstream browser _ javascript skills

Source: Internet
Author: User
Add a hyperlink to a Flash file. You just want to directly set a hyperlink outside the object. After trying it, you will find that this is not the case. Today, you need to add a hyperlink to a Flash file on the star candle network, I just wanted to directly set a hyperlink outside the object. After trying it, I found that this was not the case. I asked Baidu for help and solved the problem. The record is as follows:

Cause:Flash is the highest level by default. Therefore, I often encounter a situation where Flash blocks the drop-down menu and overwrites other elements.

Solution:

Step 1: perform the following steps:
1. Put the Flash file in a layer, set it to the bottom layer, and set FLASH to transparent.

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">




2. add another layer to the FLASH layer. Flash itself cannot directly add events such as onclick.. Therefore, you can only add a transparent layer to FLASH with the help of other things:

The Code is as follows:




Note:Transpandemo.gif is transparent, otherwise it will cover the bottom Flash;
3. the IE browser can do the above step. Firefox also needs the following step.
Add

The Code is as follows:


Wmode = "transparent"


The complete code is as follows:

The Code is as follows:











Solution 2: I did not try it online, as shown below:
In Flash, external scripts are called through FSCommand. The method is simple, practical, and controllable. For specific usage, search for the FSCommand key on the Internet.
Related Article

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.