кликанье по ссылкам

Обсуждение работы системы JetSwap. Общий форум для всех вопросов, для которых не создано отдельных форумов.
yamt1331
Сообщения: 25
Зарегистрирован: 30 май 2009, 09:15

Re: кликанье по ссылкам

Непрочитанное сообщение yamt1331 »

К Сапорту :
есть хитрый код:

<script type='text/javascript' src='http://***pro.net/check.php?user_id=0000&mode=teaser&domain=ссс.com&block_id=185&count=8'></script>
<script type='text/javascript' language='javascript'>
var TE_configs_385 = {'ref_id' : '000024','width' : '100','bg_color' : '#f2f2f2','border_color' : '#000000','ref_link' : '1','block_bg' : '#f2f2f2','block_border_color' : '#f2f2f2','font_size_color' : '#0000cc','font_hover_size_color' : '#db0000','num_x' : '8','num_y' : '1','width_type' : '%','border' : '1','border_type' : 'solid','block_border' : '2','block_border_type' : 'solid','img_direct' : '0','img_size' : '80','font_size' : '10','font_size_type' : 'px','font_hover_size' : '12','font_hover_size_type' : 'px','teaser':'true'};
document.write('<div id="teaser_block_385"></div>');
generate_teaser_block_123('teaser_block_385', TE_configs_385, TE_teaser_385);</script>

При просмотре в веб редакторе выдает ошибку на строке TE_teaser_385. работает только после погрузки на сайт :shock: .в PRtest блоки ВООБЩЕ не показываются !!!. в ифраме не загружает. команда поиск по check.php и любому другому не срабатывает ! в чем тут фишка ???

Аватара пользователя
Support
Служба поддержки
Сообщения: 4511
Зарегистрирован: 08 фев 2009, 19:24
Откуда: JetSwap
Контактная информация:

Re: кликанье по ссылкам

Непрочитанное сообщение Support »

Тут не раскрыто содержимое функции generate_teaser_block_123
Видимо оно подгружается в http://***pro.net/check.php?user_id=0000&mode=teaser&domain=ссс.com&block_id=185&count=8
P.S. Если функция большая и запутанная, это не ко мне :D
С уважением, Служба поддержки.
http://www.jetswap.com

uyv2000
Сообщения: 26
Зарегистрирован: 26 апр 2009, 18:06

Re: кликанье по ссылкам

Непрочитанное сообщение uyv2000 »

Support писал(а):Постараемся на следующей неделе.
Это будет один из самых знаменательных дней. Если это случится, огласите, пожалуйста, на главной. Будет еще шикарней, если с небольшим примером-хелпом.

yamt1331
Сообщения: 25
Зарегистрирован: 30 май 2009, 09:15

Re: кликанье по ссылкам

Непрочитанное сообщение yamt1331 »

Support писал(а):Тут не раскрыто содержимое функции generate_teaser_block_123
Видимо оно подгружается в http://***pro.net/check.php?user_id=0000&mode=teaser&domain=ссс.com&block_id=185&count=8
P.S. Если функция большая и запутанная, это не ко мне :D
А функция следующая :
if (typeof(jQuery) == 'undefined') {
document.write("<script language='javascript' src='http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js' type='text/javascript'></script>");
};
document.write('<script language="JavaScript" charset="utf-8" src="http://***rtpro.net/teaser.js"></script>');
document.write('<script language="JavaScript" src="http://***rtpro.net/get.php?user_id=124&mode=teaser&domain=&block_id=185&count=8"></script>');


дальше еще страшнее:
функция teaser.js

