zoukankan      html  css  js  c++  java
  • html播放音乐

    如何在网站网页中添加音乐代码

    告诉你多种格式文件的详细使用代码。 
       width_num——指定一个作为宽度的数字; 
       height_num——指定一个作为高度的数字; 
        1.mp3
        <embed controller="true" width="width_num" height="height_num"  
    src="音乐文件和地址" border="0" pluginspage=
    " http://www.apple.com/quicktime/download/indext.html"></embed>
        2.mid 
        <embed src="音乐文件和地址" type="audio/midi" hidden="false" autostart="true"  
    loop="true" height=height_num width=width_num></embed> 
        3.avi
        <embed src="音乐文件和地址" border="0" width="width_num" height=
    "height_num" type="application/x-mplayer2"></embed> 
        4.flash
        <embed src="音乐文件和地址" pluginspage=
    " http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="width_num" height="height_num" play="true" loop="true"
    quality="high" scale="showall" menu="true"></embed> 
        5.rm
        <OBJECT>" height="height_num">
        <PARAM NAME="CONTROLS" VALUE="ImageWindow">
        <PARAM NAME="AUTOSTART" Value="true">
        <PARAM NAME="SRC" VALUE="音乐文件和地址">
        <embed height="高" width="宽" controls="ImageWindow"  
    src="音乐文件和地址" type=
    "audio/x-pn-realaudio-plugin" autostart="true" nolabels="0" 
    autogotourl="-1"></OBJECT> 
        6.mpg
        <embed src="音乐文件和地址" border="0" width="width_num" 
    height="height_num" type="application/x-mplayer2"></embed> 
        7.mov
        <embed controller="true" width="width_num" height="height_num" 
    src="音乐文件和地址" border="0" pluginspage=
    " http://www.apple.com/quicktime/download/indext.html"></embed>
        8.上面的都是使用播放器的,如果只是想播放背景音乐的话可以使用如下简单语句:
        <bgsound src="音乐文件和地址" loop=1>
        loop后面是循环的次数,-1代表无限循环。 如何在网站网页中添加音乐

    追问:
    嗯 感谢,我下载了下个flash 播放器 ,怎么向里面添加添加歌曲文件播放呢?
    回答:
    <embed src="音乐文件和地址"-----输入链接地址 就可以了。
  • 相关阅读:
    HDU 4339 Query
    Another app is currently holding the yum lock解决方法
    m0n0wall安装教程
    网盘
    kali 网络配置
    monowall
    Windows server 2012安装vmtools遇到的问题
    利用WPF建立自适应窗口大小布局的WinForm窗口
    wpf倒影效果
    SQL 进制间如何转换
  • 原文地址:https://www.cnblogs.com/ymh2013/p/3661166.html
Copyright © 2011-2022 走看看