找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
积分等级发帖收益的说明江阴论坛帮助汇总江阴论坛管理规则(必看)江阴论坛版主招聘中江阴论坛已运行
查看: 1983|回复: 0

[技术分享] 一些音乐播放代码,可加在blog或论坛

[复制链接]
发表于 2010-3-16 13:54:03 | 显示全部楼层 |阅读模式
  1. <embed src="链接" align="center" border="0" width="1" height="1" width="100" autostart="true" loop="true"> (MP3格式)
复制代码
  1. <embed width="0" height="0" type="audio/x-pn-realaudio-plugin" autostart="true" controls="ControlPanel" src="链接";> (rm,ra,ram格式
复制代码
  1. <embed autostart="true" loop="-1" controls="ControlPanel" width="0" height="0" src="链接";> (midi,asf,wma,asx格式)
复制代码
  1. <embed src='链接l' width=200 height=200 autostart=true loop=true></embed> (最简单的media格式的播放器,自动识别有无图像,但是版本是你机器的!!)
复制代码
  1. <object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=280 height=265 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52
  2. ,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
  3. <param name='URL' value='链接'>
  4. <PARAM NAME='UIMode' VALUE='full'><PARAM NAME='AutoStart' VALUE='true'>
  5. <PARAM NAME='Enabled' VALUE='true'>
  6. <PARAM NAME='enableContextMenu' VALUE='false'>
  7. <param name='WindowlessVideo' VALUE='true'></object> (有图像的media播放器)
复制代码
  1. <embed SRC=链接 type=audio/x-pn-realaudio-plugin CONSOLE=Clip1 CONTROLS=ImageWindow HEIGHT=26 WIDTH=240 AUTOSTART=true loop=true> (电台播放器)
复制代码
  1. <object name="wmplayer" classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 width=0 height=0
  2.   codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
  3.   height=180 id=MIDIPlayer type=application/x-oleobject VIEWASTEXT standby="加载 Microsoft Windows Media Player 组件...">
  4.   <param name="FileName" value="http://yourURL/xxx.wma">
  5.   <param name="AutoStart" value="true">
  6.   <param name="AutoRewind" value="-1">
  7.   <param name="AnimationAtStart" value="false">
  8.   <param name="ShowControls" value="false">
  9.   <param name="ClickToPlay" value="false">
  10.   <param name="EnableContextMenu" value="true">
  11.   <param name="EnablePositionControls" value="false">
  12.   <param name="Balance" value="0">
  13.   <param name="ShowStatusBar" value="false">
  14.   <param name="AutoSize" value="0">
  15.   <embed type="application/x-mplayer2"
  16.   pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
  17.   filename src autostart="false" enablecontextmenu="false" clicktopla
  18.   y="false" enablepositioncontrols="false" showcontrols="0" showstatusbar="1" showdisplay="0">
  19. </object>
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|江阴人家

GMT+8, 2024-12-28 22:00 , Processed in 0.024962 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表