CS中javascript看不懂,有没有学习资料,

解决方案 »

  1.   

    window.opener.parent.  可以设置父页的属性
      

  2.   

    在 弹出窗口 的 onload 中设置
    window.opener.parent.背景颜色 = ‘’
      

  3.   

    用document.createElement("DIV")创建一个DIV,设置DIV的宽度和高度为100%,放在最顶层,设置透明度
      

  4.   

    其实有个很取巧的办法
    在父页面放置一个隐藏的层,高度和宽度都设置为100%,在层中放置一个半透明的Flash,高度和宽度也是100%
    当弹出页面后,子页面再触发父页面的隐藏层显示事件
    子页面关闭后,再重新隐藏层就可以了给你写一个吧,javascript事件自己补充!
    <div id="disableBG" style=" display:none;cursor:wait; position:absolute;left:0;top:0;width:100%;height:100%;background:url();" oncontextMenu="return false">
       <embed src="../theme/images/dlg_bg.swf" quality=high scale=noborder wmode=transparent style=width:100%;height:100%;position:absolute;left:0;top:0 align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash />
    </div>
      

  5.   

    function createModalLayer() {
    var modalLayer = document.createElement('DIV');
    modalLayer.style.position = 'absolute';
    modalLayer.style.left = '0px';
    modalLayer.style.top = '0px';
    modalLayer.style.width = '100%';
    modalLayer.style.height = document.body.clientHeight;
    modalLayer.style.backgroundColor = this.options.modalLayerColor;

    if(Cyber.ie5) {
    modalLayer.style.filter = "alpha(opacity=80)";
    }
    else {
    modalLayer.style.MozOpacity = .8;
    }

    return modalLayer;
    },
      

  6.   

    在 弹出窗口 的 onload 中设置
    window.opener.parent.背景颜色 = ‘’