能不能实现在点击了一个按钮之后,在click事件中用if,else判断好了然后自动在右下角弹出一个提示框,并自动消失呢??找了好多资料都没有实现这个效果,望高手指点下啊

解决方案 »

  1.   

    Thread.Sleep(1000);  用这个看可以吗?
      

  2.   

    http://blog.csdn.net/qiuzhengxiang/archive/2008/08/27/2840596.aspx
    是这样的效果吗??
      

  3.   

    这个可以,你看符合要求不
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>右下角弹出框</title>
    </head>
    <style type="text/css">
    #rbbox{position:absolute;right:0;bottom:0;width:300px;height:0px;overflow:hidden}
    .button{display:inline;float:right;font-size:12px;cursor:pointer}
    </style><body>
    <div id="rbbox"><a class="button" onclick="closeBox()">关闭</a><iframe src="http://kyouj.com/3/" frameborder="0" height="190" width="300" scrolling="no"></iframe></div>
    </body>
    </html>
    <script language="javascript" type="text/javascript">
    window.onload=function(){showBox();setTimeout("closeBox()",5000)}
    function showBox(o){
    if (o==undefined) o=document.getElementById("rbbox");
    o.style.height=o.clientHeight+2+"px";
    if (o.clientHeight<200) setTimeout(function(){showBox(o)},5);
    }
    function closeBox(){document.getElementById("rbbox").style.display="none";}
    </script>