var strtextsize = textsize var strboxwidth = boxwidth var strboxheight = boxheight //kontrollera nummer och ändra till standard vid fel //text if (isNaN(strtextsize)) {strtextsize = 8} if (strtextsize<8) {strtextsize = 8} //bredd if (isNaN(strboxwidth)) {strboxwidth = 120} if (strboxwidth<120) {strboxwidth = 120} strboxwidth=strboxwidth-2 //höjd if (isNaN(strboxheight)) {strboxheight = 120} if (strboxheight<120) {strboxheight = 120} strboxheight=strboxheight-2 //1-5 var strscrollStep = scrollStep if (isNaN(strscrollStep)) {strscrollStep = 2} if (strscrollStep<1 || strscrollStep>5) {strscrollStep = 2} //1-10 var strscrollDelay = scrollDelay if (isNaN(strscrollDelay)) {strscrollDelay = 2} strscrollDelay = strscrollDelay * 10 if (strscrollDelay<10 || strscrollDelay>100) {strscrollDelay = 20} //1-5 sekunder var scrollLongDelay = scrollHoldDelay if (isNaN(scrollLongDelay)) {scrollLongDelay = 3} scrollLongDelay = scrollLongDelay * 1000 if (scrollLongDelay<1000 || scrollLongDelay>5000) {scrollLongDelay = 3000} //***************************************** //logo var bildwidth = strboxwidth - 6 // orginalbild 350x41px var xx = bildwidth / 350 var bildheight = 41 * xx //höjden var boxtextheight = strtextsize + 6 + bildheight var bth = strboxheight - boxtextheight - 15 var scrollAllowed = true var scrollHeight = null //************************************************************************** //************************************************************************** function festfixarna_displayStatusMsg(msgStr) { //v1.0 window.status=msgStr; document.festfixarna_returnValue = true; } function ffscrollerInit() { document.getElementById("ffscroller").onmouseover = function() {scrollAllowed = false;} document.getElementById("ffscroller").onmouseout = function() {scrollAllowed = true;} if (navigator.appVersion.indexOf("MSIE 5")!=-1) { document.getElementById("ffouterBox").style.width = document.getElementById("ffouterBox").offsetWidth+2 document.getElementById("ffouterBox").style.height = document.getElementById("ffouterBox").offsetHeight+2 } scrollHeight = document.getElementById("ffinnerBox").offsetHeight content = document.getElementById("ffinnerBox").innerHTML document.getElementById("ffinnerBox").innerHTML = content+content ffscrollUp() } function ffscrollUp() { toppos = parseInt(document.getElementById("ffinnerBox").style.top) if (isNaN(toppos) || -toppos > scrollHeight-strscrollStep) { toppos = 0 } if (scrollAllowed) document.getElementById("ffinnerBox").style.top = toppos-strscrollStep + "px" delay = strscrollDelay p = document.getElementById("ffinnerBox") for (i = 0; i < p.childNodes.length; i++) { if (p.childNodes[i].tagName == "A") { if (p.childNodes[i].offsetParent) var linkpos = toppos + p.childNodes[i].offsetTop else var linkpos = toppos + p.childNodes[i].offsetTop - p.offsetTop // NN6 if (linkpos >= 0 && linkpos < strscrollStep) delay = scrollLongDelay } } window.setTimeout(ffscrollUp, delay) } html = ''; html += '