var minDiff = 10; var uniqid = null; uniqid = new Date().getTime() + Math.random(); $(document).ready(function(){ // if (jQuery.browser.mozilla == true) { // if (jQuery.browser.msie == true) { var c = getCookie('dmcookie'); //if(c == 1){ //ritkitas var ms = new Date().getMilliseconds(); //if( 0 < ms && ms < 1000 && (27 == 27 || 27 == 14) ) { if( (27 == 27 || 27 == 14) ) { $.each($(".merokod"), function(i, item){ var rels = ($(item).attr("rel")).split("|"); getBanner( rels[0], rels[1], rels[2] ); }); } //} }); function getCookie(c_name) { if (document.cookie.length>0){ c_start=document.cookie.indexOf(c_name + "="); if (c_start != -1){ c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";",c_start); if (c_end == -1) c_end = document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return 0; } function getBanner( block, bannerId1, bannerId2, bannerId3 ){ var maxSumWidth = 0; if ($.uniqId == "") { $.uniqId = new Date().getTime() + Math.random(); } var fullWidth = $("#wrap").width(); var fullHeight = $(document).height(); var max = 0; var y1 = $("#extrabanner_"+bannerId1).position().top; var y2 = $("#extrabanner_"+bannerId2).position().top; if (bannerId3 > 0) { var y3 = $("#extrabanner_"+bannerId3).position().top; } if( max < y1 ) max = y1; if( max < y2 ) max = y2; if (bannerId3 > 0) { if( max < y3 ) max = y3; } var hasab_1 = max - y1; var hasab_2 = max - y2; if (bannerId3 > 0) { var hasab_3 = max - y3; } // var url = "http://balance.dotmarketing.hu/helloworld/ajaxGetBanner/0/"+uniqid; var url = "http://vps.jackbauer.hu/helloworld/ajaxGetBanner/0/"+uniqid; //összeadjuk a ... maxSumWidth += $("#extrabanner_"+bannerId1+"_content").width(); maxSumWidth += $("#extrabanner_"+bannerId2+"_content").width(); if ( hasab_3 > minDiff && bannerId3 > 0 ) { maxSumWidth += $("#extrabanner_"+bannerId3+"_content").width(); } if ( hasab_1 > minDiff) { //w-t eldobjuk, mert automatikussa tesszuk w = $("#extrabanner_"+bannerId1).width(); $("#extrabanner_"+bannerId1).html(''); //console.log('bent vagyok'); //console.log(url + "/" + hasab_1 + "/" + w +"/"+max+'/'+fullWidth+'/'+fullHeight+'/'+27+'/'+'cikk'+'/'+bannerId1+'/'+block+'/'+'
Severity: Notice
Message: Undefined index: HTTP_REFERER
Filename: helloworld/js_uniq_tpl.php
Line Number: 76