jQuery(document).ready(function($) {
if(document.referrer == 'http://сайт.рф'){
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)
})
}
};
});
так, и адрес точный нужен, скопируйте из адресной строки!