【参加讨论】一:将下面的代码复制到〈body〉区
<style>
body{
overflow-x:hidden;
overflow-y:scroll;
}
</style>
<script language="javascript1.2">
var menuwidth=300
//configure scroll speed (1-10), where larger is faster
var scrollspeed=6
//specify menu content
var menucontents='<nobr><a href="www.hao123.com/man/club/sinabbs.htm">新浪论坛</a> | <a href="www.hao123.com/man/club/263bbs.htm">263论坛</a> | <a href="www.hao123.com/man/club/xilubbs.htm">西陆社区</a> | <a href="www.hao123.com/man/club/sohubbs.htm">搜狐社区</a> | <a href="www.yesky.com/index.html">天 极 网</a> | <a href="www.21cn.com/index.html">世纪网络</a> | <a href="www.easthome.net/index.html">东方网景</a> | <a href="www.sohu.com/index.html">搜狐</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" cellspacing="0" cellpadding="0">')
write('<td valign="middle"><a href=#" onmouseover="moveleft()" onmouseout="cleartimeout(lefttime)"><<<</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('>>></a>')
write('</td></table>')
}
}
</script>
二:修改<body***>中的内容,将下面的代码加入原<body***>中
onload="fillup()"