JavaScript实现模态对话框

August 10, 2010 | tags    | views
Comments 0

<script type="text/javascript">   
function openWin(src, width, height, showScroll){   
window.showModalDialog  
(src,"","location:No;status:No;help:No;dialogWidth:"+width+";dialogHeight:"+height+";scroll:"+showScroll+";");   
}   
</script>  

例:<span style="CURSOR: pointer" onclick="openWin  
(’http://www.zjsyc.com’, ’500px’, ’400px’, ’no’)">点击</span>



文章本月排行 文章本年排行
   



发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。