var animate_teaser_block_rand_time_123 = 20000;
var animate_teaser_block_rand_type_123 = 'rand1';
var animate_teaser_block_rand_stop_123 = true;
function animate_teaser_block_123(container_id, configs, stype, ateaser) {
if (stype == 'rand' && animate_teaser_block_rand_stop_123) {
if (animate_teaser_block_rand_type_123 == 'rand1') {
animate_teaser_block_rand_type_123 = 'rand2';
} else if (animate_teaser_block_rand_type_123 == 'rand2') {
animate_teaser_block_rand_type_123 = 'rand3';
} else {
animate_teaser_block_rand_type_123 = 'rand1';
}
}
if (animate_teaser_block_rand_type_123 == 'rand1' && stype == 'rand' && animate_teaser_block_rand_stop_123) {
num_teaser = $("div#teb_img_"+container_id+" img").size() - 1;
get_teaser = Math.round(Math.random() * num_teaser);
pers_tease = parseInt(configs['img_size'])/100*20;
$("#teb_img_src_"+container_id+"_"+get_teaser).animate( { width: (parseInt(configs['img_size'])+pers_tease)+'px', height: (parseInt(configs['img_size'])+pers_tease)+'px'}, { queue:true, duration:300 } )
.animate( { width: configs['img_size']+'px', height: configs['img_size']+'px'}, { queue:true, duration:300 } );

$("#teb_img_src_"+container_id+"_"+get_teaser).animate( { width: (parseInt(configs['img_size'])+pers_tease)+'px', height: (parseInt(configs['img_size'])+pers_tease)+'px'}, { queue:true, duration:300 } )
.animate( { width: configs['img_size']+'px', height: configs['img_size']+'px'}, { queue:true, duration:300 } );
setTimeout(function() {
animate_teaser_block_123(container_id, configs, stype, ateaser);
}, animate_teaser_block_rand_time_123);
}

if (animate_teaser_block_rand_type_123 == 'rand2' && stype == 'rand' && animate_teaser_block_rand_stop_123) {
min_fade = 700;
$("div#teb_img_"+container_id+" img").each(function(){
min_fade = min_fade + 700;
$("#"+this.id).fadeOut(min_fade);
});
$("div#teb_img_"+container_id+" img").each(function(){
min_fade = min_fade - 700;
$("#"+this.id).fadeIn(min_fade);
});
setTimeout(function() {
animate_teaser_block_123(container_id, configs, stype, ateaser);
}, animate_teaser_block_rand_time_123+5000);
}

if (animate_teaser_block_rand_type_123 == 'rand3' && stype == 'rand' && animate_teaser_block_rand_stop_123) {
generate_teaser_block_123(container_id, configs, ateaser);
}

if (stype == 'over') {
pers_tease = parseInt(configs['img_size'])/100*20;
$("div#teb_img_"+container_id+" img").each(function(){
$("#"+this.id).bind("mouseenter",function(){
animate_teaser_block_rand_stop_123 = false;
$("#"+this.id).animate( { width: (parseInt(configs['img_size'])+pers_tease)+'px', height: (parseInt(configs['img_size'])+pers_tease)+'px'}, { queue:true, duration:300 } );

}).bind("mouseleave",function(){
animate_teaser_block_rand_stop_123 = true;
$("#"+this.id).animate( { width: configs['img_size']+'px', height: configs['img_size']+'px'}, { queue:true, duration:300 } );

});
});

}
}

