menu2
Autor: Vânia Diniz | Publicado: 2008-04-20T09:08:00-07:00

Menu ScrollCom esse script você colocaum menu scroll.Coloque o cursor em cima daseta //configure path for left and right arrowsvar goleftimage='<<---' var gorightimage='   --->>'//configure menu widthvar menuwidth=300//configure scroll speed (1-10), where larger is fastervar scrollspeed=6//specify menu contentvar menucontents='Link 1  Link 2  Link 3  Link 4  Link 5  Link 6  Link 7  Link 8 'var actualwidth=''var ns_scrollfunction fillup(){if (document.all){test2.innerHTML=menucontentsactualwidth=test2.offsetWidth}else if (document.layers){ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2ns_scroll.document.write(menucontents)ns_scroll.document.close()actualwidth=ns_scroll.document.width}}window.onload=fillupfunction moveleft(){if (document.all&&test2.style.pixelLeft>(menuwidth-actualwidth))test2.style.pixelLeft-=scrollspeedelse if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))ns_scroll.left-=scrollspeedlefttime=setTimeout("moveleft()",50)}function moveright(){if (document.all&&test2.style.pixelLeft<0) righttime="setTimeout(" border="0" cellspacing="0" cellpadding="0">')write('<<-  ')write('')if (document.all){write('')write('')write('')write('')}else if (document.layers){write('')write('')}write('')write(' ')write(' ->>')write('')}}      &lt;&lt;- Link 1  Link 2  Link 3  Link 4  Link 5  Link 6  Link 7  Link 8-&gt;&gt;<!-- END -->Copie o código e cole dentroda tag &lt;head&gt;de seu html      &lt;!--Começo ---&gt;  &lt;!--Scripts...http://www.cristinyonline.com.br---&gt;&lt;style&gt;body{overflow-x:hidden;overflow-y:scroll;}&lt;/style&gt; &lt;!--Fim ---&gt;Copie o código e cole dentrode seu html onde você quer que seu menuapareça.      &lt;!--Começo ---&gt;  &lt;P align=center&gt; &lt;script language="JavaScript1.2"&gt;&lt;!--Scripts...http://www.cristinyonline.com.br---&gt;//configure path for left and right arrowsvar goleftimage='&lt;&lt;- - -   'var gorightimage='   - - -&gt;&gt;'//configure menu widthvar menuwidth=300//configure scroll speed (1-10), where larger is fastervar scrollspeed=6//specify menu contentvar menucontents='&lt;nobr&gt;&lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 1&lt;/a&gt;  &lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 2&lt;/a&gt;  &lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 3&lt;/a&gt;  &lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 4&lt;/a&gt;  &lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 5&lt;/a&gt;  &lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 6&lt;/a&gt;  &lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 7&lt;/a&gt;  &lt;a href="http://www.ENDEREÇO DA PAGINA"&gt;Link 8&lt;/a&gt; &lt;/nobr&gt;'var actualwidth=''var ns_scrollfunction fillup(){if (document.all){test2.innerHTML=menucontentsactualwidth=test2.offsetWidth}else if (document.layers){ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2ns_scroll.document.write(menucontents)ns_scroll.document.close()actualwidth=ns_scroll.document.width}}window.onload=fillupfunction moveleft(){if (document.all&amp;&amp;test2.style.pixelLeft&gt;(menuwidth-actualwidth))test2.style.pixelLeft-=scrollspeedelse if (document.layers&amp;&amp;ns_scroll.left&gt;(menuwidth-actualwidth))ns_scroll.left-=scrollspeedlefttime=setTimeout("moveleft()",50)}function moveright(){if (document.all&amp;&amp;test2.style.pixelLeft&lt;0)test2.style.pixelLeft+=scrollspeedelse if (document.layers&amp;&amp;ns_scroll.left&lt;0)ns_scroll.left+=scrollspeedrighttime=setTimeout("moveright()",50)}if (document.alldocument.layers){with (document){write('&lt;table border="0" cellspacing="0" cellpadding="0"&gt;')write('&lt;td valign="middle"&gt;&lt;a href=#" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"&gt;&lt;b&gt;&lt;&lt;- &lt;/b&gt;&lt;/a&gt; &lt;/td&gt;')write('&lt;td valign="top"&gt;')if (document.all){write('&lt;span style="position:relative;width:'+menuwidth+';"&gt;')write('&lt;span style="position:absolute;width:'+menuwidth+';clip:rect(0 '+menuwidth+' auto 0)"&gt;')write('&lt;span id="test2" style="position:absolute;left:0;top:0"&gt;')write('&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;')}else if (document.layers){write('&lt;ilayer width='+menuwidth+' name="ns_scrollmenu"&gt;')write('&lt;layer name="ns_scrollmenu2" left=0 top=0&gt;&lt;/layer&gt;&lt;/ilayer&gt;')}write('&lt;/td&gt;')write('&lt;td valign="middle"&gt; &lt;a href="#" onMouseover="moveright()" onMouseout="clearTimeout(righttime)"&gt;')write('&lt;b&gt; -&gt;&gt;&lt;/b&gt;&lt;/a&gt;')write('&lt;/td&gt;&lt;/table&gt;')}}&lt;/script&gt;&lt;/center&gt;&gt;   &lt;!--Fim ---&gt;