Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. var timerID = setTimeout('var asd;',100);
  2. var lastLink = '';
  3. function webshop_confirm_action(thetext){
  4. ht = document.getElementsByTagName("html");
  5. if (thetext=="undefined") {
  6. thetext="Are you sure?";
  7. }
  8. ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
  9. if (confirm(thetext)){
  10. return true;
  11. } else {
  12. ht[0].style.filter = "";
  13. return false;
  14. }
  15. }
  16. function xweb(parameters,loadingtext) {
  17. http_request = false;
  18. if (window.XMLHttpRequest) {
  19. http_request = new XMLHttpRequest();
  20. if (http_request.overrideMimeType) {
  21. http_request.overrideMimeType('text/html');
  22. }
  23. }
  24. else
  25. if (window.ActiveXObject) {
  26. try {
  27. http_request = new ActiveXObject("Msxml2.XMLHTTP");
  28. } catch (e) {
  29. try {
  30. http_request = new ActiveXObject("Microsoft.XMLHTTP");
  31. } catch (e) {}
  32. }
  33. }
  34. if (!http_request) {
  35. alert('Cannot create XMLHTTP instance');
  36. return false;
  37. }
  38. ldt(loadingtext);
  39. if (window.newLink)
  40. window.lastLink = window.newLink;
  41. if (targetContent!='zillycontent') {
  42. parameters=parameters+'&dntsave=YES';
  43. } else if (!parameters.match('dntsave=YES'))
  44. window.newLink = parameters;
  45. http_request.onreadystatechange = alertContents;
  46. http_request.open('GET','core.php' + parameters, true);
  47. http_request.send(null);
  48. }
  49. function sy_navigate(param)
  50. {
  51.  
  52. if (param==0)
  53. {//back
  54.  
  55. if (window.lastLink.match('sy='))
  56. xweb(window.lastLink, ' Reloading previous page.. ');
  57. else
  58. alert('no visited links yet');
  59. }
  60. else if (param==1)
  61. xweb(window.newLink, 'Refreshing...');
  62. else if (param==2)
  63. document.location.href=window.location.protocol + "//" + window.location.host+window.newLink;
  64. else if (param=3)
  65. document.location.href='index.php';
  66. }
  67. function xGet(fieldid) {
  68. return fieldid + '=' + document.getElementById(fieldid).value;
  69. }
  70. function tf(myfield) {
  71. targetContent = myfield;
  72. }
  73. function alertContents() {
  74. if (http_request.readyState == 4) {
  75. if (http_request.status == 200) {
  76. result = http_request.responseText;
  77. document.getElementById('loadInfz').innerHTML='';
  78. document.getElementById(targetContent).innerHTML = result;
  79. clearTimeout(timerID);
  80. opacopac(targetContent,0.1,0);
  81. if (result.substring(1,9)=="<select ") {
  82. //document.getElementById(targetContent7).innerHTML += '123';
  83. }
  84. tf('zillycontent');
  85. } else {
  86. alert('Unable to load XWeb7 Module.');
  87. }
  88. }
  89. }
  90. function scrref() {
  91. if (http_request.readyState == 4) {
  92. if (http_request.status == 200) {
  93. result = http_request.responseText;
  94. document.getElementById('myads').innerHTML = result;
  95. }
  96. }
  97. }
  98. function ldt(myass) {
  99. if (myass!='Checking..' && myass != '???')
  100. xtraload="<img src=\"images/loading.gif\" border=0><br>";
  101. else
  102. xtraload='';
  103. if (myass=='undefined')
  104. myass = 'Loading web module, Please wait';
  105.  
  106. document.getElementById('loadInfz').innerHTML='<span style="background-color:#000">'+xtraload+myass+'</span>';
  107.  
  108. clearTimeout(timerID);
  109. opacopac(targetContent, 1, 1);
  110. }
  111. function opacopac(rgs, oc, dc) {
  112. el = document.getElementById(rgs);
  113. el.style.opacity = oc;
  114. el.style.MozOpacity = oc;
  115. el.style.KhtmlOpacity = oc;
  116. el.style.filter = "alpha(opacity='"+(oc * 100)+"')";
  117. if (dc==1)
  118. oc-=0.15;
  119. else
  120. oc+=0.15;
  121.  
  122. if ((dc==0 && oc<1.4) || (dc==1 && oc>0.2))
  123. setTimeout("opacopac('"+rgs+"',"+oc+", "+dc+")", 0.2);
  124. }
  125. tf('zillycontent');
  126. function logmein() {
  127. var user = document.getElementById('sy_account').value;
  128. var pass = document.getElementById('sy_pass').value;
  129. if (document.getElementById('ss').checked) ex='&ss=save';
  130. else ex='';
  131. tf('main_login');
  132. tf('main_login1');
  133. xweb('?sy=login&sy_account='+escape(user)+'&sy_pass='+escape(pass)+ex,'Signing in..');
  134. }
  135.  
  136. var url = String(window.location);
  137. var index = url.indexOf("?");
  138. var data = url.substr(index+1);
  139. var reqData = data.split("=");
  140. var trueData = data.split(reqData[1]);
  141. calledRQ = reqData[0];
  142. dataRQ = trueData[0];
  143. loadingtype = 1;
  144. if (calledRQ=='sy' && dataRQ)
  145. {
  146. loadingtype = 2;
  147. loaddir = '?'+data;
  148. }
  149. var thyid;
  150. function targetm(thyid) {
  151. document.getElementById('rankingg').style.visibility = 'hidden';
  152. document.getElementById('questss').style.visibility = 'hidden';
  153. document.getElementById('shopp').style.visibility = 'hidden';
  154. document.getElementById(thyid).style.visibility = 'visible';
  155. }
  156.  
  157. function subLoad(id)
  158. {
  159.  
  160. tf('tab_data');
  161. xweb('?sy=q&get='+parseInt(id),'Fetching data..');
  162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement