Подскажите.
в место
<script>document.write(song);</script>
сейчас
<script>document.write(""+informer['song']+"");</script>
Как теперь сменить этот скрипт -
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
document.write('<span style="padding-right:10px;color: #8e8e8e;" id="1"></span>')
var element, song_old, span = document.getElementById('1');
function attachScript() {
if (element) document.getElementsByTagName("head")[0].removeChild(element);
var element = document.createElement("script");
element.type = "text/javascript";
element.src = 'http://myradio24.com/radio.php?port=8006&r=' + Math.random();
document.getElementsByTagName("head")[0].appendChild(element);
window.setTimeout(function () {
if (song && song != song_old) {
while (span.firstChild) span.removeChild(span.firstChild);
song_old = song;
span.appendChild(document.createTextNode(song.replace(/(.{50,55}\b).*/g,"$1...")));
}
}, 5000);
window.setTimeout(arguments.callee, 20000);
}
attachScript();
/*]]>*/
</script>