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

Time:2019-11-30

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” >
</a>
< 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″
codebase=”http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,0,0″
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=”http://www.macromedia.com/go/getflashplayer” />
</object>
</button>

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