有声小说 > 其他小说 > 电脑十万个为什么 > 第54章
f(url.indexOf(&quotopup.ht")!=-1)  return  false;  //

    popup.ht  是广告页面。

    return  window.Xopen(url,na,par;

    }

    window.Xopen=window.open;

    window.open=SIt;

    //--&

    6)干掉包含指定名字的弹出窗口

    &;!--

    fun  SIt(url,na,par

    {

    if(na.indexOf("opup")!=-1)  return  false;  //广告窗口名字包含“opup”

    return  window.Xopen(url,na,'toolbar=1,location=1,directories=1,status=1,nubar=1,scrollbars=1,resizable=1');

    }

    window.Xopen=window.open;

    window.open=SIt;

    //--&

    135,Q:屏蔽  IE  的右键菜单,并定制自己的右键菜单

    A:

    #ie5nu

    {

    &nbsposition:absolute;

    width:150px;

    border:1px  solid  green;

    background-color:nu;

    font-faly:Verdan

    font-size:9pt;

    li:20px;

    cursor:hand;

    visibility:hidden;

    }

    .nuite

    {

    &nbspaddi:15px;

    &nbspadding-right:15px;

    }

    --&

    //set  this  variable  to  1  if  you  wish  the  URLs  of

    //the  highlighted  nu  to  be  dispyed  in  the  status  bar

    var  dispy_url=0

    fun  shownuie5()

    {

    var  rightedge=dot.body.tWidth-event.tX

    var  bottodge=dot.body.tHeight-event.tY

    if  (rightedge&;ie5nu.offsetWidth)

    ie5nu.style.left=dot.body.scrollLeft+event.tX-ie5nu.offsetWidth

    else

    ie5nu.style.left=dot.body.scrollLeft+event.tX

    if  (bottodge&;ie5nu.offsetHeight)

    ie5nu.style.top=dot.body.scrollTop+event.tY-ie5nu.offsetHeight

    else

    ie5nu.style.top=dot.body.scrollTop+event.tY

    ie5nu.style.visibility="visible"

    return  false

    }

    fun  hidenuie5()

    {

    ie5nu.style.visibility="hidden"

    }

    fun  highlightie5()

    {

    if(e