Simple practical JavaScript music anycast effect

Source: Internet
Author: User
Tags anycast
Tip: You can modify some of the code before running

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.111cn.net/1999/xhtml "> <pead> <title> Simple and practical music anycast effect </title> < Meta http-equiv= "Content-type" content= "text/html;charset=gb2312" > <!--Add the following code to <pead> and </pead> Between--> <style type= "Text/css" > Body{background-color: #ff9933; color: #eeeee;} </style> <script language= "JavaScript" > <!--function showmusic () {var Wmplayer=document.getelementbyid ("Wmplayer"); var murl=window.event.srcelement.href; var mtext=window.event.srcelement.innertext wmplayer. Url=murl; Wmplayer.controls.play (); minfo.innerhtml = ' <p align= ' center ' > Current play: <font color= "#ffffaa" > ' + mtext + ' </font></p> '; --> </script> </pead> <body> <!--Add the following code to the <body> and </body>--> <div>< P align= "Center" >erait-mediaplayer V1.0 version </p></div> <div id= "Wmplayerdiv" > <!------↓ initialization-------> <object id= "wmplayer" height= "0" width= "0" Classid= "Clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" > <param name= "AutoStart" value= "-1" > <!--automatically play- > <param name= "Balance" value= "0" > <!--adjust left and right channel balance--> <param "enabled" Name= "-1" > <!-- Can the player control--> <param name= "Enablecontextmenu" value= "-1" > <!--Enable context menu--> <param name= "url" VALUE = "" > <!--Playback file address--> <param name= "Playcount" value= "1" > <!--playback times control, for integer--> <param "Name=" "Value=" 1 > <!--playback rate control, 1 is normal, allow decimal 1.0-2.0--> <param name= "currentposition" value= "0" > <!--control settings: Current position --> <param name= "currentmarker" value= "0" > <!--Control settings: Current markup--> <param name= "Defaultframe" "" ; <!--display default frame--> <param name= "invokeurls" value= "0" > <!--script command settings: Whether to invoke url--> <param name= "BaseURL" V Alue= "" > <!--script command settings:Called Url--> <param name= "stretchtofit" value= "0" > <!--scaling--> <param name= "Volume" value= " ; <!--default sound size 0%-100%,50 is 50%--> <param name= "Mute" value= "0" > <!--mute--> <param name= "Uimode" Val Ue= "Invisible" > <!--player display mode: full display all; The Mini is the simplest; none does not display playback control, only the video window is displayed; Invisible does not show--> <param name= " Windowlessvideo "value=" 0 > <!--if 0 allows full screen, you can view--> <param name= "fullscreen" value= "0" > <!--Open Start playing automatically full screen--> <param name= "Enableerrordialogs" value= "-1" > <!--enable error notification reporting--> <param name= "Samistyle "Value> <!--Sami style--> <param name=" Samilang "Value> <!--Sami languages--> <param name=" Samifilena Me "Value> <!--subtitles id--> </object> <!------↑ initialize-------> </div> <div> <ol> < li> music 1</li> <li> music 2</li> <li> music 3</li> <li> music 4</li> <li> Music 5</ Li> </ol> &LT;/DIV&GT <div id= "MInfo" align= "center" ></div> </body> </ptml>
Tip: You can modify some of the code before running
Related Article

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.