Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file = $sito . "OnAir.txt?bbb=" . rand();
- $song = file_get_contents($file,false,$context);
- $song = htmlentities(substr($song, 0, strlen($song)-2));
- $song = explode(" - ", $song);
- echo "var myDiv = document.getElementById('cc_stream_info_song');";
- echo "var artist = document.createTextNode(\"Artista: $song[0]\");";
- echo "var title = document.createTextNode(\"Titolo: $song[1]\");";
- echo "myDiv.removeChild(myDiv.firstChild);";
- echo "var div2 = document.createElement('div');";
- echo "var br = document.createElement('br');";
- echo "div2.appendChild(artist);";
- echo "div2.appendChild(br);";
- echo "div2.appendChild(title);";
- echo "myDiv.appendChild(div2);";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement