Script - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of Script.php

  1. <script language="javascript">
  2. var exitsplashmessage = '10000';
  3. var exitsplashpage = ";
  4. function addLoadEvent(function) { var oldonload = window.onload; if (typeof window.onload !=
  5. function') { window.onload = func; ) else { window.onload = function() {if (oldonload) { oldonload(); }
  6. Function); )
  7. function addClickEvent(a,i,function) { if (typeof alil.onclick != 'function') { a[i).onclick = func; )}
  8. var theDiv = div id="ExitSplashDiv" style="display:block; width:100%; height:100%;
  9. position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center";
  10. theDiv = theDiv + 'ciframe src="+exitsplashpage+" width="100%" height="100%" align="middle"
  11. frameborder="0"</iframe>';
  12. theDiv theDiv +'</div>';
  13. theBody = document.body; if (theBody) (theBody = document.getElementByld("body"); if (theBody)
  14. (theBody = document.getElementsByTagName("body")[0];}}
  15. var PreventExitSplash = false;
  16. function DisplayExitSplash0{ if(PreventExitSplash == false){(window.scrollTo(0,0);
  17. PreventExitSplash=true; divtag = document.createElement("div");
  18. divtag.setAttribute("id","ExitSplashMainOuterLayer")
  19. divtag.style.position="absolute"; divtag.style.width="100%"; divtag.style.height="100%"; divtag.st
  20. yle.zindex="99"; divtag.style.left="0px"; divtag.style.top="0px"; divtag.innerHTML=theDiv; theBody.i
  21. nnerHTML="; theBody.topMargin="Opx"; theBody.rightMargin="0px"; theBody.bottomMargin="Opx";
  22. theBody
  23. leftMargin="0px"; theBody.style.overflow="hidden"; theBody.appendChild(divtag); return
  24. exitsplashme
  25. ssage; ))
  26. var a = document.getElementsBy TagName(A'); for (var i = 0; i< a.length; i++) { if(a[i].target !==
  27. _blank') {addClickEvent(a,i, function(0{ PreventExitSplash=true; });} else(addClickEvent(a,i, funct
  28. ion0{PreventExitSplash=false;));})disablelinksfunc = function0{var a =
  29. document.getElementsByTagN
  30. ame(A'); for (var i = 0; i  a.length; i++) {if(ali).target !== '_blank') {addClickEvent(a,i, func
  31. function0( PreventExitSplash=true; });) else{addClickEvent(a,i, function({ PreventExitSplash=false;});
  32. addLoadEvent(disablelinksfunction);
  33. disableformsfunc = function(0{ var f = document.getElementsByTagName(FORM'); for (var
  34. =0;i<f.length;i++){ if (!f[i].onclick){ fli).onclick=function(0{ PreventExitSplash=true; ) )else if (!
  35. 1).onsubmit){ fli).onsubmit=function0{ PreventExitSplash=true; )))
  36. free-litecoin.com(10000);
  37. window.onbeforeunload = DisplayExitSplash;
  38. </script>
File Description
  • Script
  • PHP Code
  • 05 Apr-2021
  • 2.32 Kb
You can Share it: