Bien.. ya tengo el script.. ahora lo modificare
En la barra del medio sale lo que necesito, una imagen que le das click y se para, le vuelves a dar y se enciende, intente coger el script pero no me funciona:
Código Javascript
:
Ver original<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script>
contPlayer = '<object id="WMPlay" width="0" height="0" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="" type="application/x-oleobject" viewastext hspace="0" vspace="0" align="top"> <param name="FileName" value="http://208.115.208.18:8076"> <param name="AutoStart" value="True"> <param name="TransparentAtStart" value="false"> <param name="ShowControls" value="0"> <param name="ShowDisplay" value="false"> <param name="ShowStatusBar" value="0"> <param name="AutoSize" value="0"> <param name="AnimationAtStart" value="false"> <embed width="0" height="0" autostart="True" align="top" type="application/x-mplayer2" id="MediaPlayer" transparentatstart="false" showcontrols="0" showdisplay="false" showstatusbar="0" animationatstart="false" filename="http://208.115.208.18:8076" autosize="0"> </embed></object>';
if(ifra = window.parent.document.getElementById("topFrame")){
if(ifra.contentDocument.getElementById("player_habbid").innerHTML=="")
tocando=0;
else
tocando=1;
}else
tocando=1;
function PlayClick() {
if (tocando == 0) {
if(player_top()){
ifra = window.parent.document.getElementById("topFrame").contentDocument;
ifra.getElementById("player_habbid").innerHTML=contPlayer;
}else{
$.cookie("stop", "0", {expires: 1, path: '/'});
$("#player_no_player_interno").html(contPlayer);
}
tocando = 1;
$("#bt-play").hide();
$("#bt-stop").show();
}
}
function StopClick() {
tocando = 0;
if(player_top()){
ifra = window.parent.document.getElementById("topFrame").contentDocument;
ifra.getElementById("player_habbid").innerHTML="";
}else{
$.cookie("stop", "1", {expires: 1, path: '/'});
$("#player_no_player_interno").html("");
}
$("#bt-stop").hide();
$("#bt-play").show();
}
function player_top(){
if(ifra = window.parent.document.getElementById("topFrame")){
if(ifra.contentDocument.getElementById("player_habbid"))
return true;
else
return false;
}else
return false;
}
var ajax=1;
function atualiza_dados(id, caminho){
ajax++;
$("#"+id).html("...");
$("#"+id).load(caminho+".php?ajax="+ajax);
}
</script>
<div id="bt-play" class="playerBase"><a href="javascript:void(0)" onclick="PlayClick()" title="Play"><img class="intplay" src="http://www.habbid.com.br/images/playerint/play.png"/></a></div>
<div id="bt-stop" class="playerBase"><a href="javascript:void(0)" onclick="StopClick()" title="Stop"><img class="intstop" src="http://www.habbid.com.br/images/playerint/stop.gif"/></a></div>
<div id="player_no_player_interno" style="position:absolute;"></div>
<script>
if(!player_top()){
tocando=0;
if($.cookie("stop")!='1')
PlayClick();
$("#intexclamacao").show();
$.cookie("pagina", "/index.php", {expires: 1, path: '/'});
if($.cookie("stop")!='1')
$("#bt-stop").show();
else
$("#bt-play").show();
}else{
if(tocando==0)
$("#bt-play").show();
else
$("#bt-stop").show();
}
</script>
<script type="text/javascript" src="http://www.habbid.com.br/js/jquery.tooltip.js"></script>