function inf_getFrameLink() { ip = ''; server = ''; infQuery = ''; try{ infQuery += 'type='+encodeURIComponent(inf_ticker_typ); } catch(e){} try{ infQuery += '&iKey='+encodeURIComponent(inf_key); } catch(e){} try{ infQuery += '&ref='+encodeURIComponent(location.href); } catch(e){} try{ infQuery += '&noNews='+encodeURIComponent(inf_anzahl_news); } catch(e){} try{ infQuery += '&randNews='+encodeURIComponent(inf_zufalls_news); } catch(e){} try{ infQuery += '&speed='+encodeURIComponent(inf_speed); } catch(e){} try{ infQuery += '&iWidth='+encodeURIComponent(inf_breite); } catch(e){} try{ infQuery += '&iHeight='+encodeURIComponent(inf_hoehe); } catch(e){} try{ infQuery += '&fontFamily='+encodeURIComponent(inf_schriftart); } catch(e){} try{ infQuery += '&fontSize='+encodeURIComponent(inf_schriftgroesse); } catch(e){} try{ infQuery += '&highlight='+encodeURIComponent(inf_hervorheben); } catch(e){} try{ infQuery += '&background='+encodeURIComponent(inf_hintergrund); } catch(e){} try{ infQuery += '&color1='+encodeURIComponent(inf_schriftfarbe1); } catch(e){} try{ infQuery += '&color2='+encodeURIComponent(inf_schriftfarbe2); } catch(e){} try{ infQuery += '&color3='+encodeURIComponent(inf_schriftfarbe3); } catch(e){} try{ infQuery += '&hrcolor='+encodeURIComponent(inf_trennfarbe); } catch(e){} try{ infQuery += '&hrshow='+encodeURIComponent(inf_trennerzeigen); } catch(e){} try{ infQuery += '&spacer='+encodeURIComponent(inf_newstrenner); } catch(e){} try{ infQuery += '&showPics='+encodeURIComponent(inf_bilder); } catch(e){} try{ infQuery += '&textLength='+encodeURIComponent(inf_textlaenge); } catch(e){} try{ infQuery += '&testMode='+encodeURIComponent(inf_testAreaMode); } catch(e){} try{ infQuery += '&ip='+encodeURIComponent(ip); } catch(e){} try{ infQuery += '&server='+encodeURIComponent(server); } catch(e){} return ''; } function inf_inTestArea() { // Diese Funktion prüft über die Browser-Sicherheitsrichtlinien (kein Cross-Domain-Zugriff), ob der Feed angezeigt werden darf try{ f = window.top.location.toString(); if (f) return true; }catch(e){ //alert(e); } return false; } function getGetVars() { v = location.search.substring(1, location.search.length).split('&'); getVars = new Array(); for(var x = 0; x < v.length; x++){ var temp = v[x].split('='); getVars[temp[0]] = temp[1]; } } function inf_checktestarea() { if (typeof(inf_testAreaMode) != 'undefined' && inf_testAreaMode == 1) inf_needsTAcheck = true; else inf_needsTAcheck = false; if (!inf_inTestArea() && inf_needsTAcheck){ document.getElementsByTagName('body')[0].innerHTML = '
Es wurden leider keine News gefunden!
'; } } function inf_toString() { re = ''; re += '\n' + ''; return re; } function inf_default() { inf_tickerMaySave = false; inf_key = inf_default_key; // Grundeinstellungen inf_breite = "500"; inf_hoehe = "20"; inf_anzahl_news = 3; inf_zufalls_news = 0; inf_ticker_typ = "ticker"; // Formatierung inf_schriftart = "Verdana"; inf_schriftgroesse = 11; inf_hintergrund = ""; inf_schriftfarbe1 = "58585A"; inf_schriftfarbe2 = "EC7205"; inf_schriftfarbe3 = "58585A"; inf_hervorheben = "unterstreichen"; inf_trennfarbe = "BABABA"; inf_trennerzeigen = 1; inf_bilder = 0; inf_textlaenge = 50; } function initNewsticker() { inf_content = inf_getFrameLink(); if (typeof(inf_embedMode) == 'undefined') document.write(inf_content); else{ if (inf_embedMode != 'document.write') document.getElementById(inf_embedMode).innerHTML = inf_content; else document.write(inf_content); } } function inf_openNews(e){ return inf_openWindow(e.href, 630, 600, 'infNews'); } function inf_openWindow(url, width, height, title) { if (typeof(title) == 'undefined') title = '_blank'; try{ fenster = window.open(url, title, "width="+width+",height="+height+",scrollbars=yes,resizable=yes"); fenster.focus(); if (!fenster) return true; else return false; }catch(e){ return true; } } if (typeof(inf_initType) != 'undefined' && inf_initType == 'none'){ // Newsticker nicht initialisieren }else initNewsticker();