The method of linking flash in HTML and compatible with major browsers


Look at the code first.

Copy code

The code is as follows:

< div style = “position: relative; width: [width of flash] PX; height: [height of flash] PX;” >
< a href = “fill in the link address” target = “
Style = “position: absolute; width: [width of flash] PX; height: [height of flash] PX; left: 0; top: 0; Z-index: 100” >
< button style = “width: [width of flash] PX; height: [height of flash] PX; position: relative; Z-index: 1; background: transparent; border: none; padding: 0; cursor: pointer;”
Onclick = “window. Open (‘fill in the link address’)” >
<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″
Width = “[width of flash]” height = “[height of flash]” align = “middle” >
<param name=”allowScriptAccess” value=”sameDomain” />
< param name = “movie” value = “fill in flash advertising address” / >
<param name=”quality” value=”high” />
<param name=”wmode” value=”transparent”>
<param name=”bgcolor” value=”#ffffff” />
< embed SRC = “fill in flash advertising address” quality = “high” bgcolor = “ාffffff” width = “[width of flash]”
Height = “[height of flash]” name = “mymovie” align = “middle” allowscriptaccess = “samedomain”
type=”application/x-shockwave-flash” wmode=”transparent” pluginspage=”” />

Among them, the a tag is to solve the problem that FF, chrome, opera and other browsers do not jump when clicking, and the button is to solve the problem of IE browser

Recommended Today

Deeply analyze the principle and practice of RSA key

1、 Preface After experiencing many dark moments in life, when you read this article, you will regret and even be angry: why didn’t you write this article earlier?! Your darkest moments include: 1. Your project needs to be connected with the bank, and the other party needs you to provide an encryption certificate. You have […]