求弹层的js,层在右下角弹层,层是自动生成的,可以连续弹层几个,在线等

解决方案 »

  1.   

    这个用jquery做的<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>弹出窗口</title>
    <style type="text/css">
    <!--
    #window {
    border:1px green solid;
    position:absolute;
    right:1px;
    bottom:1px;
    width:260px;
    height:180px;
    display:none;
    }

    #title {
    background-color:#09F;
    padding:6px;
    }

    #content {
    padding:6px;
    }

    #close {
    float:right;
    cursor:pointer;
    }
    -->
    </style>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript">
    <!--
    function showWindow(){
    $('#window')
    .fadeIn('slow');
    }

    function hideWindow(){
    $('#window').fadeOut('slow');
    }
    //-->
    </script>
    </head><body>
    <a href="#" onclick="showWindow()">点击弹出窗口</a>
    <div id="window">
         <div id="title">窗口标题<span id="close" onclick="hideWindow()">X</span></div>
            <div id="content">这里是窗口内容<br />这里是窗口内容<br />这里是窗口内容<br /></div>
        </div>
    </body>
    </html>