这个论坛,用的是什么技术呀,左右两边好像不是同步的吧.点击中间的简头怎么把哪个屏面让屏幕变大,在一点击又变回来,这是都怎么实现的呀??

解决方案 »

  1.   

    看它页面的源代码就知道了,frameset
    切换:
    function shift_status()
    {
    var mainFrame = top.document.getElementsByName("main")[0];
    if(flag)
    {
    if(screen.width>1024) {
    //parent.main.cols = "453,9,*";
    mainFrame.cols = "453,9,*";
    } else if(screen.width>800) {
    //parent.main.cols = "453,9,*";
    mainFrame.cols = "453,9,*";
    } else {
    //parent.main.cols = "353,9,*";
    mainFrame.cols = "353,9,*";
    }
    document.getElementById("menuSwitch1").src='http://images.chinaren.com/product/aluclub/images/ej1_30.gif';
    document.getElementById("menuSwitch1").title='隐藏';
    }
    else
    {
    //parent.main.cols = "0,9,*";
    mainFrame.cols = "0,9,*";
    document.getElementById("menuSwitch1").src='http://images.chinaren.com/product/aluclub/images/ej1_32a.gif';
    document.getElementById("menuSwitch1").title='显示';
    } flag = !flag;
    }
      

  2.   

    框架哦^_^,左边的隐藏了,右边的就变到最大.在click事件里触发.