function generate_teaser_block_123(container_id, configs, teasers) {
var html_code = '<div id="tet_dm_'+container_id+'">';
var html_teaser = new Array();
/* б�аНаАб�аАаЛаА б�аОаБаИб�аАаЕаМ б�аИаЗаЕб�б� */
for (var id in teasers) {
if (configs['img_direct'] == 0) {
html_teaser[id] = '<div id="teb_img_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank"><img id="teb_img_src_'+container_id+'_'+id+'" src="'+teasers[id]['img']+'" title="'+teasers[id]['desc']+'" alt="'+teasers[id]['title']+'"/></a></div>'+
'<div id="teb_tit_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank">'+teasers[id]['title']+'</a></div>';
} else if (configs['img_direct'] == 1) {
html_teaser[id] = '<div id="teb_tit_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank">'+teasers[id]['title']+'</a></div>'+
'<div id="teb_img_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank"><img id="teb_img_src_'+container_id+'_'+id+'" src="'+teasers[id]['img']+'" title="'+teasers[id]['desc']+'" alt="'+teasers[id]['title']+'"/></a></div>';
} else if (configs['img_direct'] == 2) {
html_teaser[id] = '<table border=0 cellspasing="0" cellpadding="0"><tr><td>'+
'<div id="teb_img_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank"><img id="teb_img_src_'+container_id+'_'+id+'" src="'+teasers[id]['img']+'" title="'+teasers[id]['desc']+'" alt="'+teasers[id]['title']+'"/></a></div>'+
'</td><td>'+
'<div id="teb_tit_'+container_id+'"><a href="'+teasers[id]['link']+'" title="'+teasers[id]['desc']+'" target="_blank">'+teasers[id]['title']+'</a></div>'+
'</td></tr></table>';
} else if (configs['img_direct'] == 3) {
html_teaser[id] = '<table border=0 cellspasing="0" cellpadding="0"><tr><td>'+
'<div id="teb_tit_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank">'+teasers[id]['title']+'</a></div>'+
'</td><td>'+
'<div id="teb_img_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank"><img id="teb_img_src_'+container_id+'_'+id+'" src="'+teasers[id]['img']+'" title="'+teasers[id]['desc']+'" alt="'+teasers[id]['title']+'"/></a></div>'+
'</td></tr></table>';
} else if (configs['img_direct'] == 4) {
html_teaser[id] = '<table border=0 cellspasing="0" cellpadding="0"><tr><td>'+
'<div id="teb_tit_'+container_id+'"></div>'+
'</td><td>'+
'<div id="teb_img_'+container_id+'"><a href="http://'+location.host+'" onmouseover="this.href=\''+teasers[id]['link']+'\'" title="'+teasers[id]['desc']+'" target="_blank"><img id="teb_img_src_'+container_id+'_'+id+'" src="'+teasers[id]['img']+'" title="'+teasers[id]['desc']+'" alt="'+teasers[id]['title']+'"/></a></div>'+
'</td></tr></table>';
}
}

/* б�аОб�аМаИб�б�аЕаМ б�аАаБаЛаИб�б� б�аАаЗаМаЕб�аЕаНаИб� */
html_code = html_code +'<table border=0 cellspasing="0" cellpadding="0" id="tet_'+container_id+'">';

if (jQuery.tid) {
//console.log(teasers.length);
//console.log(jQuery.tid);
var nextCount = teasers.length - jQuery.tid;
var nextCount2 = teasers.length-(jQuery.tid + configs['num_y']*configs['num_x']);
if (nextCount == 0) {
jQuery.tid = 0;
} else if (nextCount2 < 0) {
jQuery.tid = jQuery.tid+nextCount2;
}
} else {
jQuery.tid = 0;
}
for (y=0; y<configs['num_y']; y++) {
html_code = html_code + '<tr>';
for (i=0; i<configs['num_x']; i++) {
if (html_teaser[jQuery.tid]) {
html_code = html_code + '<td id="teb_'+container_id+'" valign="top" align="center">'+html_teaser[jQuery.tid]+'</td>';
jQuery.tid++;
} else {
html_code = html_code + '<td>&nbsp;</td>';
}
}
html_code = html_code + '</tr>';
}
ref_link = '';
if (configs['ref_link'] == 1) {
ref_link = '<div id="tet_ref_'+container_id+'"><a href="http://advertpro.net/to/'+configs['ref_id']+'" target="_blank">а аЕаКаЛаАаМаА аНаА б�аАаЙб�аЕ</a></div>';
}
html_code = html_code +'</table>'+ref_link+'</div>';


/* б�аОб�аМаИб�б�аЕаМ css */
html_code = html_code +
'<style>'+
' table#tet_'+container_id+' {'+
'width: '+configs['width']+''+configs['width_type']+';'+
'background-color: '+configs['bg_color']+';'+
'border: '+configs['border']+'px '+configs['border_type']+' '+configs['border_color']+';'+
"}\n"+
' div#tet_dm_'+container_id+' {'+
'width: '+configs['width']+''+configs['width_type']+';'+
"}\n"+
' td#teb_'+container_id+' {'+
'width: '+(configs['width']/configs['num_x'])+''+configs['width_type']+';'+
'background-color: '+configs['block_bg']+';'+
'vertical-align: top;'+
(configs['ref_link'] == 1 ? 'padding-bottom:13px;' : '')+
'border: '+configs['block_border']+'px '+configs['block_border_type']+' '+configs['block_border_color']+';'+
"}\n"+
' div#teb_img_'+container_id+' {'+
'position: relative;'+
'width: '+configs['img_size']+'px;'+
'height: '+configs['img_size']+'px;'+
"}\n"+
' div#teb_img_'+container_id+' img {'+
'width: '+configs['img_size']+'px;'+
'height: '+configs['img_size']+'px;'+
'border:0px'+
"}\n"+
' div#teb_tit_'+container_id+' a {'+
'font-size: '+configs['font_size']+''+configs['font_size_type']+';'+
'color: '+configs['font_size_color']+';'+
"}\n"+
' div#teb_tit_'+container_id+' a:hover {'+
'font-size: '+configs['font_hover_size']+''+configs['font_hover_size_type']+';'+
'color: '+configs['font_hover_size_color']+';'+
"}\n"+
' div#tet_ref_'+container_id+' {'+
'position: relative;'+
'float: right;'+
'padding: 2px 4px;'+
'margin-top: -18px;'+
"}\n"+
' div#tet_ref_'+container_id+' a {'+
'font-size: 9px;'+
'text-decoration: none;'+
'color: '+configs['font_size_color']+';'+
"}\n"+
' div#tet_ref_'+container_id+' a:hover {'+
'font-size: 9px;'+
'text-decoration: none;'+
'color: '+configs['font_hover_size_color']+';'+
"}\n"+
'</style>';
$(function() {
$('#'+container_id).html(html_code);
if ((typeof(TEASER_TEST_RUN) == "undefined")) {
setTimeout(function() {
animate_teaser_block_123(container_id, configs, 'rand', teasers);
}, animate_teaser_block_rand_time_123);
}
animate_teaser_block_123(container_id, configs, 'over', '');
});
}

