2969
Kallist писал(а):
2) Лазутчик. "Верх коварства": вы получаете исходный код игры и продаёте его конкурентам, припеваючи уходя с деньгами в вечную тень.
кажется вы попутали и дали эту абилку демонам... постоянно вместо локации вижу это:
function setCookie (name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
function getCookie(name) {
var cookie = " " + document.cookie;
var search = " " + name + "=";
var setStr = null;
var offset = 0;
var end = 0;
if (cookie.length > 0) {
offset = cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = cookie.indexOf(";", offset)
if (end == -1) {
end = cookie.length;
}
setStr = unescape(cookie.substring(offset, end));
}
}
return(setStr);
}
function procChat()
{
try{
if (document.getElementById("setchat").innerHTML=="Скрыть чат") {self.top.document.getElementById("gameframe").rows="67, 45, *, 0"; parent.top.frames["minichat"].location="about:blank"; document.getElementById("setchat").innerHTML="Показать чат"; setCookie("hidechat", 1, "Mon, 01-Jan-2047 00:00:00 GMT");}
else {self.top.document.getElementById("gameframe").rows="67, 45, *, 155"; parent.top.frames["minichat"].location="minichat.php"; document.getElementById("setchat").innerHTML="Скрыть чат"; setCookie("hidechat", 0, "Mon, 01-Jan-2047 00:00:00 GMT");}
}
catch(e) {}
}
window.onload = function()
{
try
{
if (getCookie("hidechat") == null) if (screen.height<=768) {self.top.document.getElementById("gameframe").rows="67, 45, *, 0"; parent.top.frames["minichat"].location="about:blank"; parent.top.frames["statusbar"].document.getElementById("setchat").innerHTML="Показать чат"; setCookie("hidechat", 1, "Mon, 01-Jan-2047 00:00:00 GMT"); return;}
if ((getCookie("hidechat")==0) || ((getCookie("hidechat")) == null))
{var loc = "" + parent.top.frames["minichat"].location; if (loc.indexOf("minichat")==-1) {self.top.document.getElementById("gameframe").rows="67, 45, *, 155"; parent.top.frames["minichat"].location="minichat.php"; document.getElementById("setchat").innerHTML="Скрыть чат"; setCookie("hidechat", 0, "Mon, 01-Jan-2047 00:00:00 GMT");}}
else {var loc = "" + parent.top.frames["minichat"].location; if (loc.indexOf("blank")==-1) {self.top.document.getElementById("gameframe").rows="67, 45, *, 0"; parent.top.frames["minichat"].location="about:blank"; document.getElementById("setchat").innerHTML="Показать чат"; setCookie("hidechat", 1, "Mon, 01-Jan-2047 00:00:00 GMT");}}
}
catch(e)
{}
}
как с ним бороться?