');
//-->
function addOTN() {
var otnValue = getUrlParameter('otn');
if (otnValue == 1){
$.ajax({
type: "post",
url: "/Tor/cfc/popular_addone.cfc",
dataType: 'json',
data: { method: "AddOneSwitchLayout",
fromNewToOldCounter: "0",
fromOldToNewCounter: "1"
}
});
}
}
function addNTO() {
var ntoValue = getUrlParameter('nto');
if (ntoValue == 1){
$.ajax({
type: "post",
url: "/Tor/cfc/popular_addone.cfc",
dataType: 'json',
data: { method: "AddOneSwitchLayout",
fromNewToOldCounter: "1",
fromOldToNewCounter: "0"
}
});
}
}
function getUrlParameter(sParam)
{
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++)
{
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam)
{
return sParameterName[1];
}
}
}
addNTO();
|
|
|
|
|
|
廣告 advertisement |
|
|
|
|
|
|
廣告 advertisement |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|