1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <html >
<script type="text/javascript" src="javascript.js"></script>
<script type="text/javascript">
function request() {
var xhr = getXMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)) {
callback(xhr.responseText);
}
};
xhr.open("GET", "http://stream.php?stream="http://xxxxx.mp3",true);
xhr.send(null);
}
</script>
<input type="button" onclick="request();" value="Exécuter" />
</html> |