// Please read section 5 above on how the images have to be configured. // You may add as many images as you like! // Configure and separate each images exactly as follows: // imgname[x]="yourimagename.jpg|http://dweb.ru/" imgname[0]="slidepic1_34.jpg|http://www.web-script.narod.ru/" imgname[1]="slidepic2_34.jpg|http://www.web-script.narod.ru/" imgname[2]="slidepic3_34.jpg|http://www.web-script.narod.ru/" imgname[3]="slidepic4_34.jpg|http://www.web-script.narod.ru/" imgname[4]="slidepic5_34.jpg|http://www.web-script.narod.ru/"
// Configure text|URL the of menu1 var menu_1= new Array() menu_1[0]="Ferrari Boss happy|http://www.web-script.narod.ru/" menu_1[1]="Lotus comes back|http://www.web-script.narod.ru/" menu_1[2]="Testarossa revival|http://www.web-script.narod.ru/" menu_1[3]="Long good-bye|http://www.web-script.narod.ru/" // Configure text|URL the of menu2 var menu_2= new Array() menu_2[0]="Headhunter requested|http://www.web-script.narod.ru/" menu_2[1]="Maddest Scripts|http://www.web-script.narod.ru/" menu_2[2]="Scripters jailed|http://www.web-script.narod.ru/" menu_2[3]="Link thrill|http://www.web-script.narod.ru/"
// Configure text|URL the of menu3 var menu_3= new Array() menu_3[0]="Herbert R. Miller|http://www.web-script.narod.ru/" menu_3[1]="Ronny D. Smartegg|http://www.web-script.narod.ru/" menu_3[2]="Lisa Warner jun.|http://www.web-script.narod.ru/"
// Configure text|URL the of menu4 var menu_4= new Array() menu_4[0]="Give me a call|http://www.web-script.narod.ru/" menu_4[1]="Fax your comments|http://www.web-script.narod.ru/" menu_4[2]="Mail your compliments|http://www.web-script.narod.ru/" menu_4[3]="Shut up please|http://www.web-script.narod.ru/"
// Configure text|URL the of menu5 var menu_5= new Array() menu_5[0]="Long round desk|http://www.web-script.narod.ru/" menu_5[1]="Short fat desk|http://www.web-script.narod.ru/"
// Configure text|URL the of menu6 var menu_6= new Array() menu_6[0]="Silly question?|http://www.web-script.narod.ru/" menu_6[1]="Silly answers?|http://www.web-script.narod.ru/" menu_6[2]="Silly scripts?|http://www.web-script.narod.ru/" menu_6[3]="Why am I so silly|http://www.web-script.narod.ru/"
// The height of the imagefield (pixels) var scrollerheight=60
// The width of the imagefield (pixels) var scrollerwidth=140
// The distance to the top border of the window (pixels) var scrollertop=60
// The distance to the left border of the window (pixels) var scrollerleft=180
// The background-image's (imagemap's) horizontal shift in relation to the imagefield (pixels) var leftdif=160
// The background-image's (imagemap's) vertical shift in relation to the imagefield (pixels) var topdif=38
// Font attributes of the submenu-links var font_linkface="Verdana" var font_linkcolor="lightgreen" var font_linksize=1
// The targets of the subemus var linktarget="_blank"
// standstill between the images of the slideshow (milliseconds) var standstillfix=3000
// how long shall the submenus be visible (milliscronds) var submenutime=5000
// the total number of your menu-items (menu-buttons on your imagemap) var buttonnumber=6
// Do not edit below this line var scrollerpadding=0 var cliptop=0 var clipbottom=scrollerheight-2*scrollerpadding var clipleft=0 var clipright=scrollerwidth var backgroundborder=0 var i_imgname=0 var mes_joined var mes_split var menu_joined var menu_split var contenttext var contentmenu var contentbg var scrollerbgcolor="000000" var totalheight=scrollerheight*(imgname.length) var i_height=0 var step=1 var pause=20 var standstillflex=0 var imgpreload=new Array() for (i=0;i<=imgname.length-1;i++) { menu_joined=imgname[i] menu_split=menu_joined.split("|") imgpreload[i]=new Image() imgpreload[i].src=menu_split[0] }
function initiatemenus(){ for (ii=1;ii<=buttonnumber;ii++) { contentmenu="<table cellpadding=0 cellspacing=0 border=0 width="+(scrollerwidth-2*scrollerpadding)+">" contentmenu+="<tr valign='top'><td height='"+scrollerheight+"'>" var thismenu=eval("menu_"+ii) for (i=0;i<=thismenu.length-1;i++) { menu_joined=thismenu[i] menu_split=menu_joined.split("|") contentmenu+="<a href='"+menu_split[1]+"' target='"+linktarget+"'><font face='"+font_linkface+"' color='"+font_linkcolor+"' size='"+font_linksize+"'>"+menu_split[0]+"</font></a><br>" } contentmenu+="</td></tr>" contentmenu+="</table>" if (document.all) { var thismenudiv=eval("document.all.menu"+ii+".style") var thisinnerhtml=eval("menu"+ii) thisinnerhtml.innerHTML=contentmenu thismenudiv.posTop=scrollertop thismenudiv.posLeft=scrollerleft } if (document.layers) { var thismenudiv=eval("document.menu"+ii) thismenudiv.document.write(contentmenu) thismenudiv.document.close() thismenudiv.top=scrollertop thismenudiv.left=scrollerleft } contentmenu="" } initiatescroller() }
function scroll(){ standstillflex=standstillfix if (document.all){ if (i_height<scrollerheight) { i_height+=step cliptop+=step clipbottom+=step document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" document.all.scrollertext.style.posTop-=step var timer=setTimeout("scroll()",pause) }
else { if (document.all.scrollertext.style.posTop<=-(totalheight)) { document.all.scrollertext.style.posTop=scrollertop cliptop=0 clipbottom=scrollerheight-2*scrollerpadding document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" standstillflex=0 } i_height=0 clearTimeout(timer) var timer=setTimeout("scroll()",standstillflex) } }
if (document.layers){ if (i_height<scrollerheight) { i_height+=step cliptop+=step clipbottom+=step document.scrollertext.clip.left=clipleft document.scrollertext.clip.right=clipright document.scrollertext.clip.top=cliptop document.scrollertext.clip.bottom=clipbottom document.scrollertext.top-=step var timer=setTimeout("scroll()",pause) }
function showmenu(whichmenu) { clearTimeout(timer) hidealldivs() if (document.all) { var thismenu=eval("document.all."+whichmenu+".style") thismenu.visibility="VISIBLE" } if (document.layers) { var thismenu=eval("document."+whichmenu) thismenu.visibility="VISIBLE" } var timer=setTimeout("showtextagain()",submenutime) }
function hidealldivs() { for (ii=1;ii<=buttonnumber;ii++) { if (document.all) { var thismenudiv=eval("document.all.menu"+ii+".style") thismenudiv.visibility="HIDDEN" } if (document.layers) { var thismenudiv=eval("document.menu"+ii) thismenudiv.visibility="HIDDEN" } } if (document.all) { document.all.scrollertext.style.visibility="HIDDEN" } if (document.layers) { document.scrollertext.visibility="HIDDEN" } }
function showtextagain() { for (ii=1;ii<=buttonnumber;ii++) { if (document.all) { var thismenudiv=eval("document.all.menu"+ii+".style") thismenudiv.visibility="HIDDEN" } if (document.layers) { var thismenudiv=eval("document.menu"+ii) thismenudiv.visibility="HIDDEN" } } if (document.all) { document.all.scrollertext.style.visibility="VISIBLE" } if (document.layers) { document.scrollertext.visibility="VISIBLE" } }