<%@ Page Language="C#" AutoEventWireup="true" CodeFile="aleft.aspx.cs" Inherits="Admin_Admin_left" %><!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<script language=javascript>
function menuShow(obj,maxh,obj2)
{
  if(obj.style.pixelHeight<maxh)
  {
    obj.style.pixelHeight+=maxh/10;
obj.filters.alpha.opacity+=20;
obj2.bgcolor="green";
    if(obj.style.pixelHeight==maxh/10)
  obj.style.display='block';
myObj=obj;
myMaxh=maxh;
myObj2=obj2;
setTimeout('menuShow(myObj,myMaxh,myObj2)','5');
  }
}
function menuHide(obj,maxh,obj2)
{
  if(obj.style.pixelHeight>0)
  {
    if(obj.style.pixelHeight==maxh/5)
  obj.style.display='none';
    obj.style.pixelHeight-=maxh/5;
obj.filters.alpha.opacity-=10;
obj2.bgcolor="black";
myObj=obj;
myMaxh=maxh
myObj2=obj2;
setTimeout('menuHide(myObj,myMaxh,myObj2)','5');
  }
  else
    if(whichContinue)
  whichContinue.click();
}
function menuChange(obj,maxh,obj2)
{
  if(obj.style.pixelHeight)
  {
    menuHide(obj,maxh,obj2);
whichOpen='';
whichcontinue='';
  }
  else
    if(whichOpen)
{
  whichContinue=obj2;
      whichOpen.click();
}
else
{
  menuShow(obj,maxh,obj2);
  whichOpen=obj2;
  whichContinue='';
}
}
</script>
  <script language=javascript>
  var whichOpen="";
  var whichContinue='';
      </script>
</head>
<body leftmargin="0" topmargin="0" bgcolor="#FF9800">
      <table cellSpacing=0 cellPadding=0 width=158 align=center>
        <tbody>
        <tr style="CURSOR: pointer">
            <td class=menu_title id=menuTitle2 
          onmouseover="this.className='menu_title2';" 
          onclick=menuChange(menu2,30,menuTitle2); 
          onmouseout="this.className='menu_title';" 
          bgcolor=blue 
            height=25><span>A</span> </td>
          </tr>
        <tr>
            <td valign="middle" > 
              <div class=sec_menu id=menu2 
            style="DISPLAY: none; FILTER: alpha(Opacity=0); WIDTH: 158px; HEIGHT: 0px">
                <table  cellSpacing=2 cellPadding=0 width=135 align=center>
                  <tr> 
                    <td style="height: 25px"><a href="#" target="BoardList">ccc</a></td>
                  </tr>
                     <tr> 
                    <td style="height: 25px"><a href="#" target="BoardList">ddd</a></td>
                  </tr>
                </table>
              </div></td></tr></tbody></table>
      <br>
      <table cellSpacing=0 cellPadding=0 width=158 align=center>
        <tbody>
          <tr style="CURSOR: pointer"> 
            <td class=menu_title id=menuTitle4 
          onmouseover="this.className='menu_title2';" 
          onclick=menuChange(menu4,30,menuTitle4); 
          onmouseout="this.className='menu_title';" 
           bgcolor=blue 
            height=25><span>B</span> </td>
          </tr>
          <tr> 
            <td valign="middle"> <div class=sec_menu id=menu4 
            style="DISPLAY: none; FILTER: alpha(Opacity=0); WIDTH: 158px; HEIGHT: 0px"> 
                <table  cellSpacing=2  cellPadding=0 width=135 align=center>           
                 <tr> 
                      <td style="height: 25px"><a href="#" target="BoardList">aaa</a></td>
                    </tr>
                     <tr> 
                      <td style="height: 24px"><a href="#" target="BoardList">bbb</a></td>
                    </tr>
                  
                </table>
              </div></td>
          </tr>
        </tbody>
      </table>           
</body>   
</html>
经测试IE上能用,火狐不支持,怎么改才会都能用?

解决方案 »

  1.   

    利用OWC制作Excel中的柱形图、饼形图、折线图的源代码,绝对经典http://www.it846.com/chart
      

  2.   

    火狐里没有pixelHeight这个属性
      

  3.   

    先参考楼上的,有些层div操作在火狐浏览器里面还是有缺陷的
      

  4.   

    你把JS贴到DW里去看,哪些标签在哪个浏览器不被介持马上就出来了.
      

  5.   

        * wjcking
        *
        * 等 级:
    发表于:2007-10-05 16:24:263楼 得分:0
    先参考楼上的,有些层div操作在火狐浏览器里面还是有缺陷的============================
    是 IE 有缺陷~
      

  6.   

    chuzhaowei: 垃圾
    收费的!!
      

  7.   

    IE 火狐~~~IE的一些新技术狐狸都不支持的.我都还在等.
      

  8.   

    目前最主要还是先考虑符合IE,毕竟IE的市场还是最大的
      

  9.   

    function menuShow(obj, maxh, obj2) {
        if (Number(obj.style.height.replace('px', '')) < maxh) {
            obj.style.height = (Number(obj.style.height.replace('px', '')) + maxh / 10) + 'px';
            if (document.all)
                obj.filters.alpha.opacity += 10;
            else
                obj.style.opacity = Number(obj.style.opacity) + 0.1;
            obj2.background = "images/title_bg_hide.gif";
            if (Number(obj.style.height.replace('px', '')) == maxh / 10)
                obj.style.display = 'block';
            myObj = obj;
            myMaxh = maxh;
            myObj2 = obj2;
            setTimeout(function() { menuShow(myObj, myMaxh, myObj2) }, 5);
        }
    }
    function menuHide(obj, maxh, obj2) {
        if (Number(obj.style.height.replace('px', '')) > 0) {
            if (Number(obj.style.height.replace('px', '')) == maxh / 5)
                obj.style.display = 'none';
            obj.style.height = (Number(obj.style.height.replace('px', '')) - maxh / 5) + 'px';
            if (document.all)
                obj.filters.alpha.opacity -= 20;
            else
                obj.style.opacity = Number(obj.style.opacity) - 0.2;
            obj2.background = "images/title_bg_show.gif";
            myObj = obj;
            myMaxh = maxh
            myObj2 = obj2;
            setTimeout(function() { menuHide(myObj, myMaxh, myObj2) }, 5);
        }
        else
            if (whichContinue != '' && whichContinue != null)
            whichContinue.click();
    }
    function menuChange(id1, maxh, id2) {
        var obj = document.getElementById(id1);
        var obj2 = document.getElementById(id2);
        if (Number(obj.style.height.replace('px', '')) != 0) {
            menuHide(obj, maxh, obj2);
            whichOpen = '';
            whichcontinue = '';
        }
        else
            if (whichOpen != '' && whichOpen != null) {
            whichContinue = obj2;
            whichOpen.click();
        }
        else {
            menuShow(obj, maxh, obj2);
            whichOpen = obj2;
            whichContinue = '';
        }
    }调用:menuChange('id1', 130, 'id2')