omidtt
11-09-2015, 03:30 PM
سلام خسته نباشید دوستان خوبید؟
من این کد و دارم اما برای هر کاربر تند تند و چندبار باز میشه...میخوام هر 12 ساعت 1 بار باز بشه ؟؟ میشه ؟
بعدش یسری علامت سوال اومده بالای کد اون مشکل و میشه رفع کرد ؟ :(:(:confused:
function showme(ip) {
window.onLoad = TINY.box.show({
html: '<div style="color: green;font-size: 19px;font-weight: bold;line-height: 36px;text-align: justify;">' +
'<span style="color:blue">?????? ????? ????? </span><br>' +
' ????? ?????? ??? ?? ?? ????? ?? ?????? ??????? ?? ?? ?? ??? ???? ?? ?? ?? ' + '<span style="color:red">' +ip+
'</span>' +
'??? ' +
'<span style="color:red">??????? ???? ????? ? ???? ?????</span> ' +
'???? ??? ?????.' +
'<br><a style="background-color: red;border: 1px outset red;color: white;display: block;font-size: 18px;margin: 10px auto;padding-left: 10px;padding-right: 10px;width: 275px;" target="_blank" href="Only the registered members can see the link">?????? ??????? ???? ?????</a>' +
'</div>',
boxid: 'frameless',
width: 500,
height: 250,
fixed: true,
maskid: 'bluemask',
maskopacity: 40,
closejs: function() { closeJS(); }
});
}
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 1 * 60 * 60 * 1000)); //1 hour
var expires = "expires=" + d.toGMTString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i].trim();
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return "";
}
function checkCookie() {
var firstCookie = getCookie("persian");
if (firstCookie != "") {
} else {
if (window.open('Only the registered members can see the link', '_blank', 'toolbar=1,scrollbars=1,location=1,statusbar=1,men ubar=1,resizable=1')) {
setCookie("persian", "ok", 1);
}
}
}
document.onclick = checkCookie;
if ((window.XMLOnly the registered members can see the link == undefined) && (ActiveXObject != undefined)) window.onload = checkCookie;
من این کد و دارم اما برای هر کاربر تند تند و چندبار باز میشه...میخوام هر 12 ساعت 1 بار باز بشه ؟؟ میشه ؟
بعدش یسری علامت سوال اومده بالای کد اون مشکل و میشه رفع کرد ؟ :(:(:confused:
function showme(ip) {
window.onLoad = TINY.box.show({
html: '<div style="color: green;font-size: 19px;font-weight: bold;line-height: 36px;text-align: justify;">' +
'<span style="color:blue">?????? ????? ????? </span><br>' +
' ????? ?????? ??? ?? ?? ????? ?? ?????? ??????? ?? ?? ?? ??? ???? ?? ?? ?? ' + '<span style="color:red">' +ip+
'</span>' +
'??? ' +
'<span style="color:red">??????? ???? ????? ? ???? ?????</span> ' +
'???? ??? ?????.' +
'<br><a style="background-color: red;border: 1px outset red;color: white;display: block;font-size: 18px;margin: 10px auto;padding-left: 10px;padding-right: 10px;width: 275px;" target="_blank" href="Only the registered members can see the link">?????? ??????? ???? ?????</a>' +
'</div>',
boxid: 'frameless',
width: 500,
height: 250,
fixed: true,
maskid: 'bluemask',
maskopacity: 40,
closejs: function() { closeJS(); }
});
}
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 1 * 60 * 60 * 1000)); //1 hour
var expires = "expires=" + d.toGMTString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i].trim();
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return "";
}
function checkCookie() {
var firstCookie = getCookie("persian");
if (firstCookie != "") {
} else {
if (window.open('Only the registered members can see the link', '_blank', 'toolbar=1,scrollbars=1,location=1,statusbar=1,men ubar=1,resizable=1')) {
setCookie("persian", "ok", 1);
}
}
}
document.onclick = checkCookie;
if ((window.XMLOnly the registered members can see the link == undefined) && (ActiveXObject != undefined)) window.onload = checkCookie;