var ii=0; function goup2(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}} function startTestemonial2(divObjId_1, divObjId_2, divSpeedObjId, sheight, sspeed, blankHeight, singletext){ var divSpeedObj = document.getElementById(divSpeedObjId); if(document.getElementById){ ns6div=document.getElementById(divObjId_1); ns6div_2 = document.getElementById(divObjId_2); ns6div.innerHTML=singletext[0]; sizeup=ns6div.offsetHeight; ns6div.style.top=0+"px"; ns6div_2.style.top=(sizeup+0+blankHeight)+"px"; ns6div_2.innerHTML=singletext[0]; firstDiv = ns6div; secondDiv = ns6div_2; ns6scroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, sizeup, singletext);} else if(document.layers){ ns4layer=document.ns4div.document.ns4div1; ns4layer2=document.ns4div.document.ns4div2; ns4layer.top=sheight; ns4layer.document.write(singletext[0]); ns4layer.document.close(); ns4layer2.top=sheight; ns4layer2.document.write(singletext[0]); ns4layer2.document.close(); sizeup=ns4layer.document.height; firstDiv = ns4layer; secondDiv = ns4layer2; ns4scroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, sizeup, singletext); } else if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}} function scrolstart(divSpeedObjId, speed){ document.getElementById(divSpeedObjId).value=speed; } function scrolstop(divSpeedObjId){ var divSpeedObj = document.getElementById(divSpeedObjId); divSpeedObj.value=0; } function iescroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, __sizeup, singletext){ var sspeed = divSpeedObj.value; var isFirstOneExceed = false; if(firstDiv.style.pixelTop>0&firstDiv.style.pixelTop<=sspeed){ firstDiv.style.pixelTop=0; } else if(firstDiv.style.pixelTop>=__sizeup*-1){ firstDiv.style.pixelTop=firstDiv.style.pixelTop-sspeed+"px"; } else { isFirstOneExceed = true; } if(secondDiv.style.pixelTop>0&&secondDiv.style.pixelTop<=sspeed){ secondDiv.style.pixelTop=0; } else if(secondDiv.style.pixelTop>=__sizeup*-1){ secondDiv.style.pixelTop=secondDiv.style.pixelTop-sspeed+"px"; } if(isFirstOneExceed){ //firstDiv siniri gecti seconddiv sonuna yerlesmesi gerekiyor firstDiv.style.pixelTop=secondDiv.style.pixelTop+secondDiv.offsetHeight+15; var tempDiv = firstDiv; firstDiv = secondDiv; secondDiv = tempDiv; isFirstOneExceed = false; } setTimeout(function() { this.iescroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, __sizeup) },100); } function ns4scroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, __sizeup, singletext){ var sspeed = divSpeedObj.value; var isFirstOneExceed = false; if(firstDiv.top>0&&firstDiv.top<=sspeed){ firstDiv.top=0; } else if(firstDiv.top>=__sizeup*-1){ firstDiv.top=firstDiv.top-sspeed+"px"; } else { isFirstOneExceed = true; } if(secondDiv.top>0&&secondDiv.top<=sspeed){ secondDiv.top=0; } else if(secondDiv.top>=__sizeup*-1){ secondDiv.top=secondDiv.top-sspeed+"px"; } if(isFirstOneExceed){ //firstDiv siniri gecti seconddiv sonuna yerlesmesi gerekiyor firstDiv.top=secondDiv.top+secondDiv.document.height+15; var tempDiv = firstDiv; firstDiv = secondDiv; secondDiv = tempDiv; isFirstOneExceed = false; } setTimeout(function() { this.ns4scroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, __sizeup) },100); } function ns6scroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, __sizeup, singletext){ var sspeed = divSpeedObj.value; var isFirstOneExceed = false; if(parseInt(firstDiv.style.top)>0&&parseInt(firstDiv.style.top)<=sspeed){ firstDiv.style.top=0; } else if(parseInt(firstDiv.style.top)>=__sizeup*-1){ firstDiv.style.top=parseInt(firstDiv.style.top)-sspeed+"px"; } else { isFirstOneExceed = true; } if(parseInt(secondDiv.style.top)>0&&parseInt(secondDiv.style.top)<=sspeed){ secondDiv.style.top=0; } else if(parseInt(secondDiv.style.top)>=__sizeup*-1){ secondDiv.style.top=parseInt(secondDiv.style.top)-sspeed+"px"; } if(isFirstOneExceed){ //firstDiv siniri gecti seconddiv sonuna yerlesmesi gerekiyorÜ firstDiv.style.top=parseInt(secondDiv.style.top)+secondDiv.offsetHeight+blankHeight; var tempDiv = firstDiv; firstDiv = secondDiv; secondDiv = tempDiv; isFirstOneExceed = false; } setTimeout(function() { this.ns6scroll2(firstDiv, secondDiv, divSpeedObj, blankHeight, __sizeup) },100); } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } }