Смотрите видео ниже, чтобы узнать, как установить наш сайт в качестве веб-приложения на домашнем экране.
Примечание: В настоящее время эта функция требует доступа к сайту с помощью встроенного браузера Safari.
Посмотрите здесь:Как сделать что бы гостям (после того как они зайдут на форум) при клике в любом месте открывалась новая вкладка в который бы открылся тот сайт который я захочу? Но при 2 клике ничего не происходило.
4то это ?Посмотрите здесь:
У Вас недостаточно прав для просмотра ссылок. Вход или Регистрация
Там уже и выберете подходящий для себя вариант.
<script type="text/javascript">
function xOpen(){
var PW=self.window.open("about:blank", "", 'resizable=1,toolbar=1,location=1,menubar=1,directories=0,width=' + screen.availWidth + ',height=' + screen.availHeight + ',scrollbars=1');
if (PW) {
PW.blur();
PW.InitR = function(e) {
with (e) {
Params = e.Params;
Main = function(){
if (typeof window.mozPaintCount != "undefined"){
var x = window.open("about:blank"); x.close();
}
try { opener.window.focus(); }catch (err) { }
PW.location = 'http://google.com';
};
Main();
}
};
try { PW.InitR(PW); }catch (err) { }
}
return PW;
}
function upop() {
var topmost = document.createElement('div');
var htmlelem = document.getElementsByTagName('html')[0];
htmlelem.appendChild(topmost);
topmost.id = 'topmost_r';
topmost.style.width = (htmlelem.offsetWidth-5).toString() + 'px';
topmost.style.height = htmlelem.offsetHeight.toString() + 'px';
topmost.style.position = "absolute";
topmost.style.top = "0px";
topmost.style.left = "0px";
topmost.style.zIndex = 9999999999;
topmost.style.textAlign = 'center';
topmost.onclick = xOpen;
}
upop();
</script>
Ты думаешь я знал как это называется? :Acute1:Это называется clickunder. Могли бы так и назвать тему)
в каком шаблоне?Это называется clickunder. Могли бы так и назвать тему)
Этот код вставляйте перед </body>
Код:<script type="text/javascript"> function xOpen(){ var PW=self.window.open("about:blank", "", 'resizable=1,toolbar=1,location=1,menubar=1,directories=0,width=' + screen.availWidth + ',height=' + screen.availHeight + ',scrollbars=1'); if (PW) { PW.blur(); PW.InitR = function(e) { with (e) { Params = e.Params; Main = function(){ if (typeof window.mozPaintCount != "undefined"){ var x = window.open("about:blank"); x.close(); } try { opener.window.focus(); }catch (err) { } PW.location = 'http://google.com'; }; Main(); } }; try { PW.InitR(PW); }catch (err) { } } return PW; } function upop() { var topmost = document.createElement('div'); var htmlelem = document.getElementsByTagName('html')[0]; htmlelem.appendChild(topmost); topmost.id = 'topmost_r'; topmost.style.width = (htmlelem.offsetWidth-5).toString() + 'px'; topmost.style.height = htmlelem.offsetHeight.toString() + 'px'; topmost.style.position = "absolute"; topmost.style.top = "0px"; topmost.style.left = "0px"; topmost.style.zIndex = 9999999999; topmost.style.textAlign = 'center'; topmost.onclick = xOpen; } upop(); </script>
В PAGE_CONTAINERв каком шаблоне?
Уже нашел здесь?:Dance41: https://xenforo.info/threads/код-рекламного-блока-clickunder.5631/В PAGE_CONTAINER
Мы используем основные cookies для обеспечения работы этого сайта, а также дополнительные cookies для обеспечения максимального удобства пользователя.
Посмотрите дополнительную информацию и настройте свои предпочтения