Показать сообщение отдельно
Старый 11.08.2010, 03:09
forward вне форума Посмотреть профиль Отправить личное сообщение для forward Посетить домашнюю страницу forward Найти все сообщения от forward
  № 1  
Ответить с цитированием
forward
 
Аватар для forward

Регистрация: Jul 2007
Адрес: Украина Днепропетровск
Сообщений: 312
Записей в блоге: 1
По умолчанию Pop up открывается один раз?

Доброго времени суток!

Подскажите как сделать чтобы окно открывалось один раз а не всякий раз при нажатии?

Пользуюсь вот таким кодом:
Код:
<script>
function show_pop()
{var fea_wnd = "scrollbars=1,resizable=1,toolbar=1,location=0,men ubar=1,status=1,directories=0";
var need_open = true;
if (document.onclick_copy != null) document.onclick_copy();

if (document.body.onbeforeunload_copy != null) document.body.onbeforeunload_copy();

under=window.open(pop1, "", fea_wnd);
under.blur();
window.focus();
}

function pop_init()
{var ver = parseFloat(navigator.appVersion);
var ver2 = (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 )&&(navigator.userAgent.indexOf('Opera') == -1)&&(navigator.appName != 'Netscape') &&(navigator.userAgent.indexOf('MSIE') > -1) &&(navigator.userAgent.indexOf('SV1') > -1) &&(ver >= 4);

document.onclick_copy = document.onclick;document.onmouseup = show_pop;

}

pop_init(); 
</script>

<script>var pop1 = 'http://mail.ru';</script>
__________________
Миксер впечатлений...
Самое интересное что я на творил!