Different ways to put flash on the page

(No ratings yet)
Загрузка ... Loading ...

One of the frequently asked technical questions on working with a flash page. Flash is not just a game, a funny movie, but also a good advertisement. It is noteworthy, banal, and most importantly - is interesting from an aesthetic point of view.

Разные способы поместить флеш на странице

So how do you insert a flash site? There are a couple of ways, which I will discuss below.

For example, you want to insert a flash with the name myflash.swf

Integrating Flash in Internet Explorer looks

  "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" <Object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000"
 codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab # version = 9,0,0,0"
 height = "300" align = "middle" > width = "500" height = "300" align = "middle">
  "allowScriptAccess" value = "sameDomain" / > <Param name = "allowScriptAccess" value = "sameDomain" />
  "movie" value = "myflash.swf" / > <Param name = "movie" value = "myflash.swf" />
  "quality" value = "high" / > <Param name = "quality" value = "high" />
  "bgcolor" value = "#ffffff" / > <Param name = "bgcolor" value = "# ffffff" />
 </ Object> 

In order to put the IE flash, he uses a special element ActiveX. You need to specify the object in the parameter string of a particular version of flash-player to IE deduced the correct format. Specify the version 9.0.0.0

It is mandatory to specify the height and width of the banner (flash-video). In our case: width = "500" height = "300"

Integrate flash in Opera, FireFox, etc.

For other browsers, flash-movie displays as follows:

  quality = "high" bgcolor = "#ffffff" <Embed src = "myflash.swf" quality = "high" bgcolor = "# ffffff"
 height = "300" name = "file" align = "middle" width = "500" height = "300" name = "file" align = "middle"
 allowScriptAccess = "sameDomain"
 type = "application / x-shockwave-flash"
 > pluginspage = "http://www.macromedia.com/go/getflashplayer" /> 

The method is universal for any browser

The method, which is suitable for all types of currently existing browsers

If you are not an experienced user, I advise you not to split hairs. With experience comes understanding, and in the meantime, use health-tested method. All presently known browsers willingly accept the universal code. It consists of the integration of the two preceding embodiments. In general, the use of health!

  "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" <Object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000"
 codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab # version = 9,0,0,0"
 height = "300" align = "middle" > width = "500" height = "300" align = "middle">
  "allowScriptAccess" value = "sameDomain" / > <Param name = "allowScriptAccess" value = "sameDomain" />
  "movie" value = "myflash.swf" / > <Param name = "movie" value = "myflash.swf" />
  "quality" value = "autohigh" / > <Param name = "quality" value = "autohigh" />
  "play" value = "true" / > <Param name = "play" value = "true" />
  "loop" value = "true" / > <Param name = "loop" value = "true" />
  "bgcolor" value = "#ffffff" / > <Param name = "bgcolor" value = "# ffffff" />
 quality = "autohigh" bgcolor = "#ffffff" <Embed src = "file.swf" quality = "autohigh" bgcolor = "# ffffff"
 height = "300" name = "file" align = "middle" width = "500" height = "300" name = "file" align = "middle"
 "true" allowScriptAccess = "sameDomain" play = "true" loop = "true" allowScriptAccess = "sameDomain"
 type = "application / x-shockwave-flash"
 > pluginspage = "http://www.macromedia.com/go/getflashplayer" />
 </ Object> 

Last modified: 10/08/2013 at 08:16
Published: Monday, October 5, 2009 at 14:41
Choose the language:

Comments: 4

Average bar: 4.96 out of 5
  1. TiamatInc
    October 26, 2009 at 17:02

    Donkey as always excelled. Because melkomyagkih ever have to suffer with the cross-browser compatibility. Thanks for the latter method. ;)

    Reply

  2. Aleksey
    March 3, 2010 at 22:05

    Punched, funny happened ...

    Reply

  3. Vitali
    March 4, 2010 at 13:27

    Me my admin once said that the implementation of such a method is not the coolest, best through Java, but the process itself I do not know. :( Google.

    Reply

  4. Denis
    July 4th, 2010 at 13:13

    I put the stick in such a way: install Flash-Player. This is assuming that the flash drive in the root of the site. Usually banners creates a separate folder and specify the path. On the second donkey did not try.

    Reply

Have something to say? Do not be silent!


Your comment will appear after being moderated.
Spam and off-topic posts are deleted.

To insert php-code, use the tag:
<pre lang="php"> php-code </ pre>


I'm not a spammer!