вот такая бяка...

вот почему блоки тизеров через PRTEST не отражаются ??? только реффссылка :shock:

Аватара пользователя
Support
Служба поддержки
Сообщения: 4511
Зарегистрирован: 08 фев 2009, 19:24
Откуда: JetSwap
Контактная информация:

Re: кликанье по ссылкам

Непрочитанное сообщение Support »

Возможно действия скриптов вызывают ошибку и из-за этого они не работают. Очевидных признаков оптимизации именно под prtest не нашел.
С уважением, Служба поддержки.
http://www.jetswap.com

marveil
Сообщения: 17
Зарегистрирован: 13 апр 2010, 16:45

Re: кликанье по ссылкам

Непрочитанное сообщение marveil »

возможно ли как то кликать по всплывающим окнам ??

Аватара пользователя
Support
Служба поддержки
Сообщения: 4511
Зарегистрирован: 08 фев 2009, 19:24
Откуда: JetSwap
Контактная информация:

Re: кликанье по ссылкам

Непрочитанное сообщение Support »

Нет.
С уважением, Служба поддержки.
http://www.jetswap.com

Аватара пользователя
karpanter
Сообщения: 76
Зарегистрирован: 19 мар 2010, 13:52

Re: кликанье по ссылкам

Непрочитанное сообщение karpanter »

Вот про клик во фрейме есть партнерка te***r*ate Скрипт партнерки установлен на сайте. Режим презентации выдал вот такой фрейм:
http://te***r*ate/tizers.php?tizers=1&sid=****&vrt=1&num=4&bg=%23FFFFFF&fg=%23333333&br=1&ort=0&ul=2&fs=12&ft=0&st=0&ts=80x60&show_commercial=2&commercial_type=

я делаю вот такую настройку:
отправить событие: <frame(url=tizers.php)>a;link;te***r*ate;click
вставить скрипт: <frame(url=tizers.php)>top.location.href=hElsolast.href;

Что не так? Подскажите пожалуйста

Аватара пользователя
Support
Служба поддержки
Сообщения: 4511
Зарегистрирован: 08 фев 2009, 19:24
Откуда: JetSwap
Контактная информация:

Re: кликанье по ссылкам

Непрочитанное сообщение Support »

Вроде бы все так...
С уважением, Служба поддержки.
http://www.jetswap.com

Аватара пользователя
karpanter
Сообщения: 76
Зарегистрирован: 19 мар 2010, 13:52

Re: кликанье по ссылкам

Непрочитанное сообщение karpanter »

Странно,но клик в режиме презентации не проходил. МБ он только там не проходит? :)

Ответить