var currentNews = {entry0:{txt:'Friedrichs Millionen – eine vollkommen absurde Phantomdebatte',link:'https://www.nachdenkseiten.de/?p=47297'},entry1:{txt:'Die Indo-Pazifik-Strategie',link:'https://www.german-foreign-policy.com/news/detail/7787/'},entry2:{txt:'Interview mit Noam Chomsky: Kampf oder Untergang! ',link:'https://www.heise.de/tp/features/Kampf-oder-Untergang-4224233.html'},entry3:{txt:'Brexit: Im stählernen Griff',link:'https://www.jungewelt.de/artikel/343785.brexit-im-st%C3%A4hlernen-griff.html'},entry4:{txt:'UN-Migrationspakt verwaltet weltweite Ungleichheit ',link:'https://www.heise.de/tp/features/UN-Migrationspakt-verwaltet-weltweite-Ungleichheit-4224403.html'},entry5:{txt:'Von der Leyens neuer Plan: Krieg der Nation - Frieden den Rüstungspalästen',link:'https://www.rationalgalerie.de/home/von-der-leyens-neuer-plan.html'}}; 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);