Advertisement
niammuddin

player

Aug 11th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <script type="text/javascript">
  2. function script(){document.write("<script type=\"text\/javascript\" src=\"/script\"><\/script>")}
  3. script();
  4. </script>
  5.  
  6. <?php
  7. header("Content-type: application/javascript");
  8. ?>
  9. function showPlayerNew(e,t,n){var r=document.getElementById("player_"+e),p=document.getElementById("lk_"+e);if("<span><b>▢&nbsp;STOP</b></span>"===p.innerHTML)r.innerHTML="",p.innerHTML="<span><b>▶&nbsp;PLAY</b></span>";else{var a=document.getElementsByTagName("div");for(i=0;i<a.length;i++)"player_"==a[i].className&&(a[i].innerHTML="");r.innerHTML="",window.XMLHttpRequest?xmlhttp=new XMLHttpRequest:xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"),xmlhttp.open("GET","/player/player_"+n+".php?filename="+e+"&ref="+t),r.innerHTML='<center style="margin-top:15px;"><img src="/player/img/loading.gif" /></center>',xmlhttp.onreadystatechange=function(){4==xmlhttp.readyState&&200==xmlhttp.status&&(r.innerHTML=xmlhttp.responseText,p.innerHTML="<span><b>▢&nbsp;STOP</b></span>")},xmlhttp.send(null)}}function getXMLHttp(){var e;try{e=new XMLHttpRequest}catch(t){try{e=new ActiveXObject("Msxml2.XMLHTTP")}catch(t){try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return!1}}}return e}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement