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>

 

你可能感兴趣的:(js)