Hej,
Jodå...jag har en som du kan få...den scrollar horisontellt...bara adapta den som du vill och voila...scroll!
MvH
/A
PS) Lägg koden där du vill att scrollern ska dyka upp
----
<HTML>
<HEAD>
</HEAD>
<BODY>
\<style\>
body
{
overflow-x:hidden;
overflow-y:hidden;
}
\</style\>
\<script language="JavaScript1.2"\>
//configure path for left and right arrows
var goleftimage='images/pilvanster.jpg'
var gorightimage='images/pilhoger.jpg'
//configure menu width
var menuwidth=410
//configure scroll speed (1-10), where larger is faster
var scrollspeed=10
//specify menu content
var menucontents='\<nobr\>\<a href="xxx.html"\>Home\</a\> | \<a href="xxx.html"\>Bla bla bla\</a\>\</nobr\>'
////NO NEED TO EDIT BELOW THIS LINE////////////
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)
test2.style.pixelLeft+=scrollspeed
else if (document.layers&&ns_scroll.left\<0)
ns_scroll.left+=scrollspeed
righttime=setTimeout("moveright()",50)
}
if (document.all||document.layers)
{
with (document)
{
write('\<table border="0" height="15" cellspacing="0" cellpadding="0"\>')
write('\<td valign="middle" height="15"\>\<a href=#" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"\>\<img src="'+goleftimage+'"border=0\>\</a\> \</td\>')
write('\<td valign="top"\>')
if (document.all){
write('\<span style="position:relative;width:'+menuwidth+';"\>')
write('\<span style="position:absolute;width:'+menuwidth+';clip:rect(0 '+menuwidth+' auto 0)"\>')
write('\<span id="test2" style="position:absolute;left:0;top:0"\>')
write('\</span\>\</span\>\</span\>')
}
else if (document.layers)
{
write('\<ilayer width='+menuwidth+' name="ns_scrollmenu"\>')
write('\<layer name="ns_scrollmenu2" left=0 top=0\>\</layer\>\</ilayer\>')
}
write('\</td\>')
write('\<td valign="middle"\> \<a href="#" onMouseover="moveright()" onMouseout="clearTimeout(righttime)"\>')
write('\<img src="'+gorightimage+'"border=0\>\</a\>')
write('\</td\>\<td\> \</td\>\<td\>\<font color="#808080"\> © thecookiefactory 2001\</font\>')
write('\</td\>\</table\>')
}
}
</script>
</BODY>
</HTML>
-------

