//-----------------------Cookies-------------------------------- function setCookie(name, value, days, path='/') { var expires = ""; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + (value || "") + expires + "; path=" + path; } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i
Die Website verwendet Cookies.
Diese Webseite nutzt teilweise Cookies für Statistikzwecke. Wenn Sie der Verwendung von Cookies zustimmen, klicken Sie bitte auf den Button "Zustimmen". Sie können die Cookies-Einstellung jederzeit in Ihren Browsereinstellungen ändern.
Auf unserer Homepage erheben wir personenbezogene Daten. Alle relevanten Formationen dazu finden Sie in unserer Datenschutzerklärung.
Zustimmen
'); $('#cookie_hinweis').show(); } //else alert(getCookie('cookie_confirmed')); $('#cookie_zustimmen').click(function() { document.cookie = setCookie('cookie_confirmed', '1', 1000); $('#cookie_hinweis').hide(); }); } /*****News-Ticker****/ var delay=50; var ticker_width=20000; var ticker_offs=400; var timerId; var n=0; function ticker() { var pos=$('#tickerbox').css('left').substring(0,$('#tickerbox').css('left').length-2)-1; //if(n++<5) { alert(pos+' '+$('#tickerbox_offs').offset()+' '+$('#tickerbox_offs').outerWidth()); } if(pos<(ticker_width*-1)) pos=ticker_offs; document.getElementById('tickerbox').style.left=pos+"px"; timerId=window.setTimeout("ticker()", delay); } $(document).ready(function() { checkCookie(); /***News-Ticker***/ $('#tickertxt').html(nachricht); ticker_width=$('#tickeroffs').position().left; window.setTimeout('ticker()',3000); /***Inline Popup***/ if(window.location.href=="https://www.gold-verkauf-dresden.de/") { //alert('start'); $('.imGallery').css('width','220'); $('.imgGallery').css('height','395'); //popupWidth=320; //popupHeight=360; //openPopup('#inline_hr', '/img/startup_info.png'); } else { //popupWidth=650; //popupHeight=600; } /***Popup***/ var popupWidth=$('.imGallery').width()+54; var popupHeight=$('.imgGallery').height()+54; $('.statPanoBorder').hide(); $('.close_inline_hr').click(function() {closePopup();}); $('img.tn').parent('a').css({'background':'url(/img/lensplus.png) no-repeat right bottom','display':'inline-block'}); $('img.tn').css({'position':'relative','z-index':'-10'}); $('img.tn').parent('a').click(function() { var src=$(this).attr('href'); src='/scripts/getimage.php'+src.match(/\?.+/); //alert(src); openPopup('#inline_hr', src); return(false); }); /***Popup***/ if(window.location.href=="https://www.gold-verkauf-dresden.de/") { //alert('start'); openPopup('#inline_hr', '/img/startup_info.png'); $('.imgGallery .headLine').append('
'); } }); /***Inline Popup***/ var imgGalleryOn=0; var popupWidth=700; var popupHeight=450; function openPopup(el,src) { imgGalleryOn=1; $(el).attr('src',src); positionGallery(); $('.statPanoBorder').show(); $('.close_inline_hr').fadeIn(); } function closePopup() { imgGalleryOn=0; $('#mask').fadeOut(); //css("display","none"); $('.statPanoBorder').hide(); $('.close_inline_hr').hide(); } function positionGallery() { if(imgGalleryOn) { // maske über ganzem window skalieren var maskHeight = $(document).height(); var maskWidth = $(window).width(); $('#mask').css({'width':maskWidth,'height':maskHeight}); $('#mask').fadeIn(); //css("display","block"); // position korrigieren vpHeight=$(window).height(); vpWidth=$(window).width(); var scrollY=window.pageYOffset; var scrollX=window.pageXOffset; var margTop=((vpHeight-popupHeight)>>1)+scrollY; var margLeft=((vpWidth-popupWidth)>>1)+scrollX; $('.statPanoBorder').css({"margin-top":(margTop<0?0:margTop),"margin-left":(margLeft<0?0:margLeft)}); } } window.onresize=positionGallery; window.onscroll=positionGallery;