var message= new Array() // Please read section 2 above on how the messages have to be configured. // You may add as many messages as you like! message[0]="У нас авария|Помыл машину отехал 200м и вот....|http://www.retroimperia.com/avariya.php" message[1]="Последующий ремонт|Этапы ремонта!|http://www.retroimperia.com/remont.php" message[2]="У нас новые товары|Зайдите в наш автомагазин и вы там сможите заказать себе ЛЮБУЮ деталь.|http://www.retroimperia.com/avtosale.php" // The height of the scrollerbox (pixels) var scrollerheight=160 // The width of the scrollerbox (pixels) var scrollerwidth=160 // The distance to the left border of the window (pixels) var scrollertop=288 // The distance to the top border of the window (pixels) var scrollerleft=22 // The padding between the scrollerbox and the text (pixels) var scrollerpadding=10 // The width of the scrollerbox-border (pixels) var backgroundborder=0 // The background-colour of the scrollerbox var scrollerbgcolor="000066" // Font attributes of the title var font_titleface="Verdana" var font_titlecolor="ff0000" var font_titlesize=1 // Font attributes of the copytext var font_copyface="Verdana" var font_copycolor="FFFFFF" var font_copysize=1 // standstill between the messages (milliseconds) var standstillfix=5000 // Do not edit below this line var cliptop=0 var clipbottom=scrollerheight-2*scrollerpadding var clipleft=0 var clipright=scrollerheight var i_message=0 var mes_joined var mes_split var contenttext var contentbg var totalheight=scrollerheight*(message.length) var i_height=0 var step=1 var pause=20 var standstillflex=0 function initiate(){ contenttext="" contenttext+="" for (i=0;i<=message.length-1;i++) { mes_joined=message[i] mes_split=mes_joined.split("|") contenttext+="" } contenttext+="

"+mes_split[0]+"
"+mes_split[1]+"
" contentbg="
 
" if (document.all) { scrollertext.innerHTML=contenttext scrollerbg.innerHTML=contentbg document.all.scrollertext.style.posTop=scrollertop document.all.scrollertext.style.posLeft=scrollerleft document.all.scrollerbg.style.posTop=scrollertop-scrollerpadding document.all.scrollerbg.style.posLeft=scrollerleft-scrollerpadding document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" } if (document.layers) { document.scrollertext.document.write(contenttext) document.scrollertext.document.close() document.scrollerbg.document.write(contentbg) document.scrollerbg.document.close() document.scrollertext.top=scrollertop document.scrollertext.left=scrollerleft document.scrollerbg.top=scrollertop-scrollerpadding document.scrollerbg.left=scrollerleft-scrollerpadding document.scrollertext.clip.left=clipleft document.scrollertext.clip.right=clipright document.scrollertext.clip.top=cliptop document.scrollertext.clip.bottom=clipbottom } scroll() } function scroll(){ standstillflex=standstillfix if (document.all){ if (i_height