Core
03-01-2010, 11:30 AM
<!--http://ananmanan.com/am_download/sinhala_mp3/Amal_Perera_Mal_Pita_Mal.mp3 -->
<!-- use above link for testing purpose-->
<!-- remember US IE because FireFox needs plugins-->
<html>
<head>
<script type='text/javascript'>
try
{
function coremusic()
{
var _URL = prompt('Copy and Paste your Music Link here','');
if (_URL != "")
{
if ( _URL.indexOf('.mp3') != -1 )
{
if ( navigator.appName == 'Microsoft Internet Explorer')
{
document.write("<div style='text-align:center'><object width='300' height='80' id='music1'>\
<param name='music' value= " + "'" + _URL + "'" + " type='audio/mpeg' />\
<embed src= " + "'" + _URL + "'" + " type='audio/mpeg' id='music1' width='300' height=80' />\
</object></div>")
document.write("<br /> <p style='text-align:center'> Now Playing : <b>" + _URL + "</b> <br />");
document.write("<br /> <p style='text-align:center'> Browser : <b>" + navigator.appName + "</b> <br />");
}
else
{
alert('Sorry Use IE rest of are shit needs plugins');
}
}
else
{
alert('this codes have been written for only .mp3 format');
}
}
else
{
alert("Need a Valid URL");
}
}
}
catch( _error )
{
alert(_error.description);
}
</script>
</head>
<body>
<input type='button' value='Click to Proceed' onclick='coremusic()' />
</body>
</html>
Note : all codes have been written by Core so don't steal mine ,if you want to use then put the reference with you (use Harvard Reference System)
GIVE ME FEEDBACK so I CAN FIND ERRORS .!!!
<!-- use above link for testing purpose-->
<!-- remember US IE because FireFox needs plugins-->
<html>
<head>
<script type='text/javascript'>
try
{
function coremusic()
{
var _URL = prompt('Copy and Paste your Music Link here','');
if (_URL != "")
{
if ( _URL.indexOf('.mp3') != -1 )
{
if ( navigator.appName == 'Microsoft Internet Explorer')
{
document.write("<div style='text-align:center'><object width='300' height='80' id='music1'>\
<param name='music' value= " + "'" + _URL + "'" + " type='audio/mpeg' />\
<embed src= " + "'" + _URL + "'" + " type='audio/mpeg' id='music1' width='300' height=80' />\
</object></div>")
document.write("<br /> <p style='text-align:center'> Now Playing : <b>" + _URL + "</b> <br />");
document.write("<br /> <p style='text-align:center'> Browser : <b>" + navigator.appName + "</b> <br />");
}
else
{
alert('Sorry Use IE rest of are shit needs plugins');
}
}
else
{
alert('this codes have been written for only .mp3 format');
}
}
else
{
alert("Need a Valid URL");
}
}
}
catch( _error )
{
alert(_error.description);
}
</script>
</head>
<body>
<input type='button' value='Click to Proceed' onclick='coremusic()' />
</body>
</html>
Note : all codes have been written by Core so don't steal mine ,if you want to use then put the reference with you (use Harvard Reference System)
GIVE ME FEEDBACK so I CAN FIND ERRORS .!!!