 
var goleftimage='left.gif' 
var gorightimage='right.gif' 
var menuwidth=150 
var scrollspeed=3 
var menucontents='<nobr><a  href="#" title="本站首页,各栏目最新更新，热门下载" onclick=\"window.close();window.open(\'index1.html\',\'\',\'scrollbars=yes\')\">本站首页</a> |<a href="news.htm" title="第一时间向您报道有关拳皇的消息">拳皇新闻</a> | <a href="text.htm" title="高手心得，初学者教程。欢迎你投稿至我的信箱或留言版">实战文章</a> | <a href="combo.htm" title="超酷连续技的解说和在线演示，网络较空时欢迎欣赏">连技演示</a> | <a href="picmov.htm" title="拳皇的各种图片库，以及相关动画">图片动画</a> | <a href="down.htm" title="拳皇修改器、roms、连续技打包下载、mp3外壳、mp3......">下载基地</a>| <a href="http://kofunion.xilubbs.com/" target="_blank" title="本站留言板，欢迎灌水">站内留言</a>| <a href="mailto:kip_p_w@citiz.net" title="我的E_mail信箱">联系站长</a></nobr>' 
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" class="txet">') 
write('<td valign="middle"><a href=#" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"><img src="'+goleftimage+'"border=0  width="13" height="13"></a>&nbsp;</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">&nbsp;<a href="#" onMouseover="moveright()" onMouseout="clearTimeout(righttime)">') 
write('<img src="'+gorightimage+'"border=0 width="13" height="13"></a>') 
write('</td></table>') 
} 
} 
