/* Cross browser Marquee script- c Dynamic Drive (www.dynamicdrive.com) For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com Credit MUST stay intact */ //Specify the marquee's width (in pixels) var marqueewidth2="906px" //Specify the marquee's height var marqueeheight2="18px" //Specify the marquee's marquee speed (larger is faster 1-10) var marqueespeed2=2 //configure background color: var marqueebgcolor2="" //Pause marquee onMousever (0=no. 1=yes)? var pauseit2=1 //Specify the marquee's content (don't delete tag) //Keep all content on ONE line, and backslash any single quotations (ie: that\'s great): var marqueecontent2 = ''; marqueecontent2 += '
' marqueecontent2 += 'Компания НЕ ВЗИМАЕТ плату за вход/выход из фондов '; marqueecontent2 += '
'; ////NO NEED TO EDIT BELOW THIS LINE//////////// marqueespeed2=(document.all)? marqueespeed2 : Math.max(1, marqueespeed2-1) //slow speed down by 1 for NS var copyspeed2=marqueespeed2 var pausespeed2=(pauseit2==0)? copyspeed2: 0 var iedom2=document.all||document.getElementById if (iedom2) document.write('') var actualwidth2='' var cross_marquee2, ns_marquee2 function populate2(){ if (iedom2){ cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2 cross_marquee2.style.left=parseInt(marqueewidth2)+8+"px" cross_marquee2.innerHTML=marqueecontent2 actualwidth2=document.all? temp2.offsetWidth : document.getElementById("temp2").offsetWidth } else if (document.layers){ ns_marquee2=document.ns_marquee3.document.ns_marquee4 ns_marquee2.left=parseInt(marqueewidth2)+8 ns_marquee2.document.write(marqueecontent2) ns_marquee2.document.close() actualwidth2=ns_marquee2.document.width } lefttime2=setInterval("scrollmarquee2()",20) } function PP(){ populate() populate2() } window.onload=PP function scrollmarquee2(){ if (iedom2){ if (parseInt(cross_marquee2.style.left)>(actualwidth2*(-1)+8)) cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-copyspeed2+"px" else cross_marquee2.style.left=parseInt(marqueewidth2)+8+"px" } else if (document.layers){ if (ns_marquee2.left>(actualwidth2*(-1)+8)) ns_marquee2.left-=copyspeed2 else ns_marquee2.left=parseInt(marqueewidth2)+8 } } if (iedom2||document.layers){ with (document){ document.write('
') if (iedom2){ write('
') write('
') write('
') write('
') } else if (document.layers){ write('') write('') write('') } document.write('
') } }