js弹出放大图

<script type="text/javascript">
            function openpic(url){
                OpenWindow = window.open("",'newwindow','height=800,width=500,top=200,left=400,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no') ;
                OpenWindow.document.write("<HTML><TITLE>大图</TITLE>")
                OpenWindow.document.write("<BODY BGCOLOR=#ffffff>")
                OpenWindow.document.write("<img src="+url+" width=500 height=600>")
                OpenWindow.document.write("</BODY>")
                OpenWindow.document.write("</HTML>")
                OpenWindow.document.close()
            }
</script>

 

posted @ 2015-06-12 00:35  洒洒  阅读(398)  评论(0编辑  收藏  举报