document.write(''); document.write('
\

\ \
\

魔侠传

\ \
\
'); var tnHover = function(id, over, out){ var timer; var obj = document.getElementById(id); obj.onmouseover = function(){ if(timer)clearTimeout(timer); timer = setTimeout(function(){ if (over) over(); document.getElementById(id + "-cont").style.display = "block"; }, 400); }; obj.onmouseout = function(){ if(timer)clearTimeout(timer); timer = setTimeout(function(){ if (out) out(); document.getElementById(id + "-cont").style.display = "none"; }, 400); } } tnHover("topNavGameList"); tnHover("adPlay", function(){ document.getElementById("adPlay-tab").style.left = "-188px"; document.getElementById("adPlay-tab").style.backgroundPosition = "-112px -41px"; }, function(){ document.getElementById("adPlay-tab").style.left = "0"; document.getElementById("adPlay-tab").style.backgroundPosition = "center 0"; }); var tnIE6Adapt = function(){ if(navigator.userAgent && navigator.userAgent.indexOf("MSIE 6") != -1){ if(document.documentElement && document.documentElement.clientWidth){ var doc_w = document.documentElement.clientWidth; if(doc_w <= 960){ document.getElementById("topnav").style.width = "960px"; }else{ document.getElementById("topnav").style.width = "auto"; } } } } tnIE6Adapt(); window.onresize = tnIE6Adapt;