这个是提示安装浏览器插件,与js没啥关系,当然js可以加载它,但插件本身和js没关系

解决方案 »

  1.   

    <!DOCTYPE html>
    <html>
    <head>
        <title></title>    <style>
            #notice {background-color: #FFFF99;color: #990033;position: fixed;top:0;left:0;z-index: 10000;border: 1px solid red;width:100%;height:30px;text-align: center;line-height: 30px;}
            #close{float: right;cursor: pointer;margin-right: 30px}
            #others{border: 1px solid red;height:5999px;margin: 30px}
        </style>
        <script src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
        <script >
            $(function(){
                $("#close").bind("click",function(){                $("#notice").hide();
                })
            })
        </script>
    </head>
    <body>
    <div id="notice">还在用ie6?你out啦!!点击下载<a href="sss">firefox</a>浏览器了!<span id="close">x</span></div>
    <div id="others">这里是其他内容<br><br><br><br>这里是其他内容2<br><br><br><br>这里是其他内容3<br><br><br><br><br>这里是其他内容4<br><br><br><br>这里是其他内容5<br><br><br><br>这里是其他内容6<br><br><br><br>这里是其他内容7<br><br><br><br></div>
    </body>
    </html>