Приветствую вас!
Dilettante_Pro,
Прошу прощения, не совсем понял вопрос.
j0hnik,
получается так?
if(document.referrer == 'http://сайт.рф'){
jQuery(document).ready(function($) {
if (typeof $.cookie('open_login') === 'undefined') {
var date = new Date();
var period = 3;
date.setTime(date.getTime() + period * 24 * 60 * 60 * 1000);
$.cookie('open_login', 'yes', {
expires: date,
path: '/'
});
var delay = 30;
var timeoutId = setTimeout(function() {
$('.open_login').trigger('click');
}, delay * 1000);
$('.open_login').one('click', function() {
clearTimeout(timeoutId)
})
}
});
};
ок, попробую, отпишусь обязательно.