//-----------------------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; var popupWidth=650; var popupHeight=600; 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=="http://www.gold-ankauf-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; } 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=="http://www.gold-ankauf-dresden.de/") { //alert('start'); //alert($('.ref_stock tbody tr td').eq(0).html()); var mat = Array(); //alert($('.ref_stock tbody tr td.price_val').eq(2).html()); //alert($('.ref_stock tbody tr td.price_val').eq(0).html()); if((tmp=$('.ref_stock tbody tr td.price_val').eq(2).html())!='- €/g') {} else if((tmp=$('.ref_stock tbody tr td.price_val').eq(1).html())!='- €/g') {} else if((tmp=$('.ref_stock tbody tr td.price_val').eq(0).html())!='- €/g') {} else tmp='-'; mat['gold']=tmp; //alert(mat['gold']); if((tmp=$('.ref_stock tbody tr td.price_val').eq(5).html())!='- €/kg') {} else if((tmp=$('.ref_stock tbody tr td.price_val').eq(4).html())!='- €/kg') {} else if((tmp=$('.ref_stock tbody tr td.price_val').eq(3).html())!='- €/kg') {} else tmp='-'; mat['silver']=tmp; if(tmp=$('.ref_stock tbody tr td.price_val').eq(6).html()) {} else tmp='-'; //else if(tmp=$('.ref_stock tbody tr td.price_val').eq(9).html()) {} //else if(tmp=$('.ref_stock tbody tr td.price_val').eq(8).html()) {} mat['platin']=tmp; //alert(mat['platin']); var m = new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"); var d = new Date(); var d_minutes = d.getMinutes(); var d_hours = d.getHours(); if(d_minutes<10) d_minutes = '0'+d_minutes; if(d_hours<10) d_hours = '0'+d_hours; mat['date']=d.getDate()+'. '+m[d.getMonth()]+' '+d.getFullYear()+' '+d_hours+':'+d_minutes; //$('.small_box p.price_date').html(); if (mat['gold'] && mat['silver'] && mat['platin']) { openPopup('#inline_hr', ''); //'/img/startup_info.png'); $('.imgGallery .body').append( '

Ankauf von Gold und Silber

\ \ \ \ \ \ \ \ '); } } }); /***Inline Popup***/ var imgGalleryOn=0; function openPopup(el,src) { imgGalleryOn=1; if(src) $(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; //alert(margLeft); $('.statPanoBorder').css({"margin-top":(margTop<0?0:margTop),"margin-left":(margLeft<0?0:margLeft)}); } } window.onresize=positionGallery; window.onscroll=positionGallery;