各种播放代码
关于C语言播放音乐的源代码
关于C语⾔播放⾳乐的源代码我们不得不说C语⾔是⼀种还算得上强⼤的语⾔,今天就来展⽰⼀下如何通过C语⾔去播放⾳乐:⽹上有很多这⽅⾯的资料,我只是稍加整理了⼀下,随便玩⼀下。
先来看第⼀个例程,这是⽐较简单的:#include<stdio.h>#include<dos.h>#include<bios.h>#include<time.h>#include<graphics.h>#define N1 32 /*⼀拍*/#define N2 16#define N4 8#define N8 4#define N16 2#define END 0/*其中:N1,N2,N4,N6,N8,N16分别代表⼀拍,⼆分之⼀拍,四分之⼀拍,⼋分之⼀拍,⼗六分之⼀拍。
*//*声明⼀个图形显⽰*/void printtext(unsigned char *temp[],int i, int color); /* ⽤于在屏幕上显⽰字符串 */enum NOTES{C10=131,D10=147,E10=165,F10=175,G10=196,A10=220,B10=247,/*低度⾳调分别是:1,2,3,4,5,6,7*/C0=262, D0=286, E0=330, F0=349, G0=440, A0=440, B0=494,/*中度⾳调分别是:1,2,3,4,5,6,7*/C1=523, D1=158, E1=659, F1=698, G1=784, A1=880, B1=998,/*⾼度⾳调分别是:1,2,3,4,5,6,7*/C2=1047,D2=1175,E2=1319,F2=1397,G2=1568,A2=1760,B2=1976/*⾼⼋度⾳调分别是:1,2,3,4,5,6,7*/}song1[]={G0,N16,G0,N8,A0,N8,G0,N8,C1,N8,B0,N4,G0,N16,G0,N8,A0,N8,G0,N8,D1,N8,C1,N4,G0,N16,G0,N8,G1,N8,E1,N8,C1,N8,B0,N16,B0,N8,A0,N4,F1,N16,F1,N8,E1,N8,C1,N8,D1,N8,C1,N4,END,END/*以上是曲⼦代码,你可以嵌⼊⾃⼰喜欢的歌曲代码*//*注意:数组中的偶数元素代表⾳符奇数元素代表拍长.*/};song2[]={C10,N1,D10,N1,E10,N1,F10,N1,G10,N1,A10,N1,B10,N1,C10,N2,D10,N2,E10,N2,F10,N2,G10,N2,A10,N2,B10,N2,C10,N4,D10,N4,E10,N4,F10,N4,G10,N4,A10,N4,B10,N4,C10,N8,D10,N8,E10,N8,F10,N8,G10,N8,A10,N8,B10,N8,C10,N16,D10,N16,E10,N16,F10,N16,G10,N16,A10,N16,B10,N16,C0,N1,D0,N1,E0,N1,F0,N1,G0,N1,A0,N1,B0,N1,C0,N2,D0,N2,E0,N2,F0,N2,G0,N2,A0,N2,B0,N2,C0,N4,D0,N4,E0,N4,F0,N4,G0,N4,A0,N4,B0,N4,C0,N8,D0,N8,E0,N8,F0,N8,G0,N8,A0,N8,B0,N8,C0,N16,D0,N16,E0,N16,F0,N16,G0,N16,A0,N16,B0,N16,C1,N1,D1,N1,E1,N1,F1,N1,G1,N1,A1,N1,B1,N1,C1,N2,D1,N2,E1,N2,F1,N2,G1,N2,A1,N2,B1,N2,C1,N4,D1,N4,E1,N4,F1,N4,G1,N4,A1,N4,B1,N4,C1,N8,D1,N8,E1,N8,F1,N8,G1,N8,A1,N8,B1,N8,C1,N16,D1,N16,E1,N16,F1,N16,G1,N16,A1,N16,B1,N16,C2,N1,D2,N1,E2,N1,F2,N1,G2,N1,A2,N1,B2,N1,C2,N2,D2,N2,E2,N2,F2,N2,G2,N2,A2,N2,B2,N2,C2,N4,D2,N4,E2,N4,F2,N4,G2,N4,A2,N4,B2,N4,C2,N8,D2,N8,E2,N8,F2,N8,G2,N8,A2,N8,B2,N8,C2,N16,D2,N16,E2,N16,F2,N16,G2,N16,A2,N16,B2,N16,END/*以上是⾳符测试代码,你可以通过系统发出的⾳调选择你需要的⾳符*//*注意:数组中的偶数元素代表⾳符奇数元素代表拍长.*/};song3[]= {C0,N8,C0,N8,G0,N8,G0,N8,A0,N8,A0,N8,G0,N4,F0,N8,F0,N8,E0,N8,E0,N8,D0,N8,D0,N8,C0,N4,G0,N8,G0,N8,F0,N4,E0,N8,E0,N8,D0,N4,G0,N8,G0,N8,F0,N8,F0,N8,E0,N8,E0,N8,D0,N4,C0,N8,E0,N8,G0,N4,A0,N8,C1,N8,G0,N4,F0,N8,F0,N8,E0,N8,E0,N4,D0,N8,D0,N8,C0,N4,C0,N8,C0,N8,G0,N8,G0,N8,A0,N8,A0,N8,G0,N4,F0,N8,F0,N8,E0,N8,E0,N8,D0,N8,D0,N8,C0,N4,G0,N8,G0,N8,F0,N4,E0,N8,E0,N8,D0,N4,G0,N8,G0,N8,F0,N8,F0,N8,E0,N8,E0,N8,D0,N4,C0,N8,E0,N8,G0,N4,A0,N8,C1,N8,G0,N4,F0,N8,F0,N8,E0,N8,E0,N4,D0,N8,D0,N8,C0,N4,END/*以上是曲⼦代码,你可以嵌⼊⾃⼰喜欢的歌曲代码*//*注意:数组中的偶数元素代表⾳符奇数元素代表拍长.*/};song4[]= {C10,N4,B0,N4,G0,N8,A0,N4,E0,N16,D0,N8,C0,N8,D0,N8,G0,N8,E0,N8,E0,N4,E0,N8,G0,N8,E0,N8,D0,N8,D0,N4,A0,N8,A0,N8,G0,N8,A0,N8,B0,N8,G0,N8,G0,N8,E0,N4,C10,N8,B0,N8,G0,N8,A0,N4,E0,N8,D0,N8,C0,N8,D0,N8,G0,N8,E0,N4,C0,N8,D0,N8,E0,N4,G0,N8,E0,N8,D0,N4,C0,N8,B10,N8,C0,N8,B10,N8,A10,N4,A0,N8,A0,N8,A0,N8,C1,N8,D1,N8, E1,N8,E1,N8,C1,N8,A0,N8,A0,N8,B0,N16,A0,N16,G0,N8,E0,N8,A0,N8,A0,N8,C1,N8,D1,N8,E1,N8,E1,N8,C1,N8,A0,N8,A0,N8,B0,N8,A0,N8,B0,N16,A0,N16,G0,N8,E0,N8,D1,N16,D1,N16,D1,N8, D1,N8,A0,N16,B0,N16,A0,N8,G0,N8,E0,N8,D1,N16,D1,N16,D1,N8, A0,N16,B0,N16,A0,N8,G0,N8,E0,N8,A0,N8,A0,N8,A0,N4,A0,N8,A0,N8,A0,N4,C10,N8,B0,N8,G0,N8,A0,N4,E0,N16,D0,N16,C0,N8, D0,N8,G0,N8,E0,N4,E0,N4,E0,N16,G0,N16,E0,N16,D0,N16,D0,N4,A0,N16,A0,N16,G0,N8,A0,N8,B0,N8,G0,N16,G0,N16,E0,N4,C10,N8,B0,N8,G0,N8,A0,N4,E0,N16,D0,N16,C0,N8,D0,N8,G0,N8,E0,N4,C0,N16,D0,N16,E0,N4,G0,N8,E0,N8,D0,N4,C0,N8,B10,N8,C0,N16,B10,N16,A10,N4,END};union {unsigned fre;unsigned char c[2];}tone;/*以下是播放程序代码*/void MusicPlay(int *song){int note=0,dur,control;clock_t goal;while(song[note]!=0){tone.fre=song[note];dur=song[note+1]; /*节拍*/if(kbhit())break;/*int kbhit()函数返回最近所敲的按键*/if(tone.fre){outportb(0x43,0xB6);/*函数void outportb(int port,char byte)将字节byte写⼊指定的输出端⼝port*/tone.fre=(unsigned)(1193180L/tone.fre);outportb(0x42,tone.c[0]);outportb(0x42,tone.c[1]);control=inportb(0x61);/*函数int inportb(int port)从指定的输⼊端⼝读⼊⼀个字节,并返回这个字节*/outportb(0x61,(control)|0x3);}goal=(clock_t)dur+clock();while(goal>clock());if(tone.fre)outportb(0x61,control);goal=(clock_t)0;note=note+2;}}/*以下是主函数其中包括异常处理*/void main(void){ int n;int graphdriver,graphmode;unsigned char *text[7] ;text[0]=" ";text[1]="start music........";text[2]="play the one music";text[3]="play the two music";text[4]="play the three music";text[5]="play the four music";text[6]="good_bye............";graphdriver=DETECT;graphmode=0;initgraph(&graphdriver,&graphmode,""); /*系统初始化 */cleardevice(); /* 清除屏幕 */settextjustify(LEFT_TEXT,CENTER_TEXT); /*设置字符排列⽅式*/printtext(text ,1, 1);getch();printtext(text ,2, 62);MusicPlay(song1);getch();printtext(text ,3,4);MusicPlay(song2);getch();printtext(text ,4, 58);MusicPlay(song3);getch();printtext(text ,5, 61);MusicPlay(song4);getch();printtext(text ,6, 63);getch();closegraph();}void printtext(unsigned char *temp[] , int i , int color){setcolor(color);settextstyle(TRIPLEX_FONT , HORIZ_DIR, 3);outtextxy(100, 40+i*50 , temp[i]); /* 显⽰字符串 temp[i]是具体的指针*/ }。
优酷播放器自动播放代码
优酷播放器自动播放代码:1、把下面的代码复制到记事本中,保存备用。
/player.php/sid/中原教程==/v.swf?VideoIDS=中原教程==&isAutoPlay=true&isShowRelatedVideo=false&showAd=0&embedid=2007 0701*******b444fd5fae5112597a31314df8885f72 、到“优酷”网站找到你所需要的视频,进行操作。
注:现在优酷把视频贴到B log或BBS这项已经改为“分享”。
(如图1.1)比如我的这个BON JOVI的视频FLASH为/player.php /sid/XMjMzMzA0Mjc2/v.swf复红色部分,打开刚才记事本上的代码:/player.php/si d/中原教程==/v.swf?VideoIDS=中原教程==&isAutoPlay=true&isShowRelated Video=false&showAd=0&embedid=200707011235108b444fd5fae5112597a3 1314df8885f73、将黑色部分(中原教程)换为自己选的视频里的红色部分,在论坛插入FLA SH代码时,将这个换好的地址填上,就OK了。
原本播放地址:/player.php/sid/XMjMzMzA0Mjc2/v.swf 自动播放地址:/player.php/sid/XMjMzMzA0Mjc2==/v.sw f?VideoIDS=XMjMzMzA0Mjc2==&isAutoPlay=true&isShowRelatedVideo=fals e&showAd=0&embedid=200707011235108b444fd5fae5112597a31314df888 5f7酷6播放器自动播放代码:&auto=1原本播放地址:/refer/nvGjdBHTKUWXgnNF/v.swf自动播放地址:/refer/nvGjdBHTKUWXgnNF/v.swf&auto=156播放器自动播放代码:2原本播放地址:/p_42864543.swf自动播放地址:/p2_42864543.swf土豆播放器自动播放代码:有些繁琐仔细看打开一个土豆视频,点击贴到博客或BBS 按钮。
用Python实现简单的音视频播放功能
用Python实现简单的音视频播放功能在当今数字化时代,音视频播放已经成为人们日常生活中不可或缺的一部分。
无论是在工作中还是在娱乐休闲时,我们都需要使用各种工具来播放音频和视频文件。
Python作为一种功能强大且易于学习的编程语言,也可以用来实现简单的音视频播放功能。
本文将介绍如何使用Python来实现基本的音视频播放功能。
1. 安装必要的库要实现音视频播放功能,我们首先需要安装相应的Python库。
在Python中,有一个名为pygame的库可以帮助我们实现音频文件的播放,而opencv-python库则可以用来处理视频文件。
你可以使用以下命令来安装这两个库:示例代码star:编程语言:bashpip install pygamepip install opencv-python示例代码end首先,让我们看看如何使用Python来播放音频文件。
下面是一个简单的示例代码,演示了如何使用pygame库来加载并播放一个音频文件:示例代码star:编程语言:pythonimport pygamepygame.init()pygame.mixer.music.load("example.mp3")pygame.mixer.music.play()while pygame.mixer.music.get_busy():pygame.time.Clock().tick(10)示例代码end在这段代码中,我们首先导入了pygame库,并初始化了它。
然后使用pygame.mixer.music.load()方法加载了一个名为example.mp3的音频文件,并通过pygame.mixer.music.play()方法开始播放该音频文件。
最后,在一个循环中检查音乐是否正在播放,并使用pygame.time.Clock().tick(10)方法来控制播放速度。
接下来,让我们看看如何使用Python来播放视频文件。
网页视频播放器代码
网页视频播放器代码大全网页mtv播放器代码一. RM格式(无边框按钮)RealPlayer代码如下:二. RM格式(带边框按钮)RealPlayer代码如下:三. WMV格式(带边框按钮)Windows Media Player代码如下:<param name=AutoSize value=0><param name=AutoStart value=1><param name=AnimationAtStart value=0><param name=AllowScan value=-1><param name=AllowChangeDisplaySize value=0><param name=AutoRewind value=0><param name=Balance value=0><param name=BaseURL value=""><param name=BufferingTime value=5><param name=CaptioningID value=""><param name=ClickToPlay value=0><param name=CursorType value=32512><param name=CurrentPosition value=-1><param name=CurrentMarker value=0><param name=DefaultFrame value=1><param name=DisplayBackColor value=0><param name=DisplayForeColor value=16777215><param name=DisplayMode value=0><param name=DisplaySize value=0><param name=Enabled value=-1><param name=EnableContextMenu value=-1><param name=EnablePositionControls value=0><param name=EnableFullScreenControls value=0><param name=EnableTracker value=1><param name=Filename value="/nystx/splx/zhang.wmv"><!--播放文件地址--><param name=InvokeURLs value=-1><param name=Language value=-1><param name=Mute value=0><param name=PlayCount value=1><param name=PreviewMode value=0><param name=Rate value=1><param name=SelectionStart value=0><param name=SelectionEnd value=true><param name=SendOpenStateChangeEvents value=-1><param name=SendWarningEvents value=-1><param name=SendErrorEvents value=-1><param name=SendKeyboardEvents value=0><param name=SendMouseClickEvents value=0><param name=SendMouseMoveEvents value=0><param name=SendPlayStateChangeEvents value=-1><param name=ShowCaptioning value=0>其他网页视频播放代码一. avi格式代码如下:二. mpg格式代码如下:三. smi格式代码如下:。
KTV播放重要代码解析
KTV播放重要代码解析 KTV播放重要代码解析第⼀步:搭建好KTV点歌界⾯,然后要实现的是歌星点歌,点击窗体的Load事件写如下代码:private void FrmZhu_Load(object sender, EventArgs e){//读取MyResource表中的图⽚路径,放⼊到imagePath变量中string sql = "select resource_path from resource_path where resource_id=1";SqlConnection con = new SqlConnection(SqlHelper.str);SqlCommand com = new SqlCommand(sql,con);con.Open();KTVUtil.singerPhoto = com.ExecuteScalar().ToString();con.Close();//读取歌⼿路径sql = "select resource_path from resource_path where resource_id=2";mandText = sql;try{con.Open();KTVUtil.SongLu = com.ExecuteScalar().ToString();}catch (Exception ex){MessageBox.Show("系统资源错误!"+ex.Message);}finally{con.Close();}}注释:播放器是如何得到的⾸先点开⼯具箱,然后点击⼿表右键,选择”选择项” ,然后点击上⽅的COM组件,然后点击确定就⾏了!以上代码的作⽤是在数据库中⽚和路径读取出来,然后保存到已经建好的KTVUtil类下的SongLu⾥点击歌星点歌会出现以下窗体:在这⾥要想选择你喜欢的歌⼿的歌曲 ,并且点击相应的类型出现第三个窗体就得需要动态加载图⽚第⼀步:隐藏上两个窗体出现第三个窗体:记住这⾥是三表连动啊! 有三个ListView;if (lvTwo.SelectedItems[0] != null){lvTwo.Visible = false;lvThree.Location = lvTwo.Location;lvlB.Dock = DockStyle.Fill;lvThree.Size = lvlB.Size;lvThree.Visible = true;singid = Convert.ToInt32(lvTwo.SelectedItems[0].Tag); //保存选中的地区编号第⼆步:连接数据库 ,然后跟你你要点击的类型查找数据库中该类型中的男歌⼿,⼥歌⼿,或组合 ,读取照⽚的路径,然后按照对应的名字把图⽚显⽰出来.while (dr.Read()){//将歌⼿头像放到IamgeList控件中string photoURL = KTVUtil.singerPhoto + "\\" + Convert.ToString(dr["singer_poto_url"]);imasingerName.Images.Add(Image.FromFile(photoURL));//将歌⼿添加到ListView中ListViewItem list = new ListViewItem();list.Text = Convert.ToString(dr["singer_name"]);list.Tag = Convert.ToString(dr["singer_id"]);list.ImageIndex = imageIndex;lvThree.Items.Add(list);imageIndex++;}dr.Close();}在第三个ListViewd的Clik事件⾥根据歌⼿的Id读取到歌⼿的照⽚然后显⽰private void lvThree_Click(object sender, EventArgs e){SqlConnection con = new SqlConnection(SqlHelper.str);StringBuilder sb = new StringBuilder();sb.AppendFormat("select song_id,song_name,singer_name='"+lvThree.SelectedItems[0].Text+"',song_url from song_info where singer_id="+Convert.ToInt32(lvThree.SelectedItems[0].Tag)+"");fslGEyu eyu = new fslGEyu(); = sb.ToString();eyu.Previous = Execute.Singer;//指定返回的窗体是按歌⼿点歌eyu.Show();// this.Close();接下来出现的窗体就是该歌⼿的歌曲列表:当点击歌曲的时候 :它会出现在已点的歌曲列表⾥,我们要做的就是讲歌曲设置为空:然后调⽤Mon()⽅法1. public static void mOn(){if (SongList[SongIndex] != null && SongList[SongIndex].Son == alreadySon.repeatsong) //如果SongIndex⾥⾯有值,那么就说明当前的歌曲是以播的状态{SongList[SongIndex].YiB(); //我们就把以播状态的⽅法给它}else{SongIndex++;}2.//然后将选中的歌曲对象加⼊到数组中private void dgvList_CellClick(object sender, DataGridViewCellEventArgs e){//创建⼀个歌曲对象,并将当前选中的歌曲名和路径赋给该对象Songa song = new Songa();song.Songname = dgvList.SelectedRows[0].Cells["Column1"].Value.ToString(); //songName 为dgv中列的名称song.Songway = dgvList.SelectedRows[0].Cells["Column3"].Value.ToString();//将选择的歌曲添加到数组中DYShu.AddSong(song); //赋给数组}3. //定义⼀个长度为50 的数组,默认储存50⾸歌public static Songa[] SongList = new Songa[50];public static int SongIndex = 0; //当前播放的歌曲在数组中的索引if (Player1.playState == WMPLib.WMPPlayState.wmppsStopped){song = null;DYShu.mOn();}4.然后在播放窗⼝加上⼀个 Timer控件private void Tmer_Tick(object sender, EventArgs e){if (song == null){PlaySong();}4.1判定在Timer控件的Tick事件中如果数组的位置是空的时候,调⽤PlaySong()⽅法 private void Tmer_Tick(object sender, EventArgs e){if (song == null){PlaySong();}if (Player1.playState == WMPLib.WMPPlayState.wmppsStopped){song = null;//将歌曲设为空DYShu.mOn();}if (song != null && song.Son == alreadySon.repeatsong){PlaySong();}}做的不好⼤家多多指教。
网页中使用的各个播放器代码
<param name="Balance" value="0">
<param name="CurrentPosition" value="0">
<param name="DisplayBackColor" value="0">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="1.swf" />
<param name="menu" value="false" />
<param name="scale" value="noborder" />
<param name="wmode" value="transparent" />
<embed src="1.swf" menu="false" quality="high" scale="noborder" wmode="transparent" width="980" height="180" name="banner" align="left"
视频自动播放代码
一、优酷、搜狐视频自动播放代码(更换地址即可) 以下代码是《爱的供养》视频自动播放代码,将此代码复制粘贴到论坛博客上即可,如下: <EMBED align=middle src=/player.php/sid/XMzQ1OTAwNjI4/v.swf width=700 height=550 type=application/x-shockwave-flash wmode="opaque" flashvars ="isAutoPlay=true" allowscriptaccess="sameDomain" quality="high"></EMBED> 代码中width=700 height=550 里面的数字按需要改动即可。 其他视频更换代码中红色的播放地址即可,如下: 二、酷6视频自动播放(自动播放代码&auto=1):将自动播放代码&auto=1复制粘贴到播放地址 “/refer/nvGjdBHTKUWXgnNF/v.swf”的swf"
在这个网站上的视频代码,不自动播放的代码的链接地址后面比自动播放代码多了“&autoplay=0”,如你想要自动播。
放的,只要把不自动播放代码的这个多余的后缀去掉就行啦。详情请点此处。
例如,雪中情歌曲的不自动播放播放代码:。
EMBEDsrc=/cn/xplayer.swfwidth=480height=400type=application/x-shockwave-flashFlashVars="v=8WQ6BK9E&p=/support/UploadFiles_4906/200906/20090607155408337.jpg
网页音乐播放器代码
插音乐播放器<embed src=这里填写你要放的歌曲地址 width=216 height=39 autostart="true"loop="false" id=MediaPlayer name="MediaPlayer">一、文字标记基本代码如下:<P align=center><FONT color=#0066ff face=隶书 size=5>插入文字</FONT></P>align=center 表示字体居中,可选值为居右(right)居左(left)color=颜色代码face=字体常用字体为:宋体.黑体.楷体.仿宋.幻缘.新宋体.细明体等size=字体大小,这里的最大值为7 取值越大文字就越大1.字体变化 <font>..........</font>a.字体大小 <font size=#>..........</font> #=1~7;数字愈大字也愈大b.指定字型 <font face="字体名称">..........</font>c.文字颜色 <font color=#rrggbb>..........</font>rr:表红色(red)色码gg:表绿色(green)色码bb:表蓝色(blue)色码rrggbb也可用6位颜色代码数字2.粗体字 <b>..........</b>3 字体加粗<STRONG>..........</STRONG>和<b>标签差不多的效果4.换行(也称回车) <br>5.分段标记 <p>文字的对齐方向 <p align="#"> #号可为 left:表向左对齐(预设值) center:表向中对齐 right:表向右对齐 P.S.<p align="#">之后的文字都会以所设的对齐方式显示,直到出现另一个<p align="#">改变其对齐方向,遇到<hr>或<h#>标签时会自动设回预设的向左对齐。
网页视频播放器代码大全+21个为您的网站和博客提供的免费视频播放器
⽹页视频播放器代码⼤全+21个为您的⽹站和博客提供的免费视频播放器推荐使⽤极酷 Web在线播放器。
⽹页中嵌⼊视频代码综合完全版 1.avi格式 代码⽚断如下: 程序代码 <objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> <paramname="ShowDisplay"value="0"> <paramname="ShowControls"value="1"> <paramname="AutoStart"value="1"> <paramname="AutoRewind"value="0"> <paramname="PlayCount"value="0"> <paramname="Appearancevalue="0value="""> <paramname="BorderStylevalue="0value="""> <paramname="MovieWindowHeight"value="240"> <paramname="MovieWindowWidth"value="320"> <paramname="FileName"value="/Mbar.avi"><embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart="1"autorewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="/Mbar.avi"src="M </embed> </object> 2.mpg格式 代码⽚断如下: 程序代码 <objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"width="239"height="250"> <paramname="Appearance"value="0"> <paramname="AutoStart"value="-1"> <paramname="AllowChangeDisplayMode"value="-1"> <paramname="AllowHideDisplay"value="0"> <paramname="AllowHideControls"value="-1"> <paramname="AutoRewind"value="-1"> <paramname="Balance"value="0"> <paramname="CurrentPosition"value="0"> <paramname="DisplayBackColor"value="0"> <paramname="DisplayForeColor"value="16777215"> <paramname="DisplayMode"value="0"> <paramname="Enabled"value="-1"> <paramname="EnableContextMenu"value="-1"> <paramname="EnablePositionControls"value="-1"> <paramname="EnableSelectionControls"value="0"> <paramname="EnableTracker"value="-1"> <paramname="Filename"value="/mpeg/halali.mpg"valuetype="ref"> <paramname="FullScreenMode"value="0"> <paramname="MovieWindowSize"value="0"> <paramname="PlayCount"value="1"> <paramname="Rate"value="1"> <paramname="SelectionStart"value="-1"> <paramname="SelectionEnd"value="-1"> <paramname="ShowControls"value="-1"> <paramname="ShowDisplay"value="-1"> <paramname="ShowPositionControls"value="0"> <paramname="ShowTracker"value="-1"> <paramname="Volume"value="-480"> </object> 3.smi格式 代码⽚断如下: 程序代码 <OBJECTid=RVOCXclassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAwidth=240height=180> <paramname="_ExtentX"value="6350"> <paramname="_ExtentY"value="4763"> <paramname="AUTOSTART"value="-1"> <paramname="SHUFFLE"value="0"> <paramname="PREFETCH"value="0"> <paramname="NOLABELS"value="-1"> <paramname="SRC"value="rm.rm"> <paramname="CONTROLS"value="ImageWindow"> <paramname="CONSOLE"value="console1"> <paramname="LOOP"value="0"> <paramname="NUMLOOP"value="0"> <paramname="CENTER"value="0"> <paramname="MAINTAINASPECT"value="0"> <paramname="BACKGROUNDCOLOR"value="#000000"><embedsrc="real.smi"type="audio/x-pn-realaudio-plugin"console="Console1"controls="ImageWindow"height="180"width="240"autostart="true"></OBJECT> 4.rm格式 代码⽚断如下: 程序代码 <OBJECTID=video1CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"HEIGHT=288WIDTH=352> <paramname="_ExtentX"value="9313"> <paramname="_ExtentY"value="7620"> <paramname="AUTOSTART"value="0"> <paramname="SHUFFLE"value="0"> <paramname="PREFETCH"value="0"> <paramname="NOLABELS"value="0"> <paramname="SRC"value="rtsp://203.*.*.35/vod/dawan-a.rm"> <paramname="CONTROLS"value="ImageWindow"> <paramname="CONSOLE"value="Clip1"> <paramname="LOOP"value="0"> <paramname="NUMLOOP"value="0"> <paramname="CENTER"value="0"> <paramname="MAINTAINASPECT"value="0"> <paramname="BACKGROUNDCOLOR"value="#000000"><embedSRCtype="audio/x-pn-realaudio-plugin"CONSOLE="Clip1"CONTROLS="ImageWindow"HEIGHT="288"WIDTH="352"AUTOSTART="false"> </OBJECT> 5.wmv格式 代码⽚断如下: 程序代码 <objectid="NSPlay"width=200height=180classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"codebase="/activex/controls/mplayer/en /nsmp2inf.cab#Version=6,4,5,715"standby="LoadingMicrosoftWindowsMediaPlayercomponents..."type="application/x-oleobject"align="right"hspace="5"> <paramname="AutoRewind"value=1> <paramname="FileName"value="/blog/******.wmv"> <paramname="ShowControls"value="1"> <paramname="ShowPositionControls"value="0"> <paramname="ShowAudioControls"value="1"> <paramname="ShowTracker"value="0"> <paramname="ShowDisplay"value="0"> <paramname="ShowStatusBar"value="0"> <paramname="ShowGotoBar"value="0"> <paramname="ShowCaptioning"value="0"> <paramname="AutoStart"value=1> <paramname="Volume"value="-2500"> <paramname="AnimationAtStart"value="0"> <paramname="TransparentAtStart"value="0"> <paramname="AllowChangeDisplaySize"value="0"> <paramname="AllowScan"value="0"> <paramname="EnableContextMenu"value="0"> <paramname="ClickToPlay"value="0"> </object> 6.wma格式 放在<body>⾥⾯。
实现视频全屏播放代码
实现视频全屏播放代码要实现视频全屏播放功能,可以使用HTML5的全屏API(Fullscreen API)。
以下是一种实现方式,包括HTML、CSS和JavaScript的代码。
HTML部分:```html<!DOCTYPE html><html><head><meta charset="UTF-8"><title>全屏播放</title><style>#video-containerwidth: 100%;height: 100%;position: relative;}#video-playerwidth: 100%;height: 100%;}#fullscreen-buttonposition: absolute;top: 10px;right: 10px;z-index: 9999;}</style></head><body><div id="video-container"><video id="video-player" src="path/to/video.mp4" controls></video><button id="fullscreen-button">全屏</button></div><script src="script.js"></script></body></html>```CSS部分定义了视频容器的样式、视频播放器的样式以及全屏按钮的位置和样式。
JavaScript部分(script.js文件):```javascriptdocument.addEventListener('DOMContentLoaded', functiovar videoContainer = document.getElementById('video-container');var videoPlayer = document.getElementById('video-player');var fullscreenButton = document.getElementById('fullscreen-button');//进入全屏模式function enterFullscreeif (videoContainer.requestFullscreen)videoContainer.requestFullscreen(;} else if (videoContainer.mozRequestFullScreen)videoContainer.mozRequestFullScreen(;} else if (videoContainer.webkitRequestFullscreen)videoContainer.webkitRequestFullscreen(;} else if (videoContainer.msRequestFullscreen)videoContainer.msRequestFullscreen(;}}//退出全屏模式function exitFullscreeif (document.exitFullscreen)document.exitFullscreen(;} else if (document.mozCancelFullScreen)document.mozCancelFullScreen(;} else if (document.webkitExitFullscreen)document.webkitExitFullscreen(;} else if (document.msExitFullscreen)document.msExitFullscreen(;}}//切换全屏模式function toggleFullscreeif (document.fullscreenElement ,document.mozFullScreenElement ,document.webkitFullscreenElement , document.msFullscreenElement)exitFullscreen(;} elseenterFullscreen(;}}//监听全屏模式改变事件document.addEventListener('fullscreenchange', functioif (document.fullscreenElement ,document.mozFullScreenElement ,document.webkitFullscreenElement , document.msFullscreenElement) fullscreenButton.innerText = '退出全屏';} elsefullscreenButton.innerText = '全屏';}});//点击全屏按钮切换全屏模式fullscreenButton.addEventListener('click', toggleFullscreen);});```这段JavaScript代码定义了进入全屏模式、退出全屏模式以及切换全屏模式的函数。
网页视频播放器代码大全汇总、常用网页播放器代码
常用网页播放器代码我们在网页上看到的播放器无外乎WMP/RealOne/Macromedia Flash Player,其他的无非是面板不同,或者添加了其他控件,对于计算机上安装的一些播放器也都是编码和解码器的整合,其最核心的编码和解码技术是相同的。
例如:网络上最流行的windows media流(asf,wma,wmv格式...),Real流(rm,rmvb...),还有MPEG系列编码格式(MP4/MP3格式...)Windows Media Video 是微软推出的一种流媒体格式,它是在“同门”的ASF(Advanced Stream Format)格式升级延伸来得.在同等视频质量下,WMV格式的体积非常小,因此很适合在网上播放和传输。
Windows Media Player9兼容所有格式的WMV,官方编码器是Windows Media Encoder ,但是如果你想转制高质量的wmv文件,那您一定要有超大的内存来处理数据...无意中发现CASTPOST的播放器可以自己定义大小,对于WMV格式的在线播放可以说已经足够快了,然后就费了好大劲把一些精彩的短片和一些经典的MTV转化WMV格式放了上来,尽管现在不能下载了,但是只要不是连接人数过多,播放起来还是很流畅的^_^WMP加入了ActiveX解码器控件,不仅可以放曲子,还能放Flash和其它视频文件<o**ect align=middle classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class=OBJECT id=MediaPlayer width=196 height=196><param name=ShowStatusBar value=0><param name=Filename value="http://202.116.*.*/video/story/chinese/hynh/b.wmv"><embed type=application/x-oleo**ect codebase="/activex/con... n/nsmp2inf.cab#Version=5,1,52,701" ></embed></o**ect>想用WMP连续播放请参照ASX元文件使用讲解:使用ASX播放列表吧上面的这个播放器是老式的那种,6.4版本!新式播放器是在MediaPlayer9.0以后出现的,也就是说只有装了9.0或9.0以上的播放器才能正常使用的。
qq空间音乐播放器代码(QQspacemusicplayercode)
qq空间音乐播放器代码(QQ space music player code)Space_addItem (51097,0,0,1,1,0);Love grass color (float) javascript:window.top.space_addItem (5609,0,3,0,0,02);HAPPY (floating matter) javascript:window.top.space_addItem (51816,0,0,5,1,0);Love grass (float) javascript:window.top.space_addItem (5609,0,0,1,1,0);Previous code:Free skinThe first: white seriesJavascript:window.top.space_addItem (14703,0,80,0,0,94);Second pieces of code: Purple seriesJavascript:window.top.space_addItem (17510,0,80,0,0,93);-Third code: Orange seriesJavascript:window.top.space_addItem (17513,0,80,0,0,93);-The fourth code: green seriesJavascript:window.top.space_addItem (17619,0,80,0,0,93);-Fifth pieces of code: pink seriesJavascript:window.top.space_addItem (14693,0,0,0,0,93);Javascript:window.top.space_addItem (17513,0,80,0,0,93);Sixth pieces of code: Blue SeriesJavascript:window.top.space_addItem (115166,0,80,0,0,93);Seventh pieces of code: Black SeriesJavascript:window.top.space_addItem (19475,20,80,0,0,93);Other typesThe most beautiful flower javascript:window.top.space_addItem (14693,0,80,0,0,94);-So love javascript:window.top.space_addItem(17513,0,80,0,0,94);The song of that year javascript:window.top.space_addItem (17619,0,80,0,0,94);-Very old free official skin beforeOrange visual type: skin javascript:window.top.space_addItem (11328,0,0,0,1,0);River type: skin javascript:window.top.space_addItem (11304,0,0,0,1,0);(NICE) teenage feelings type: skinjavascript:window.top.space_addItem (11305,0,0,0,1,0);(see) seven rainbow type: skinjavascript:window.top.space_addItem (11306,0,0,0,1,0);Desire Creek type: skin javascript:window.top.space_addItem (11307,0,0,0,1,0);Blue rhythm type: skin javascript:window.top.space_addItem (11333,0,0,0,1,0);Spring type: skin javascript:window.top.space_addItem (11303,0,0,0,1,0);Color type: skin javascript:window.top.space_addItem (11327,0,0,0,1,0);Official skinThe sound of javascript:window.top.space_addItem QQ (115306,0,0,1,1,94);QQ Three Kingdoms: javascript:window.top.space_addItem (115166,0,80,0,0,94);Opening animation codeClassical beauty javascript:window.top.space_addItem (147983,0,0,0,0,0);Welcome to my home javascript:window.top.space_addItem (144386,0,0,1,1,0);Javascript:window.top.space_addItem (145002,0,0,1,1,0);Moonlight horse javascript:window.top.space_addItem (145077,0,0,1,1,0);Share javascript:window.top.space_addItem(145329,0,0,1,1,0);Go tumble cloud javascript:window.top.space_addItem (144333,0,0,1,1,0);Share javascript:window.top.space_addItem (144387,0,0,1,1,0) with you;World Cup: javascript:window.top.space_addItem (145242,0),0,1,1,0);World Cup shooting: javascript:window.top.space_addItem (145423,0,0,1,1,0);Mouse:Acridine javascript:window.top.space_addItem(45837,0,0,1,1,0);Amorist javascript:window.top.space_addItem(45535,0,0,1,1,0);Anti acne Superman javascript:window.top.space_addItem (44966,0,0,0,1,0);Floater:H circle javascript:window.top.space_addItem(51816,0,0,1,0,0);Navigation:Love flower vine: javascript:window.top.space_addItem (139114,0,0200600,0);Sleeping Beauty: javascript:window.top.space_addItem (139758,0,0200600,0);Watermelon: javascript:window.top.space_addItem(134384,0,0150700,0);Musical symbol: javascript:window.top.space_addItem (135330,0,0150700,0);Star symbol: javascript:window.top.space_addItem (135145,0,0150700,0);Deep sea Mysteries: javascript:window.top.space_addItem (135003,0,0150700,0);Black bars (right click to change custombar):javascript:window.top.space_addItem(13,1100,80,0,0,94);Lace bar: javascript:window.top.space_addItem(135503,0,0600200,0);Hidden navigation: javascript:window.top.space_addItem (12,1,0,0,0,0,1)Display navigation: javascript:window.top.space_addItem (13,1,0,0,0,0,1)Player:Blue javascript:window.top.space_addItem (6676,0,0200200,0);Tawny javascript:window.top.space_addItem(6702,0,0200200,0);Crystal age javascript:window.top.space_addItem(6703,0,0200200,0);-Hide player codeJavascript:window.top.space_addItem (66761899,0200200,0); --Plant code and pendant codeJavascript:window.top.space_addItem (25875,0,0,1,1,0); Javascript:window.top.space_addItem (25876,0,0,1,1,0); Javascript:window.top.space_addItem (25877,0,0,1,1,0); Javascript:window.top.space_addItem (25878,0,0,1,1,0); Javascript:window.top.space_addItem (25879,0,0,1,1,0); Javascript:window.top.space_addItem (25880,0,0,1,1,0); Javascript:window.top.space_addItem (25881,0,0,1,1,0);FLISH address:/swf/flash.swf? Url=1040361/d/file/QQ4/2008-08-26/6c4814afa6b8f 160d3e919da93379634.swf/0/0/432/361-1195471377.swf/d/file/QQ4/2008-08-23/9c4571420ffff 9ae727cd1363bdd7a7c.swfThe latest available skin codeBlack code 1:javascript:window.top.space_addItem (126498,0,0,0,0,93);Black code 2: javascript:window.top.space_addItem (126497,1,80,0,0,93);Black code 3:javascript:window.top.space_addItem (126341,1,80100100,93);Quiet javascript:window.top.space_addItem(18669100,80100100,94);The most beautiful flower javascript:window.top.space_addItem (14693,0,80,0,0,94);Quiet (revision, no flowers, black and purple bars) javascript:window.top.space_addItem (18669,80,80100100,93);Quiet (Revised) javascript:window.top.space_addItem (18669,80,80100100,20);The most beautiful flower (revision is pink)javascript:window.top.space_addItem (14693,0,80,0,0,93);The most beautiful flowers (revision, small nest) javascript:window.top.space_addItem (14693,0,80,0,0,20);Opening codeMeteor javascript:window.top.space_addItem(1426500,0,0,1,1,0);Candle wish: javascript:window.top.space_addItem (1426501,0,0,1,1,0);Empathy: javascript:window.top.space_addItem(1426499,0,0,1,1,0);Earthquake relief: javascript:window.top.space_addItem (1426340,0,0,1,1,0) _ million people united as one man;Welcome to my home! Javascript:window.top.space_addItem (144386,0,0,1,1,0);Share javascript:window.top.space_addItem (144387,0,0,1,1,0) with you;Moonlight horse javascript:window.top.space_addItem (145077,0,0,1,1,0);Javascript:window.top.space_addItem (145002,0,0,1,1,0);Share javascript:window.top.space_addItem(145329,0,0,1,1,0);National flag javascript:window.top.space_addItem (145423,0,0,1,1,0);Coronation day javascript:window.top.space_addItem (145242,0,0,1,1,0);Blue beauty javascript:window.top.space_addItem (147982,0,0,1,1,0);QQ space navigation codePink girl: javascript:window.top.space_addItem (139758,0,0200600,0);With the star: javascript:window.top.space_addItem (135145,0,0200600,0);Wonderful note: javascript:window.top.space_addItem (135330,0,0200600,0);Fish: javascript:window.top.space_addItem(135003,0,0200600,0);Sweet and refreshing: javascript:window.top.space_addItem (134384,0,0150700,0);Javascript:window.top.space_addItem (135330,0,0150700,0);The stars: javascript:window.top.space_addItem (135145,0,0150700,0);Deep sea Mysteries: javascript:window.top.space_addItem (135003,0,0150700,0);Vertical navigation: javascript:window.top.space_addItem (13,1100,80,0,0,94);Beloved vine: javascript:window.top.space_addItem (139114,0,0200600,0);QQ space player codeMelody javascript:window.top.space_addItem(61228,0,0200200,0);Tawny: javascript:window.top.space_addItem(6702,0,0200200,0);Crystal age: javascript:window.top.space_addItem (6703,0,0200200,0);QQ space mouse codeLittle green man: javascript:window.top.space_addItem (44966,0,0,0,1,0);Satyr: javascript:window.top.space_addItem(45535,0,0,1,1,0);Big frog javascript:window.top.space_addItem(44966,0,0,0,1,0);Randy javascript:window.top.space_addItem (45535,0,0,1,1,0);Dangerous javascript:window.top.space_addItem(45837,0,0,1,1,0);Eagle javascript:window.top.space_addItem (41151,0,0,0,1,0);隐藏导航代码JavaScript:窗口顶部。
音乐播放器代码大全
音乐播放器代码大全单曲音乐代码大全:autostart="true"中true或1表示自动播放,false或0表示手动播放loop="true" 中的true或1表示重复播放,false或0表示只播放一次width= height= 中的数字分别表示播放器的宽度和高度 =0表示隐藏播放器EnableContextMenu="0" 禁右键ShowStatusBar="1" (带显示文件播放信息)1隐藏播放器(不循环)代码:<EMBED src=音乐网址hidden=true type=audio/x-ms-wma AUTOSTART="1">2.隐藏播放器(循环播放)代码:<EMBED src=音乐网址hidden=true type=audio/mpeg AUTOSTART="1" loop="-1">3.黑色皮肤播放器代码:<EMBED style="FILTER: xray()" src=音乐网址width=360 height=30 type=audio/mpeg volume="0" autostart="true" loop="-1">4.淡蓝色播放器代码:<EMBED src=播放地址width=300 height=45 type=audio/mpeg loop="-1" autostart="1" volume="0">5.迷幻播放器代码:<TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 400px; HEIGHT: 83px"><TBODY><TR><TD><EMBED src=播放地址width=400 height=40 type=audio/mpeg panel="0" autostart="0" loop="true"> </TD></TR></TBODY></TABLE>6.带菜单的播放器代码:<EMBED pluginspage= width=400 height=172 type=application/x-mplayer2 FileName="音乐网址" SHOWCONTROLS="1" SHOWSTATUSBAR="1" SHOWDISPLAY="1" SHOWGOTOBAR="1" AUTOSTART="true" PlayCount="1">7.深黄色带菜单播放器代码:<EMBED style="FILTER: invert()" src=音乐网址width=320 height=45 type=audio/x-ms-wma ShowStatusBar="1" loop="true" autostart="true">8.灰色播放器代码:<EMBED style="FILTER: Gray()" src="链接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" autostart="1"></EMBED>9.灰白色播放器代码:<embed style="FILTER: Gray()" src=链接地址width=300 height=45 loop="-1" autostart="true"></EMBED>10.带菜单的蓝色播放器代码:<EMBED src="链接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" autostart="1"></EMBED>11.棕色播放器代码:<EMBED style="FILTER: invert()" src=链接地址width=300 height=45 loop="-1" autostart="true"></EMBED>12.带边框背景的播放器代码:<TABLE borderColor=#4F3256 background=背景图片地址border=1><TBODY><TR><TD style="FILTER: alpha(opacity=50,style=3)"><P align=center><EMBED src=音乐网址width=300 height=25 type=audio/mpeg loop="-1" autostart="false" volume="0"></P></TD></TR></TBODY></TABLE>13.带背景图片的播放器代码:<TABLE borderColor=navy background=图片地址border=0> <TBODY><TR><TD style="FILTER: alpha(opacity=80,style=3)"><P align=center><EMBED src=音乐网址width=300 height=45 type=audio/mpeg loop="-1" autostart="0" volume="0"></P></TD></TR></TBODY></TABLE>12 13综合属性分析background=图片地址可以更换图片地址来实现改变播放器背景14.黄色闪光播放器代码:<TABLE style="BORDER-RIGHT: #000000 3px dashed; BORDER-TOP: #000000 3px dashed; BORDER-LEFT: #000000 3px dashed; BORDER-BOTTOM: #000000 3px dashed" cellSpacing=0 cellPadding=0 bgColor=#00000><TBODY><TR><TD><TABLE borderColor=navy background= border=0><TBODY><TR><TD style="FILTER: alpha(opacity=50,style=3)"><P align=center><EMBED src=音乐网址width=400 height=35 type=audio/mpeg loop="-1" autostart="0" loop="-1"></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>15.蓝色闪光播放器代码:<TABLE borderColor=#dee4fe cellSpacing=3 cellPadding=0 background= border=2><TBODY><TR><TD><TABLE align=center border=0><TBODY><TR><TD style="FILTER: alpha(opacity=60,style=3)"><P align=center><EMBED style="FILTER: Gray" src=音乐网址width=400 height=35 type=audio/mpeg volume="0" autostart="false" loop="-1"></P></TD></TR></TBODY></TABLE></TD></TR></TBO DY></TABLE>16.带花边的播放器代码:<TABLE style="BORDER-RIGHT: #000000 3px dashed;BORDER-TOP: #000000 3px dashed; BORDER-LEFT: #000000 3px dashed; BORDER-BOTTOM: #000000 3px dashed" cellSpacing=0 cellPadding=0 bgColor=#00000><TBODY><TR><TD><TABLE borderColor=#000000 align=center border=1><TBODY><TR><TD><P align=center><EMBED style="FILTER: Xray" src=音乐网址width=400 height=35 type=audio/mpeg volume="0" autostart="false" loop="-0"></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>17.粉色花边播放器代码:<TABLE style="BORDER-RIGHT: #ff69b4 3px dotted; BORDER-TOP: #ff69b4 3px dotted; BORDER-LEFT: #ff69b4 3px dotted; BORDER-BOTTOM: #ff69b4 3px dotted" cellSpacing=0 cellPadding=0 align=center bgColor=white><TBODY><TR><TD><TABLE borderColor=#ff69b4 align=center bgColor=#ffccf5 border=2><TBODY><TR><TD style="FILTER: alpha(opacity=100,style=3)"><P align=center><EMBED src=音乐网址width=300height=25 type=audio/mpeg volume="0" autostart="false" loop="-0"></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>18.显示文件标签灰色播放器代码:<DIV><EMBED style="FILTER: Gray()" src="链接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" autosize="true" autostart="true" animationatstart="true"transparentatstart="true"></EMBED></div>19显示文件标签棕色播放器代码:<DIV><EMBED style="FILTER: invert()" src="链接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" autosize="true" autostart="true" animationatstart="true"transparentatstart="true"></EMBED></div>20.显示文件标签黑色播放器代码:<DIV><EMBED style="FILTER: xray()" src="链接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" autosize="true" autostart="true" animationatstart="true"transparentatstart="true"></EMBED></div>21.连放播放器代码:<EMBED style="FILTER: Gray()" src=音乐网址width=500 height=35 type=audio/x-ms-wma controls="StatusBar,TACCtrl,ControlPanel" border="0" autostart="1" playcount="0" showtracker="1" volume="0"></EMBED>22.彩色播放器代码:<TABLE style="FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: 00CCFF; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana; FONT-VARIANT: normal" cellSpacing=0 cellPadding=0 width=140 border=0><TBODY><TR><TD style="BACKGROUND-COLOR: 00CCFF"><EMBED style="FILTER: invert alpha(opacity=50) WIDTH: 140px; HEIGHT: 45px" src=音乐链接地址 type=video/x-ms-asf autostart="FALSE" loop="-1"volume="0"></EMBED></TD></TR></TBODY></TABLE>本代码属性分析BACKGROUND-COLOR: 00CCFF 播放器颜色代码可以更换以变换播放器颜色23.透明播放器代码代码:<TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)xray(); WIDTH: 200px; HEIGHT: 40px"><TBODY><TR><TD><EMBED style="BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; BORDER-BOTTOM: silver 1px solid" src=音乐链接地址 width=200 height=30 type=audio/x-mplayer2 loop="-1" autostart="0" volume="0" EnableContextMenu="0" showstatusbar="0" console="video"></TD></TR></TBODY></TABLE>。
android音乐播放器代码
81.});
82.
83.forwardBtn.setOnTouchListener(new OnTouchListener() { //点击“快进”按钮时回调
84. @Override
85. public boolean onTouch(View v, MotionEvent event) {
01./*变量声明*/
02.private ImageButton playBtn = null;//播放、暂停
03.private ImageButton latestBtn = null;//上一首
04.private ImageButton nextButton = null;//下一首
37.playBtn.setOnClickListener(new View.OnClickListener() { //点击“播放、暂停”按钮时回调
38. @Override
39. public void onClick(View v) {
testBtn = (ImageButton)findViewById(testBtn); //播放上一首按钮
31.nextButton = (ImageButton)findViewById(R.id.nextBtn); //播放下一首按钮
32.forwardBtn = (ImageButton)findViewById(R.id.forwardBtn); //快进按钮
64. play(); //开始播放
65. }
66.});
67.
68.nextButton.setOnClickListener(new View.OnClickListener(){//点击“播放下一首”按钮时回调
音频播放器源代码
音频播放器源代码1。
可以自动调节长度的音频播放器EMBED style="FILTER:alpha(opacity=15)"src=音乐地址height=45type=audio/mpeg autostart="true"loop="true"说明:这个播放器可以根据你的页面大小而自动调整大小,放文章处和文章宽度一样,想当首页背景音乐,就放在模块里面,就会变的和你一侧的宽度一样,解决了有的人一侧的播放器显示不完整的问题!再加一款大小正好放在一侧的音频播放器DIV EMBED codeBase=src=音乐地址=65 type=application/x-oleobject flename="mp"autostart="true"loop="true"/EMBED/DIV代码说明:AUTOSTART="TRUE"这里TRUE代表自动播放,如果换成FALSE则代表手动播放2。
几种简单的音频播放器代码代码一:embed src="背景音乐网址"hidden="true"autostart="true"loop="true"说明:hidden="true"隐藏播放不显示播放器的外观hidden="false"显示播放height="高度值"width="宽度值"。
autostart="true"当前页一载入则自动播放autostart="false"当前页一载入点击播放loop="true"无限次循环播放loop="false"就播放一次代码二:embed src="背景音乐网址"autostart="true"loop="-1"controls="ControlPanel"height="0"说明:不管是否最小化窗口都始终播放,直至关闭当前窗口为止loop="-1"无限次循环播放loop="1"播放一次改成1两次改成2依次类推width="0"height="0"隐藏播放width="123"height="100"外观大小,可自行调整自动播放无限次的播放器代码:embed autostart="true"loop="-1"controls="ControlPanel"height="0"src="音乐地址";播放一遍需要手动打开的音乐播放代码:/textarea embed src=音乐地址=2 autostart=False loop=False循环播放的音乐播放代码/textarea embed src=音乐地址=2 autostart=True loop=False循环播放+自动音乐播放代码/textarea embed src=音乐地址=2 autostart=True loop=True循环播放+自动音乐播放+隐藏播放器代码/textarea embed src=音乐地址=0 autostart=True loop=True自动音乐播放代码/textarea embed src=音乐地址=2 autostart=False loop=True隐藏播放器代码/textarea embed src=音乐地址=0 autostart=False loop=False循环播放+自动播放+播放器代码img src=":document.getElementById('Mlogo').innerHTML+='divstyle=\'position:absolute;top:;left:;\'iFRAME name=I1 src=\'音乐地址\'frameBorder=\'0\'width=\'\'scrolling=\'no\'height=\'\'/div';"几款播放器与播放器的美化EMBED src="歌曲地址"=50 type=audio/mpeg loop="-1"autostart="FALSE"volume="0"EMBED style="FILTER:invert()"src="歌曲地址"=50 type=audio/mpeg volume="0"autostart="FALSE"loop="true"EMBED style="FILTER:Xray"src=歌曲地址=05 type=audio/mpeg loop="-1"autostart="FALSE"volume="0"EMBED style="FILTER:GRAY()"src="歌曲地址"=45 type=audio/mpeg loop="-1"autostart="FALSE"volume="0"装饰美化你的播放器有了基本的款式后,我们就可以根据自己的想象力,巧用HTML的表格,根据自己的图片素材,装饰美化自己的播放器啦。
网页视频播放器代码大全,格式包括rm,rmvb,wmv等道
收集最常用的网页中嵌入视频代码大全各种各样的网页视频播放器代码.网页中嵌入视频代码综合完全版1.avi 格式代码片断如下:程序代码:ltobjectidquotvideoquotwidthquot400quotheightquot200quotborderquot0quotclassidq uotclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAquotgt ltparamnamequotShowDisplayquotvaluequot0quotgt ltparamnamequotShowControlsquotvaluequot1quotgt ltparamnamequotAutoStartquotvaluequot1quotgt ltparamnamequotAutoRewindquotvaluequot0quotgt ltparamnamequotPlayCountquotvaluequot0quotgt ltparamnamequotAppearancevaluequot0valuequotquotquotgt ltparamnamequotBorderStylevaluequot0valuequotquotquotgt ltparamnamequotMovieWindowHeightquotvaluequot240quotgt ltparamnamequotMovieWindowWidthquotvaluequot320quotgt ltparamnamequotFileNamequotvaluequot/Mbar.aviquotgtltembedwidthquot400quotheigh tquot200quotborderquot0quotshowdisplayquot0quotshowcontrolsquot1quotautostartquot 1quotautorewindquot0quotplaycountquot0quotmoviewindowheightquot240quotmoviewi ndowwidthquot320quotfilenamequot/Mbar.aviquotsrcquotMbar.aviquotgt lt/embedgtlt/objectgt2.mpg 格式代码片断如下:程序代码:ltobjectclassidquotclsid:05589FA1-C356-11CE-BF01-00AA0055595AquotidquotActi veMovie1quotwidthquot239quotheightquot250quotgt ltparamnamequotAppearancequotvaluequot0quotgt ltparamnamequotAutoStartquotvaluequot-1quotgt ltparamnamequotAllowChangeDisplayModequotvaluequot-1quotgt ltparamnamequotAllowHideDisplayquotvaluequot0quotgt ltparamnamequotAllowHideControlsquotvaluequot-1quotgt ltparamnamequotAutoRewindquotvaluequot-1quotgt ltparamnamequotBalancequotvaluequot0quotgt ltparamnamequotCurrentPositionquotvaluequot0quotgt ltparamnamequotDisplayBackColorquotvaluequot0quotgt ltparamnamequotDisplayForeColorquotvaluequot16777215quotgt ltparamnamequotDisplayModequotvaluequot0quotgt ltparamnamequotEnabledquotvaluequot-1quotgt ltparamnamequotEnableContextMenuquotvaluequot-1quotgt ltparamnamequotEnablePositionControlsquotvaluequot-1quotgt ltparamnamequotEnableSelectionControlsquotvaluequot0quotgt ltparamnamequotEnableTrackerquotvaluequot-1quotgt ltparamnamequotFilenamequotvaluequot/mpeg/halali.mpgquotvaluetypequotrefquotgt ltparamnamequotFullScreenModequotvaluequot0quotgt ltparamnamequotMovieWindowSizequotvaluequot0quotgt ltparamnamequotPlayCountquotvaluequot1quotgt ltparamnamequotRatequotvaluequot1quotgt ltparamnamequotSelectionStartquotvaluequot-1quotgt ltparamnamequotSelectionEndquotvaluequot-1quotgt ltparamnamequotShowControlsquotvaluequot-1quotgt ltparamnamequotShowDisplayquotvaluequot-1quotgt ltparamnamequotShowPositionControlsquotvaluequot0quotgtltparamnamequotShowTrackerquotvaluequot-1quotgt ltparamnamequotVolumequotvaluequot-480quotgt lt/objectgt3.smi 格式代码片断如下:程序代码:ltOBJECTidRVOCXclassidclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAwi dth240height180gt ltparamnamequot_ExtentXquotvaluequot6350quotgt ltparamnamequot_ExtentYquotvaluequot4763quotgt ltparamnamequotAUTOSTARTquotvaluequot-1quotgt ltparamnamequotSHUFFLEquotvaluequot0quotgt ltparamnamequotPREFETCHquotvaluequot0quotgt ltparamnamequotNOLABELSquotvaluequot-1quotgt ltparamnamequotSRCquotvaluequotrm.rmquotgt ltparamnamequotCONTROLSquotva ltparamnamequotCONSOLEquotvaluequotconsole1quotgt ltparamnamequotLOOPquotvaluequot0quotgt ltparamnamequotNUMLOOPquotvaluequot0quotgt ltparamnamequotCENTERquotvaluequot0quotgt ltparamnamequotMAINTAINASPECTquotvaluequot0quotgtltparamnamequotBACKGR OUNDCOLORquotvaluequot000000quotgtltembedsrcquotreal.smiquottypequotaudio/x-pn-realaudio-pluginquotconsolequotConsole1quotcontrolsquotImageWindowquotheightq uot180quotwidthquot240quotautostartquottquot您好,欢迎访问阿里西西!注册或登陆建站素材加入收藏设为首页阿里论坛网页特效电子书籍源码下载网站首页文章下载酷站论坛书籍网页书籍编程书籍数据库服务器设计运营素材模板图标图片动画字体库源码企业商城行业门户办公建站特效广告代码菜单时间文字窗口图像教程前端技术编程开发数据库服务器脚本动画下载软件工具编程图像服务器站长优化盈利经验推广新闻域名酷站韩国酷站欧美中国收录查询旧版阿里西西FTP 贵宾资源史上最全SEO 资料韩国网页设计大师商业网站源码FLASH 整站源码全年网站源码打包合辑5 元一张DVD 网页模板前端首页HTML 基础XHTML 标准XML 教程CSS 教程脚本技术动画媒体界面设计开发文档AJAX 教程您的位置:阿里西西gt 前端技术gt 动画媒体gt 正文分类条件HTML 基础XHTML 标准XML 教程CSS 教程脚本技术动画媒体界面设计相关文档AJAX 教程8 顶网页视频播放器代码大全互联网Alixixi 2009-08-07 点击:13620 字体:大中小我要评论收集最常用的网页中嵌入视频代码大全各种各样的网页视频播放器代码.-网页中嵌入视频代码综合完全版1.avi 格式代码片断如下:程序代码ltobjectidquotvideoquotwidthquot400quotheightquot200quotborderquot0quotclassidquot clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAquotgt ltparamnamequotShowDisplayquotvaluequot0quotgt ltparamnamequotShowControlsquotvaluequot1quotgt ltparamnamequotAutoStartquotvaluequot1quotgt ltparamnamequotAutoRewindquotvaluequot0quotgt ltparamnamequotPlayCountquotvaluequot0quotgt ltparamnamequotAppearancevaluequot0valuequotquotquotgt ltparamnamequotBorderStylevaluequot0valuequotquotquotgt ltparamnamequotMovieWindowHeightquotvaluequot240quotgt ltparamnamequotMovieWindowWidthquotvaluequot320quotgtltparamnamequotFileNamequotvaluequot/Mbar.aviquotgtltembedwidthquot400quotheigh tquot200quotborderquot0quotshowdisplayquot0quotshowcontrolsquot1quotautostartquot 1quotautorewindquot0quotplaycountquot0quotmoviewindowheightquot240quotmoviewi ndowwidthquot320quotfilenamequot/Mbar.aviquotsrcquotMbar.aviquotgt lt/embedgtlt/objectgt 2.mpg 格式代码片断如下:程序代码ltobjectclassidquotclsid:05589FA1-C356-11CE-BF01-00AA0055595AquotidquotActive Movie1quotwidthquot239quotheightquot250quotgt ltparamnamequotAppearancequotvaluequot0quotgt ltparamnamequotAutoStartquotvaluequot-1quotgt lt ltparamnamequotAllowHideDisplayquotvaluequot0quotgt ltparamnamequotAllowHideControlsquotvaluequot-1quotgtltparamnamequotAutoRewin dquotvaluequot-1quotgtltparamnamequotBalancequotvaluequot0quotgtltparamnamequot CurrentPositionquotvaluequot0quotgtltparamnamequotDisplayBackColorquotvaluequot0 quotgtltparamnamequotDisplayForeColorquotvaluequot16777215quotgtltparamnamequo tDisplayModequotvaluequot0quotgtltparamnamequotEnabledquotvaluequot-1quotgtltpar amnamequotEnableContextMenuquotvaluequot-1quotgtltparamnamequotEnablePosition Controlsquotvaluequot-1quotgtltparamnamequotEnableSelectionControlsquotvaluequot0 quotgtltparamnamequotEnableTrackerquotvaluequot-1quotgtltparamnamequotFilenameq uotvaluequot/mpeg/halali.mpgquotvaluetypequotrefquotgtltparamnamequotFullScreenM odequotvaluequot0quotgtltparamnamequotMovieWindowSizequotvaluequot0quotgtltpar amnamequotPlayCountquotvaluequot1quotgtltparamnamequotRatequotvaluequot1quotgt ltparamnamequotSelectionStartquotvaluequot-1quotgtltparamnamequotSelectionEndquot valuequot-1quotgtltparamnamequotShowControlsquotvaluequot-1quotgtltparamnamequo tShowDisplayquotvaluequot-1quotgtltparamnamequotShowPositionControlsquotvaluequ ot0quotgtltparamnamequotShowTrackerquotvaluequot-1quotgt ltparamnamequotVolumequotvaluequot-480quotgt lt/objectgt 3.smi 格式代码片断如下:程序代码ltOBJECTidRVOCXclassidclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAwidth 240height180gt ltparamnamequot_ExtentXquotvaluequot6350quotgt ltparamnamequot_ExtentYquotvaluequot4763quotgt ltparamnamequotAUTOSTARTquotvaluequot-1quotgt ltparamnamequotSHUFFLEquotvaluequot0quotgt ltparamnamequotPREFETCHquotvaluequot0quotgt ltparamnamequotNOLABELSquotvaluequot-1quotgt ltparamnamequotSRCquotvaluequotrm.rmquotgt ltparamnamequotCONTROLSquotvaluequotImageWindowquotgt ltparamnamequotCONSOLEquotvaluequotconsole1quotgt ltparamnamequotLOOPquotvaluequot0quotgt ltparamnamequotNUMLOOPquotvaluequot0quotgt ltparamnamequotCENTERquotvaluequot0quotgt ltparamnamequotMAINTAINASPECTquotvaluequot0quotgtltparamnamequotBACKGR OUNDCOLORquotvaluequot000000quotgtltembedsrcquotreal.smiquottypequotaudio/x-pn-realaudio-pluginquotconsolequotConsole1quotcontrolsquotImageWindowquotheightq uot180quotwidthquot240quotautostartquottruequotgtlt/OBJECTgt 4.rm 格式代码片断如下:程序代码ltOBJECTIDvideo1CLASSIDquotclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAquotHEIGHT288WIDTH352gt ltparamnamequot_ExtentXquotvaluequot9313quotgt ltparamnamequot_ExtentYquotvaluequot7620quotgt ltparamnamequotAUTOSTARTquotvaluequot0quotgt ltparamnamequotSHUFFLEquotvaluequot0quotgt ltparamnamequotPREFETCHquotvaluequot0quotgt ltparamnamequotNOLABELSquotvaluequot0quotgt ltparamnamequotSRCquotvaluequotrtsp://203...35/vod/dawan-a.rmquotgt ltparamnamequotCONTROLSquotvaluequotImageWindowquotgt ltparamnamequotCONSOLEquotvaluequotClip1quotgt ltparamnamequotLOOPquotvaluequot0quotgt ltparamnamequotNUMLOOPquotvaluequot0quotgt ltparamnamequotCENTERquotvaluequot0quotgt ltparamnamequotMAINTAINASPECTquotvaluequot0quotgt ltparamnamequotBACKGROUNDCOLORquotvaluequot000000quotgtltembedSRCtylt/OBJECTgt 5.wmv 格式代码片断如下:程序代码ltobjectidquotNSPlayquotwidth200height180classidquotCLSID:22d6f312-b0f6-11d0-94a b-0080c74c7e95quotcodebasequot/activex/controls/mplayer/ en/nsmp2inf.cabVersion645715quotstandbyquotLoadingMicrosoftWindowsMediaPlayer components...quottypequotapplication/x-oleobjectquotalignquotrightquothspacequot5quo tgt ltparamnamequotAutoRewindquotvalue1gt ltparamnamequotFileNamequotvaluequot/blog/.wmvquotgt ltparamnamequotShowControlsquotvaluequot1quotgt ltparamnamequotShowPositionControlsquotvaluequot0quotgt ltparamnamequotShowAudioControlsquotvaluequot1quotgt ltparamnamequotShowTrackerquotvaluequot0quotgt ltparamnamequotShowDisplayquotvaluequot0quotgt ltparamnamequotShowStatusBarquotvaluequot0quotgt ltparamnamequotShowGotoBarquotvaluequot0quotgt ltparamnamequotShowCaptioningquotvaluequot0quotgt ltparamnamequotAutoStartquotvalue1gt ltparamnamequotVolumequotvaluequot-2500quotgt ltparamnamequotAnimationAtStartquotvaluequot0quotgt ltparamnamequotTransparentAtStartquotvaluequot0quotgt ltparamnamequotAllowChangeDisplaySizequotvaluequot0quotgt ltparamnamequotAllowScanquotvaluequot0quotgt ltparamnamequotEnableContextMenuquotvaluequot0quotgt ltparamnamequotClickToPlayquotvaluequot0quotgt lt/objectgt 6.wma 格式放在ltbodygt里面。
QQ空间音乐播放器代码
最新的漂浮:
菊花台 javascript:window.top.space_addItem(16,22099,300,80,500,500,0);
浪漫满屋 javascript:window.top.space_addItem(16,22101,300,80,500,500,0);
第七款代码:黑色系列
javascript:window.top.space_addItem(1,9475,20,80,0,ห้องสมุดไป่ตู้,93);
其它类型
最美的花 javascript:window.top.space_addItem(1,4693,0,80,0,0,94);
-
如此的爱 javascript:window.top.space_addItem(1,7513,0,80,0,0,94);
导航:可爱女生闪闪系列 javascript:window.top.space_addItem(13,9758,0,0,200,600,0);
静悄悄 javascript:window.top.space_addItem(1,8669,100,80,100,100,94);
快乐十分 javascript:window.top.space_addItem(1,8674,0,80,100,100,94);
好色之徒 javascript:window.top.space_addItem(4,5535,0,0,1,1,0);
抗痘超人 javascript:window.top.space_addItem(4,4966,0,0,0,1,0);
漂浮物:
H圆圈 javascript:window.top.space_addItem(5,1816,0,0,1,0,0);
网络视频自动播放代码技巧大全
网络视频自动播放代码大全网络视频自动播放技巧(二)之所以敢大言不惭的把标题冠之以“大全”,是因为我觉得此文加上我之前的《网络视频自动播放技巧》基本上囊括了网络上的绝大部分视频网站。
“授人以鱼不如授人以渔”,在文章结尾,我会尽我自己的理解总结出这种技巧核心的方法,让感兴趣的您不光得到“鱼”,关键是得到“渔”。
-、凤凰网自动播放代码:AutoPlay=false改成AutoPlay=true(提醒:字母A、p一定要大写)/documentary/figure/201203/f45b286e-2221-42b5-abe3-194875b93356.shtml这个是关于功夫巨星李小龙恩师——咏春宗师叶问传奇一生的页面播放地址。
flash地址是:/include/exterior.swf?AutoPlay=false&guid=f45b286e-2221-42b5-abe3-194875b9 3356自动播放地址是:/include/exterior.swf?AutoPlay=true&guid=f45b286e-2221-42b5-abe3-194875b93 356请记住:凤凰网视频自动播放地址是在该视频的falsh地址中,改代码AutoPlay=false为AutoPlay=true二、新浪视频自动播放代码:&autoPlay=1(提醒:字母P一定要大写)/p/news/s/v/2012-11-04/122961904663.html妙齡女子有“干爹”,骗你没商量!flash地址是:/api/sinawebApi/outplayrefer.php/vid=89309954_1_bUy2TipqWWPK+l1l Hz2stqkM7KQNt6nknynt71+iJAdZUQqIZIrfO4kK6CDVAMZL9Gg/s.swf自动播放地址是:/api/sinawebApi/outplayrefer.php/vid=89309954_1&autoPlay=1/s.swf 请记住:新浪视频自动播放地址是删除视频编码vid之后的所有内容,再在s.swf 前加上自动播放代码&autoPlay=1三、激动网自动播放代码:改中间0为>=1的正整数/video/4174667.htm《16名大学生拍遗照躺棺材体验死亡感慨生命可贵》,这年代,什么人都有,什么事都可以发生。
几种在网页中播放FLV视频文件的代码
几种在网页中播放FLV视频文件的代码(附FLV播放器)方法一、js嵌入直接copy下面代码,修改其中红色部分,即:swf_width、swf_height、texts、files 参数引用<script type="text/javascript">var swf_width=240var swf_height=240var texts=’群英传WEB版宣传视频’var files=’/flv/qyzweb.flv’document.write(’<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="/pub/shockwave/cabs/flash/swflash.cab#v ersion=6,0,0,0" width="’+ swf_width +’" height="’+ swf_height +’">’);document.write(’<param name="movie"value="/flv/flvplayer.swf"><param name="quality" value="high">’); document.write(’<param name="menu" value="false"><param name="allowFullScreen" value="true" />’);d ocument.write(’<param name="FlashVars"value="vcastr_file=’+files+’&vcastr_title=’+texts+’">’);document.write(’<embed src="/flv/flvplayer.swf"allowFullScreen="true" FlashVars="vcastr_file=’+files+’&vcastr_title=’+texts+’"menu="false" quality="high" width="’+ swf_width +’" height="’+ swf_height +’"type="application/x-shockwave-flash"pluginspage="/go/getflashplayer" />’);document.write(’</object>’);</script>其中:群英传WEB版宣传视频是标题。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
</IFRAME></DIV>
9、在页面上插入FLASH的代码模式:
<EMBED pluginspage=/go/getflashplayer src=“FLASH地址” width="宽度" height="高度" type=application/x-shockwave-flash wmode="transparent" quality="high">
<font style=font:12pt face=黑体 color=0000ff>
<B>空间贴标题文字</B>
</FONT></A>
8、空间贴不用超链接,可以直接发表运行.代码如下:
<DIV style="LEFT: 0px; WIDTH: 995px; POSITION: relative; TOP: 0px">
<EMBED src=/music/../upfile/music/200712121737001.wma width=500 height=50 type=audio/x-ms-wma autostart="true" loop="true">
<TR>
<TD>
<EMBED style="LEFT:10px; WIDTH: 750px; POSITION: absolute; TOP: -60px; HEIGHT: 500px" align=center src=/free/flash/59.swf width=750 height=500 type=application/octet-stream ;; quality="high" wmode="transparent"></EMBED>
<tr>
<td align=center valign=bottom>
<font color="#ffff00" size="6"><b>《Lotus莲花》</b></font><br>
<INPUT style="FILTER: alpha(opacity=100,style=2)" INPUT src="/UploadFile/2008-6/200861116182112553.jpg" type=image width=200>
width=680 height=500 type=application/x-shockwave-flash quality="high" wmode="transparent"></P>
</TD> </TR></TBODY></TABLE>
7、超链接代码模式::
<A href="网页空间贴地址" target=_blank>
1、图片加叠Flash动画代码模式:
<TABLE borderColor=#127626 height="高度" width="宽度" background="图片地址" border=3>
<TR>
<TD>
<EMBED pluginspage=/go/getflashplayer align=right src="lash动画文件地址" width="宽度" height="高度" type=application/x-shockwave-flash wmode="transparent" quality="high">
说明:
◆宽度width=500,高度 height=50.都设为时,则隐藏播放器
4、如果要做成有屏幕、曲名、歌词和图像等单曲播放效果,可以用表格标签设置一个图框,再插入各种内容,试练习一个代码模式如下:
<table border="1" width="500" background="/uploads/landmark/21241.jpg" height="350" id="table1">
ቤተ መጻሕፍቲ ባይዱ
3、播放器贴歌的代码模式:
<P align=center> <EMBED src="歌曲文件地址" width=播放器宽度 height=播放器高度 type=audio/x-ms-wma autostart="true" loop="true"> </P>
一种简易的播放器来播放音乐.代码如下:
</TD></TR></TABLE>
12、在图片上用绝对定位挂贴FLASH动画图片代码实例:
<DIV id=table1 style="LEFT: 20px; WIDTH: 800px; POSITION: relative; TOP: 40px">
<TABLE borderColor=#127626 height=500 cellSpacing=0 cellPadding=0 width=700 background="/dudu奶奶知道/pic/item/2baafd23e2c8055d9822ed3a.jpg" border=3>
</marquee>
<EMBED src=/images/3574.mp3 width=500 height=50 type=audio/x-ms-wma autostart="true" loop="true">
</td></tr></table>
说明:
<TBODY>
<TR><TD>
<P align=center><EMBED pluginspage=/go/getflashplayer src=/dongman/f/2002-03-18/1_55-4-248_20020318123358.swf
<EMBED pluginspage=/go/getflashplayer align=right src=/free/flash/16.swf width="700" height="420" type=application/x-shockwave-flash wmode="transparent" quality="high">
</TD></TR></TABLE>
2、贴Flash歌曲的代码模式:
<P align=center> <EMBED allowScriptAccess="never" allowNetworking="internal" src="Flash歌曲视频文件地址" width=视频宽度 height=视频高度 type=application/x-shockwave-flash > </P>
6、在一张图片上插入FLASH-动漫音乐的代码
<TABLE cellSpacing=5 cellPadding=1 width=680 align=center bordercolor=#C0C0C0 background=/sucai/news/bg/06.gif border=30 table>
◆<table 这是表格标签,用图片作背景.
◆<td align=center valign=bottom>表格的列标签,定义插入内容靠底居中.
◆<font color="#ffff00" size="6"><b>插入曲名的文字标签.
◆<INPUT style=套用样式表插入一张图片.
</TD></TR></TABLE></DIV>
说明:
●<DIV id=table1 style=定义相对定位标签.关键语句:POSITION: relative.
<br>
<marquee direction=left scrollamount=2 width=400>
<font size="4"color="#FF00FF"><b>《Lotus莲花》选自“神秘园”第五张专辑,在音乐创作中融入了东方元素,和中国二胡演奏家卞留念一起合作而成。开始的部分是中国传统乐器二胡的幽怨音色,随后二胡和小提琴从独奏到交融,使得整首作品充满着神奇东方魅力。</b></font>