How to add a link to flash

Source: Internet
Author: User

Solution:

Because the flash in the webpage appears in the form of a control with a higher priority, it is invalid to directly add a link to it. However, you can use the button control button.

Solution 1:

Directly add The onclick event on the button to open the specified page. When you click the button after running, the flash in the button has a sinking action. to cancel this action, you can disable the interaction of the button, use the standard a label as the link. The Code is as follows:

<a class="mod mod_tl" href="http://baidu.com" title="甜蜜上映">    <button disabled>    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="970" height="90">        <param name="movie" value="img/tl.swf" />        <param name="quality" value="high" />        <param name="wmode" value="Opaque" />        <embed src="img/tl.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="970" height="90" wmode="Opaque"></embed>    </object>    </button></a>

Note: The wmode attribute value of the flash object must be set to opaque.

 

In this example, the wmode attribute of the Flash Object and the features of the button tag are used to solve the problem. Set the wmode attribute value of the Flash Object to opaque to reduce the priority of the Flash Object. Then, use the button tag to render the flash object as a button, in this way, you can solve the problem by setting the style or event of the button object.

 

Solution 2: You can also modify flash to add a layer and add link implementation in it.

 

How to add a link to flash

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.