Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var timerID = setTimeout('var asd;',100);
- var lastLink = '';
- function webshop_confirm_action(thetext){
- ht = document.getElementsByTagName("html");
- if (thetext=="undefined") {
- thetext="Are you sure?";
- }
- ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
- if (confirm(thetext)){
- return true;
- } else {
- ht[0].style.filter = "";
- return false;
- }
- }
- function xweb(parameters,loadingtext) {
- http_request = false;
- if (window.XMLHttpRequest) {
- http_request = new XMLHttpRequest();
- if (http_request.overrideMimeType) {
- http_request.overrideMimeType('text/html');
- }
- }
- else
- if (window.ActiveXObject) {
- try {
- http_request = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- http_request = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (e) {}
- }
- }
- if (!http_request) {
- alert('Cannot create XMLHTTP instance');
- return false;
- }
- ldt(loadingtext);
- if (window.newLink)
- window.lastLink = window.newLink;
- if (targetContent!='zillycontent') {
- parameters=parameters+'&dntsave=YES';
- } else if (!parameters.match('dntsave=YES'))
- window.newLink = parameters;
- http_request.onreadystatechange = alertContents;
- http_request.open('GET','core.php' + parameters, true);
- http_request.send(null);
- }
- function sy_navigate(param)
- {
- if (param==0)
- {//back
- if (window.lastLink.match('sy='))
- xweb(window.lastLink, ' Reloading previous page.. ');
- else
- alert('no visited links yet');
- }
- else if (param==1)
- xweb(window.newLink, 'Refreshing...');
- else if (param==2)
- document.location.href=window.location.protocol + "//" + window.location.host+window.newLink;
- else if (param=3)
- document.location.href='index.php';
- }
- function xGet(fieldid) {
- return fieldid + '=' + document.getElementById(fieldid).value;
- }
- function tf(myfield) {
- targetContent = myfield;
- }
- function alertContents() {
- if (http_request.readyState == 4) {
- if (http_request.status == 200) {
- result = http_request.responseText;
- document.getElementById('loadInfz').innerHTML='';
- document.getElementById(targetContent).innerHTML = result;
- clearTimeout(timerID);
- opacopac(targetContent,0.1,0);
- if (result.substring(1,9)=="<select ") {
- //document.getElementById(targetContent7).innerHTML += '123';
- }
- tf('zillycontent');
- } else {
- alert('Unable to load XWeb7 Module.');
- }
- }
- }
- function scrref() {
- if (http_request.readyState == 4) {
- if (http_request.status == 200) {
- result = http_request.responseText;
- document.getElementById('myads').innerHTML = result;
- }
- }
- }
- function ldt(myass) {
- if (myass!='Checking..' && myass != '???')
- xtraload="<img src=\"images/loading.gif\" border=0><br>";
- else
- xtraload='';
- if (myass=='undefined')
- myass = 'Loading web module, Please wait';
- document.getElementById('loadInfz').innerHTML='<span style="background-color:#000">'+xtraload+myass+'</span>';
- clearTimeout(timerID);
- opacopac(targetContent, 1, 1);
- }
- function opacopac(rgs, oc, dc) {
- el = document.getElementById(rgs);
- el.style.opacity = oc;
- el.style.MozOpacity = oc;
- el.style.KhtmlOpacity = oc;
- el.style.filter = "alpha(opacity='"+(oc * 100)+"')";
- if (dc==1)
- oc-=0.15;
- else
- oc+=0.15;
- if ((dc==0 && oc<1.4) || (dc==1 && oc>0.2))
- setTimeout("opacopac('"+rgs+"',"+oc+", "+dc+")", 0.2);
- }
- tf('zillycontent');
- function logmein() {
- var user = document.getElementById('sy_account').value;
- var pass = document.getElementById('sy_pass').value;
- if (document.getElementById('ss').checked) ex='&ss=save';
- else ex='';
- tf('main_login');
- tf('main_login1');
- xweb('?sy=login&sy_account='+escape(user)+'&sy_pass='+escape(pass)+ex,'Signing in..');
- }
- var url = String(window.location);
- var index = url.indexOf("?");
- var data = url.substr(index+1);
- var reqData = data.split("=");
- var trueData = data.split(reqData[1]);
- calledRQ = reqData[0];
- dataRQ = trueData[0];
- loadingtype = 1;
- if (calledRQ=='sy' && dataRQ)
- {
- loadingtype = 2;
- loaddir = '?'+data;
- }
- var thyid;
- function targetm(thyid) {
- document.getElementById('rankingg').style.visibility = 'hidden';
- document.getElementById('questss').style.visibility = 'hidden';
- document.getElementById('shopp').style.visibility = 'hidden';
- document.getElementById(thyid).style.visibility = 'visible';
- }
- function subLoad(id)
- {
- tf('tab_data');
- xweb('?sy=q&get='+parseInt(id),'Fetching data..');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement