1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

????????????

Discussion in '前端开发' started by 禾子, Apr 10, 2006.

  1. 禾子

    禾子 New Member

    Joined:
    Jan 7, 2006
    Messages:
    45
    Likes Received:
    0
    <script>
    function openlog()
    {
    window.open('fwzx.htm','','height=250,width=350,status=yes,toolbar=yes,menubar=no,location=no');
    }
    </script>
    我在head这样写的
    我在body写成这样<a href="javascript:eek:penlog();">在线咨询</a>



    可是为什么我点击在线咨询的时候,它说的我的路径错误????????????
     
  2. 禾子

    禾子 New Member

    Joined:
    Jan 7, 2006
    Messages:
    45
    Likes Received:
    0
    <script>
    function openlog()
    {
    window.open('fwzx.htm','','height=250,width=350,status=yes,toolbar=yes,menubar=no,location=no');
    }
    </script>
    我在head这样写的
    我在body写成这样<a href="javascript:eek:penlog();">在线咨询</a>



    可是为什么我点击在线咨询的时候,它说的我的路径错误????????????
     
  3. 老林

    老林 New Member

    Joined:
    Sep 6, 2005
    Messages:
    10,580
    Likes Received:
    36
    没看出哪里没有错~:confused:
     
  4. 禾子

    禾子 New Member

    Joined:
    Jan 7, 2006
    Messages:
    45
    Likes Received:
    0
    那是为什么呢??????????????
     
  5. 不学无术

    不学无术 Ulysses 的元神

    Joined:
    Aug 31, 2005
    Messages:
    16,714
    Likes Received:
    39
    你的 fwzx.htm 这个页面和当前页面在同一目录下?

    另外不知道你说的在 body 是什么意思。
     
  6. gojorare

    gojorare New Member

    Joined:
    Mar 5, 2006
    Messages:
    87
    Likes Received:
    0
    他可能是写在<body></body>之间的意思吧

    'fwzx.htm'一定要和你写这个网页保存在同一目录下的,如果怕麻烦的话,就用绝对路径呗~