var currentNews = {entry0:{txt:'Spain: José Borrell’s Mission Impossible',link:'https://braveneweurope.com/milford-edge-spain-jose-borrells-mission-impossible'},entry1:{txt:'Frau Dr. Merkel hat Deutschland Schaden zugefügt',link:'https://www.world-economy.eu/pro-contra/details/article/frau-dr-merkel-hat-deutschland-schaden-zugefuegt-sie-hat-ihren-eigenen-nachruf-bereits-geschrieben/'},entry2:{txt:'Menschen ganz unten und solche, die dauerhaft in der Schattenwelt darüber leben müssen',link:'http://aktuelle-sozialpolitik.de/2018/09/24/von-polnischen-obdachlosen-und-dem-prekariat/'},entry3:{txt:'Das „Aus“ für Erntehelfer und Sozialstaat',link:'https://qpress.de/2018/09/25/das-aus-fuer-erntehelfer-und-sozialstaat/'},entry4:{txt:'Auf dünnem Eis',link:'https://www.german-foreign-policy.com/news/detail/7733/'}}; var uAgent=navigator.userAgent,isIE=false,isIE5=false,ieVersion=0,isFirefox=false,i=uAgent.indexOf('MSIE'),isOpera=uAgent.indexOf('Opera')>-1; if(i>0&&!isOpera){ isIE=true; ieVersion=parseFloat(uAgent.substr(i+5)); isIE5=(ieVersion<5.5); if(ieVersion>=7.0)alphaPNG=true; } else { isFirefox=(uAgent.indexOf('Firefox')>0?true:false); alphaPNG=true; }; function getAppWidth(){ if (typeof window.innerWidth != 'undefined') { return window.innerWidth; } else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) { return document.documentElement.clientWidth; } else { return document.getElementsByTagName('body')[0].clientWidth; } } function getAppHeight(){ if (typeof window.innerHeight != 'undefined') { return window.innerHeight } else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientHeight != 'undefined' && document.documentElement.clientHeight != 0) { return document.documentElement.clientHeight } else { return document.getElementsByTagName('body')[0].clientHeight } } document.write('
'); var newstickerdiv = null; function initNewsticker(){ newstickerdiv = document.getElementById('newsticker'); newstickerdiv.innerHTML = ""; newstickerdiv.style.overflow = 'hidden'; if(isIE) newstickerdiv.style.width = 960-20; newstickerdiv.xPos = 960; newstickerdiv.moveSpeed = 12; newstickerdiv.direction = true; newstickerdiv.isInvestigated = false; if(!isIE){ var leftcorner = document.createElement('span'); leftcorner.style.cssText = "position:absolute; left:0px;top:0px; width:104px;z-index:3; height:27px; background-image:url(http://www.net-news-express.de/images/nt_leftcorner2.png);"; newstickerdiv.appendChild(leftcorner); var rightcorner = document.createElement('span'); rightcorner.id = "newsticker_rightcorner"; rightcorner.style.cssText = "position:absolute; top:0px; right:0px; width:104px;z-index:3; height:27px; background-image:url(http://www.net-news-express.de/images/nt_rightcorner.png);"; newstickerdiv.appendChild(rightcorner); } var msgLength = 0; var noBreak = document.createElement('nobr'); var floatDiv = document.createElement('div'); floatDiv.style.position = 'absolute'; floatDiv.style.top = '3px'; floatDiv.setAttribute("id","floatDiv"); var myMessage = ''; var span = null; for(var i in currentNews){ span = document.createElement('span'); span.innerHTML = currentNews[i].txt; span.style.cursor = 'pointer'; span.link = currentNews[i].link; msgLength += span.innerHTML.length; floatDiv.appendChild(span); span.onmouseover = function(){ newstickerdiv.isInvestigated = true; this.style.cssText = 'text-decoration:underline; cursor:pointer;'; } span.onmouseout = function(){ newstickerdiv.isInvestigated = false; this.style.cssText = 'text-decoration:none; cursor:pointer;'; } span.onclick = function(){ window.open(this.link, "popup", "width=1000, height=800, scrollbars=yes"); } cutspan = document.createElement('span'); cutspan.innerHTML = ' +++ '; cutspan.style.cursor = 'pointer'; cutspan.onmousedown = function(ev){ document.body.onmousemove = function(ev){ // clear timer newstickerdiv.isInvestigated = false; newstickerdiv.isOnDrag = false; clearInterval(newstimer); newstimer = null; ev = ev||window.event; if(!newstickerdiv.firstX){ newstickerdiv.firstX = ev.clientX; newstickerdiv.firstLeft = parseInt(newstickerdiv.fDiv.style.left); } var newPos = newstickerdiv.firstLeft-((newstickerdiv.firstX-ev.clientX)); newstickerdiv.fDiv.style.left = newPos+'px'; newstickerdiv.xPos = newPos; if(ev.preventdefault) ev.preventDefault(); document.onselectstart = function (ev) { ev = ev||window.event; if(ev.preventdefault) ev.preventDefault(); return false; }; document.ondragstart = function (ev) { ev = ev||window.event; if(ev.preventdefault) ev.preventDefault(); return false; }; }; document.body.onmouseup = function(){ newstickerdiv.isInvestigated = false; newstickerdiv.isOnDrag = false; document.onselectstart = null; document.ondragstart = null; document.body.onmousemove = null; newstickerdiv.firstX = null; if(!newstimer) newstimer = window.setInterval("animateNewsticker();",200); }; newstickerdiv.isInvestigated = true; newstickerdiv.isOnDrag = true; } cutspan.onmouseup = function(event){ newstickerdiv.isInvestigated = false; newstickerdiv.isOnDrag = false; document.body.onmousemove = null; document.body.onmouseup = null; document.onselectstart = null; document.ondragstart = null; newstickerdiv.firstX = null; if(!newstimer) newstimer = window.setInterval("animateNewsticker();",200); } floatDiv.appendChild(cutspan); } msgLength = msgLength*9; newstickerdiv.msgLength = msgLength; noBreak.appendChild(floatDiv); newstickerdiv.fDiv = floatDiv; newstickerdiv.appendChild(noBreak); } function animateNewsticker(){ if(!newstickerdiv) initNewsticker(); if(!newstickerdiv.isInvestigated){ var floatDiv = document.getElementById("floatDiv"); var news_rightc = document.getElementById("newsticker_rightcorner"); if(floatDiv){ floatDiv.style.left = (newstickerdiv.xPos - newstickerdiv.moveSpeed)+'px'; newstickerdiv.xPos = parseInt(floatDiv.style.left); if(newstickerdiv.xPos+newstickerdiv.msgLength<0) newstickerdiv.xPos = 960; } } } var newstimer = window.setInterval('animateNewsticker();',200);