Page player, all JS, call the swfobject Method

Source: Internet
Author: User

Previously, videos on the page were always used:

<Object classid = "CLSID: 05589fa1-c356-11ce-bf01-00aa0055595a" id = "activemovie1" width = "239" Height = "250">
<Param name = "appearance" value = "0">
<Param name = "autostart" value = "0">
<Param name = "allowchangedisplaymode" value = "-1">
<Param name = "allowhidedisplay" value = "0">
<Param name = "allowhidecontrols" value = "-1">
<Param name = "autorewind" value = "-1">
<Param name = "balance" value = "0">
<Param name = "currentposition" value = "0">
<Param name = "displaybackcolor" value = "0">
<Param name = "displayforecolor" value = "red">
<Param name = "displaymode" value = "0">
<Param name = "enabled" value = "-1">
<Param name = "enablecontextmenu" value = "0">
<Param name = "enablepositioncontrols" value = "0">
<Param name = "enableselectioncontrols" value = "0">
<Param name = "enabletracker" value = "0">
<Param name = "FILENAME" value = "cf1d2ab2-995d-4f8e-b356-cf1fa0cfa903.wmv" valuetype = "Ref">

</Object>

This can be applied, but it has poor compatibility and poor appearance ~

Next we will introduce a good thing to ensure that you think it is good once ~ Try it.CodeGet your name directly. html

<HTML>
<Head>

<SCRIPT type = "text/JavaScript" src = "swfobject. js"> </SCRIPT>

</Head>
<Body>

<H3> Single file, with preview image:

<P id = "player1"> <a href = "http://www.macromedia.com/go/getflashplayer"> get the Flash Player </a> to see this player. </P>
<SCRIPT type = "text/JavaScript">
VaR S1 = new swfobject ("flvplayer.swf", "single", "300", "170", "7 ");
S1.addparam ("allowfullscreen", "true ");
S1.addvariable ("file", "video. FLV ");
S1.addvariable ("image", "preview.jpg ");
S1.addvariable ("width", "300 ");
S1.addvariable ("height", "170 ");
S1.write ("player1 ");
</SCRIPT>

<H3> playlist file, with different colors:

<P id = "player2"> <a href = "http://www.macromedia.com/go/getflashplayer"> get the Flash Player </a> to see this player. </P>
<SCRIPT type = "text/JavaScript">
VaR S2 = new swfobject ("flvplayer.swf", "playlist", "300", "312", "7 ");
S2.addparam ("allowfullscreen", "true ");
S2.addvariable ("file", "playlist. xml ");
S2.addvariable ("displayhigh", "200 ");
S2.addvariable ("backcolor", "0x000000 ");
S2.addvariable ("frontcolor", "0 xcccccc ");
S2.addvariable ("lightcolor", "0x557722 ");
S2.addvariable ("width", "300 ");
S2.addvariable ("height", "312 ");
S2.write ("player2 ");
</SCRIPT>

<P> <a href = "http://www.jeroenwijering.com/extras/wizard.html"> online Configuration Wizard </a> </P>

</Body>
</Html>

 

There are also a few attachments. You can find them online ~ I don't know how to transfer it ~

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.