window.open('xxx.htm','newwin','toolbars=no,menubars=no')

解决方案 »

  1.   

    http://www.moon-soft.com/book/javascripths.htm
    有详细的教程
    :)
      

  2.   

    我找了些类似windows.open的方法,
    但不知道怎么用在我那段代码里面,
    好心人,帮我看看!
      

  3.   

    function OpenS(){
    document.open('index2.asp','blank','fullscreen=yes,channelmode=yes,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,top=0,false');
    }
    完整的open参数~
    一般在一个东西的 onClick事件里面 调用函数~只是方法的其中之一
      

  4.   

    我很菜,也很笨,
    各位能不能说明白些啊,
    那两个链接在document.write()里面,
    要怎么弄啊!
      

  5.   

    你这样用,它会清空你当前的文档的,document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br>
      <a target=blank href=http://www.sohu.com>搜狐</a><br>
      <a target=blank href=http://www.sina.com>新浪</a></layer>")可以这样吧,
    --------------------------
    js.js 
    function ow(u){
            window.open(u,'win','width=100,height=100,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes');
    }------------------------
    document.write("<script" + " src='js.js'></script" + ">");
    document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br>
      <a target=blank href=javascript:ow('http://www.sohu.com')>搜狐</a><br>
      

  6.   

    qidizi(qidizi) 
    我照你的做了,但是好像不行,
    点链接后弹出的网页显示“找不到服务器”
    地址栏显示是:javascript:ow('http://www.sohu.com')
    我找不到原因。请再指点指点。
      

  7.   

    xxx.htm
    ======================================
    <script language ='javascript'>
    <!--function window.onload(){
     document.write("<script" + " src='ow.js'></script" + ">");
     document.write("<a href=javascript:ow('http://www.sohu.com')>搜狐</a><br>"
                 + "<a href=javascript:ow('http://www.f.com')>搜狐</a><br>")
    }
    //-->
    </script>======================================
    ow.js
    ===================
    function ow(u){
            window.open(u,'win','width=100,height=100,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes');
    }
      

  8.   

    我将你的代码改了一下,已经测试过了,好用的!!
    你试一下吧!!!
    <SCRIPT LANGUAGE=javascript>
    if (navigator.appName == "Netscape")
    {
      document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br><a  href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')>搜狐</a><br>  <a  href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')>新浪</a></layer>")
    qingzuiload()
    }
    else
    {
      document.write("<div id=qingzui style='position: absolute;width:70;top:300;hidden: visible;z-index: 1'><font color='red'  style='font-size: 12px;'>友情链接:</font><br><a  href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>搜狐</font></a><br><a  href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>新浪</font></a></div>" +"<div id=qingzui2 style='position: absolute;visibility: hidden;z-index: 10'> <font color='red'  style='font-size: 12px;'>友情链接:</font><br><a  href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>搜狐</font></a><br><a  href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')>新浪</font></a></div>");
     qingzuiload()
    }
    //-->
    </SCRIPT>