怎么弹出对话框

来源:百度知道 编辑:UC知道 时间:2024/06/19 18:36:26
我 想当在网业中打开一个连接弹出一个 400*500大小的 对话框怎么打开,
只是一个对话框 不要菜单栏

<html>
<style>
*{ padding:0; margin:0; font-size:12px;}
#bg{background:#000000;opacity: 0.5;-moz-opacity:0.5; filter:alpha(opacity=50); width:100%; height:100%;position:absolute; top:0; left:0}
#info{height:0px; width:0px;top:20%; left:50%;position:absolute; line-height:1.7}
#center{background:#fff;border:1px solid #217AC1; width:400px; height:500px; position:absolute; margin:-50px -150px;}
#center strong{ display:block; padding:2px 5px; background:#EBF4FC; color:#519FEE;}
#center p{padding:10px; text-align:center; color:#1C6FB8;}
</style>
<body>
<span id="boxs"></span>
<a href="javascript:boxs(1);">点击这里打开对话框</a>
<script>
function boxs(v){
window.scrollTo(0,0);
var bo = document.getElementsByTagName('body')[0];
var ht = document.getElementsByTagName('html')[0];
var boht = document.getElementById('boxs')