O ignis spiritus~ Hildgard Von Bingen </option>. <option value=" http://www.thesanctuaryoftheheart.org/SanctMusic/OmNamashiva.wav ">[r]
Trang 1Code tạo chơi nhạc trực tuyến:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://quangthu05.webng.com/data/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!
body {
text-align:center;
}
form {
margin:0;
padding:0;
}
>
</style>
<script type="text/javascript">
<!
function PlayIt(){
document.getElementById('music1').innerHTML='<object id="mediaplayer" type="application/x-mplayer2" width="185" height="45" data="'+document.getElementById('cancion').value+'">'
+'<param id="media1" name="src" value="'+document.getElementById('cancion').value+'">'
+'<param id="media2" name="filename" value="'+document.getElementById('cancion').value+'">' +'<param name="type" value="application/x-mplayer2">'
+'Your system does cannot find the windows media player that was specified.'
+'</object>'
}
// >
</script>
</head>
<body onload="document.forms['player'].reset()">
<form name="player" action="" method="">
<select name="" id="cancion" onchange="PlayIt()" size="1">
<option value="none">::::::::::::: Click để chọn bài hát :::::::::::::</option>
<option value="http://urltosong1.mp3">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
</select>
</form>
<span id="music1">
<object type="application/x-mplayer2" width="185" height="45" data="">
<param name="src" value="">
<param name="filename" value="">
<param name="type" value="application/x-mplayer2">
Your system does cannot find the windows media player that was specified
</object>
</span>
</body>
</html>
Chú ý: Các giá trị màu xanh thay đổi cho thích hợp.
Trang 2Code tạo chơi video trực tuyến:
<meta http-equiv="Content-Type" content=
"text/html; charset=iso-8859-1">
<style type="text/css">
<! body {
text-align:center;
background-color:black;
}
form {
margin:0;
padding:0;
}
>
</style>
<script type="text/javascript">
<! function PlayIt(){
document.getElementById("music1").innerHTML='<object id="mediaPlayer" width="535"
height="45" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,7 01" '
+'standby="Loading Microsoft Windows Media Player components " type="application/x-oleobject">' +'<param name="fileName" value="'+document.getElementById('cancion').value+'">'
+'<param name="animationatStart" value="true">'
+'<param name="transparentatStart" value="true">'
+'<param name="autoStart" value="true">'
+'<param name="showControls" value="false">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'bgcolor="101010" showcontrols="false" width="535" height="45" '
+'src="'+document.getElementById('cancion').value+'" autostart="true" designtimesp="5311"
loop="true">'
+'<\/embed>'
+'<\/object>'
}
// >
</script><form name="player" action="" method=""><select name="List" style=
"background-color:#FFFFFF; color:#aa0000" id="cancion" onchange=
"PlayIt()" size="1">
<option value="#">::::::::::::: Click để chọn tệp bạn cần xem :::::::::::::</option>
<option value=
"http://www.thesanctuaryoftheheart.org/SanctMusic/FairRIng4.wav">
FairyRing~M Rowland</option>
<option value="http://www.thesanctuaryoftheheart.org/SanctMusic/Oignisspiritus.wav">
O ignis spiritus~ Hildgard Von Bingen</option>
<option value="http://www.thesanctuaryoftheheart.org/SanctMusic/OmNamashiva.wav">
Om Nama Shiva~Robert Gass</option>
<option value="http://www.thesanctuaryoftheheart.org/SanctMusic/VoicesOfAngels.wav">
Voices of Angels~ Hildgard Von Bingen</option>
Trang 3<span id="music1"><object id="mediaPlayer" width="535" height="450"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components "
type="application/x-oleobject"><param name="fileName" value="">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="false">
<param name="loop" value="true">
<embed type="application/x-mplayer2" pluginspage=
"http://microsoft.com/windows/mediaplayer/en/download/" bgcolor=
"black" showcontrols="false" width="535" height="450" src=""
autostart="false" designtimesp="5311" loop="true"></object></span>
Code tạo chơi nhạc trực tuyến(Ẩn ở thanh bên):
<a href="http://mediaplayer.yahoo.com/example1.mp3">Tên bài hát 1</a><br>
<a href="http://mediaplayer.yahoo.com/example2.mp3">Tên bài hát 2</a>
<div id="ymp-body-base">
<div id="ymp-body-strip" class="ymp-color-main"></div>
<div id="ymp-body-cap">
<div class="ymp-color-main ymp-pix-dark ymp-pix-tr1"></div>
<div class="ymp-color-main ymp-pix-light ymp-pix-tr2"></div>
<div class="ymp-color-main ymp-pix-light ymp-pix-tr3"></div>
<div class="ymp-color-main ymp-pix-dark ymp-pix-tr4"></div>
<div class="ymp-color-main ymp-cap-body1"></div>
<div class="ymp-color-main ymp-cap-body2"></div>
<div class="ymp-color-main ymp-pix-dark ymp-pix-br1"></div>
<div class="ymp-color-main ymp-pix-light ymp-pix-br2"></div>
<div class="ymp-color-main ymp-pix-light ymp-pix-br3"></div>
<div class="ymp-color-main ymp-pix-dark ymp-pix-br4"></div>
</div>
</div>
<script type="text/javascript" src=
"http://quangthu05.webng.com/data/ Choinhac.js ">
</script>