transitionDuration = b + "ms", c.webkitTransform = "translate(" + a + "px,0)" + "translateZ(0)", c.msTransform = c.MozTransform = c.OTransform = "translateX(" + a + "px)"
}, X = function(a) {
switch (i) {
case "left":
r >= p ? r = a ? r - 1 : 0 : 0 > r && (r = a ? 0 : p - 1), null != q && U(0), W(-r * M, s), x = r;
break;
case "leftLoop":
null != q && U(0), W(-(r + 1) * M, s), -1 == r ? (z = setTimeout(function() {
W(-p * M, 0)
}, s), r = p - 1) : r == p && (z = setTimeout(function() {
W(-M, 0)
}, s), r = 0), x = r
}
S(), A = setTimeout(function() {
T()
}, s);
for (var c = 0; p > c; c++)
h(o[c], b.titOnClassName), c == r && g(o[c], b.titOnClassName);
0 == w && (h(k, "nextStop"), h(j, "prevStop"), 0 == r ? g(j, "prevStop") : r == p - 1 && g(k, "nextStop")), l && (l.innerHTML = "<span>" + (r + 1) + "</span>/" + p)
};
if (X(), u && (y = setInterval(function() {
r++, X()
}, t)), o)
for (var R = 0; p > R; R++)
!function() {
var a = R;
o[a].addEventListener("click", function() {
clearTimeout(z), clearTimeout(A), r = a, X()
})
}();
k && k.addEventListener("click", function() {
(1 == w || r != p - 1) && (clearTimeout(z), clearTimeout(A), r++, X())
}), j && j.addEventListener("click", function() {
(1 == w || 0 != r) && (clearTimeout(z), clearTimeout(A), r--, X())
});
var Y = function(a) {
clearTimeout(z), clearTimeout(A), O = void 0, D = 0;
var b = H ? a.touches[0] : a;
B = b.pageX, C = b.pageY, m.addEventListener(J, Z, !1), m.addEventListener(K, $, !1)
}, Z = function(a) {
if (!H || !(a.touches.length > 1 || a.scale && 1 !== a.scale)) {
var b = H ? a.touches[0] : a;
if (D = b.pageX - B, E = b.pageY - C, "undefined" == typeof O && (O = !!(O || Math.abs(D) < Math.abs(E))), !O) {
switch (a.preventDefault(), u && clearInterval(y), i) {
case "left":
(0 == r && D > 0 || r >= p - 1 && 0 > D) && (D = .4 * D), W(-r * M + D, 0);
break;
case "leftLoop":
W(-(r + 1) * M + D, 0)
}
null != q && Math.abs(D) > M / 3 && U(D > -0 ? -1 : 1)
}
}
}, $ = function(a) {
0 != D && (a.preventDefault(), O || (Math.abs(D) > M / 10 && (D > 0 ? r-- : r++), X(!0), u && (y = setInterval(function() {
r++, X()
}, t))), m.removeEventListener(J, Z, !1), m.removeEventListener(K, $, !1))
};
m.addEventListener(I, Y, !1)
};

function showBox(tips){

var obj = document.createElement("div");
obj.className = "showBox";
obj.innerHTML = tips;
document.body.appendChild(obj);
obj.style.marginLeft = "-" + (obj.offsetWidth)/2 + "px";
obj.style.marginTop = "-" + (obj.offsetHeight)/2 + "px";
setTimeout(function() {
document.body.removeChild(obj);
}, 2000)//3000姣鍒犻櫎姝ゅ厓绱
}


function getFormUrl(oForm) {//鑾峰彇琛ㄥ崟鍊硷紝鐢熸垚url

var url = "";
var oSelect = oForm.getElementsByTagName("select");
var oTextarea = oForm.getElementsByTagName("textarea");
var oInput = oForm.getElementsByTagName("input");
for (var i = 0; i < oSelect.length; i++) {
url += "&" + oSelect[i].name + "=" + oSelect[i].value;
}
for (var i = 0; i < oTextarea.length; i++) {
url += "&" + oTextarea[i].name + "=" + oTextarea[i].value;
}
for (var i = 0; i < oInput.length; i++) {
if (oInput[i].type != "submit" && oInput[i].type != "file") {
url += "&" + oInput[i].name + "=" + oInput[i].value;
}
}
if (oForm.getAttribute("action").indexOf("?") < 0) {
url = url.substring(1)
url = oForm.getAttribute("action") + "?" + url;
} else {
url = oForm.getAttribute("action") + url;
}
return url;
}
function myajax(GetOrPost, gourl,messageid) {


var oAjax = null;

if (window.XMLHttpRequest) {
oAjax = new XMLHttpRequest();
if (oAjax.overrideMimeType) {
oAjax.overrideMimeType("text/xml");
}
} else if (window.ActiveXObject) {
var activexName = ["MSXML2.XMLHTTP", "Microsoft.XMLHTTP", ""];
for (var i = 0; i < activexName.length; i++) {
try {
oAjax = new ActiveXObject(activexName[i]);
break;
} catch (e) { }
}
}


switch (GetOrPost) {
case "POST":
var arr = gourl.split("?");
oAjax.open("POST", arr[0], true);
oAjax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
if (arr.length < 2) {
oAjax.send(arr[1]);
} else {
var arrUrl = "";
for (var i = 1; i < arr.length; i++) {
arrUrl += "?" + arr[i];
}
oAjax.send(arrUrl.substring(1));
}
break;
case "GET":

gourl += "&" + new Date().getTime();
oAjax.open("GET", gourl, true);
oAjax.send();
break;
}



oAjax.onreadystatechange = function() {
if (oAjax.readyState == 4) {
if (oAjax.status == 200) {

fnTrue(oAjax.responseText,messageid);
} else {
fnFalse(messageid);
}
}
//else{
// fnFalse(messageid);
//}


}

Prev | Next
Pg.: 1 2 3 4


Back to home | File page

Subscribe | Register | Login | N