hola es que tengo esto echo pero no me funciona
Código HTML:
Ver original<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> .scroll
{
width:200px;
height:450px;
overflow: auto;
border:1px solid #000000; /* Solo lo puse para que se vea el cuadro*/
}
.link {
color:blue;
text-decoration:underline;
cursor:pointer;
}
function updatePlayer(link) {
var vlc = document.getElementById("vlc"); vlc.playlist.stop(); vlc.playlist.clear(); vlc.playlist.add(link, "live", ":network-caching=150"); vlc.playlist.play();
}
<table width="900" height="480" border="1"> <td height="30" colspan="2">Watch Online Channels
</td> <?php
$file = fopen("url.txt", "r");
while(!feof($file)) {
echo "<span class=\"link\" onclick=\"javascript:updatePlayer('".fgets($file)."');\">Channel
</span><br>";
}
fclose($file);
?>
<td width="640" align="center"> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" id="vlc" height="480" width="640">