webdiez
Сообщений: 2
Оценки: 0
Присоединился: 2012-03-20 23:46:00.346666
|
есть такой скрипт <script type="text/javascript" src="http://radio.free-hop.ru/zxml.js"></script>
<script type="text/javascript">
<!--
function getcurentsong19137() {
var oXmlHttp = zXmlHttp.createRequest();
oXmlHttp.open("get", "http://free-hop.ru/getcurentsong19137.php", true);
oXmlHttp.onreadystatechange = function () {
if (oXmlHttp.readyState == 4) {
if (oXmlHttp.status == 200) {
displaycurentsong19137(oXmlHttp.responseText);
} else {
displaycurentsong19137("An error occurred: " + oXmlHttp.statusText);
}
}
};
oXmlHttp.send(null);
}
function displaycurentsong19137(sText) {
var divInfo = document.getElementById("curentsong19137");
divInfo.innerHTML = "Сейчас слушаем: " + sText;
}
//-->
</script>
скрипт отображает текущий трек играющий на радио (пример free-hop.ru ниже плеера) проблема в том что надо сделать чтоб трек отоброжался в одну строку и с эфектом бегущей строки…
|