易心博客网->技术文章->无边框对话框窗口可以在myie中弹出
本文引用地址:http://www.ex123.net/tb.asp?id=69
****************************************************************
本作品来自网络,版权归原作者所有。如有异议,请留言。
****************************************************************
<script Language="JavaScript">
function 页面名称(WINwidth, WINheight) {
        showx = event.screenX - event.offsetX - 4 - WINwidth ; // + deltaX;
        showy = event.screenY - event.offsetY + 18; // + deltaY;

        newWINwidth = WINwidth + 4 + 18;
        var features =
                'dialogWidth:'  + newWINwidth  + 'px;' +
                'dialogHeight:' + WINheight + 'px;' +
                'dialogLeft:'   + showx     + 'px;' +
                'dialogTop:'    + showy     + 'px;' +
                'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:no;Resizeable=no';

        var endtarget = "弹出页面.htm";

//        window.open(endtarget, '', '');
        window.showModalDialog(endtarget, " ", features);
}
</script>
<input name="image" type=image onClick="页面名称(230, 35);return false;" src="代替按扭的图片.gif" alt="鼠标经过显示的文字" width="16" height="16" >
相关日志:弹出窗口 
查看回复 回复日志 

copyright©ex123.net 2005冀ICP备05025454号