您的位置:首页 > Web前端 > JavaScript

js弹出放大图

2015-06-12 00:35 531 查看
<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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: