JS AND VS 在理论上是可以互换的。最好用同一种语言。用两个,我还没有试过,关注之中。--------------------
 与人玫瑰,手有余香 
--------------------

解决方案 »

  1.   

    <script Language='JavaScript'>
    function window.onbeforeunload()
    {
    if (event.clientX>document.body.clientWidth-20 && event.clientY<0||event.altKey)
      window.event.returnValue = execScript('removeUserFromRoom()','vbscript');
    }
    </script>
      

  2.   

    来清除Application中的垃圾?!
    不能在客户端直接调服务段函数
    可以<body onunload=form1.submit()>
    <form name=form1 action=clear.asp>
    ...</form>
    在clear.asp中来调
      

  3.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD><script language="vbscript">
    Function FormatNumberShow(ByVal num)
    FormatNumberShow="0.00"
    On Error Resume Next
    num=cdbl(num)
    if Err.number<>0 then exit function

    num=Int(num*100+0.5)/100
    Dim iSymbol
    if num<0 then
    iSymbol=-1
    num=-1*num
    else
    iSymbol=1
    end if
    if num<0.01 then exit function
    FormatNumberShow=formatnumber(num*iSymbol,-1,-1,0,-1)

    End Function
    </script>
    <script language="javascript">
       ret=50/3
       alert(FormatNumberShow(ret))
    </script>
    <BODY></BODY>
    </HTML>
      

  4.   

    现在已经处理好了。我是在关闭页面的时候Location一个页面,然后在那个页面中运得服务器端程序(VBScript代码),就可以清除垃圾了。感谢各位的回复。