Home > php教程 > php手册 > 弹出窗口 PHP

弹出窗口 PHP

PHP中文网
Release: 2016-06-06 20:01:08
Original
1259 people have browsed it

弹出窗口

function PopupCenterWindow(url, name, width, height, scroll) { 
var win = null; var left = (screen.width - width) / 2; 
var top = (screen.height - height) / 2;
 var features = 'height=' + height + ','; 
 features += 'width=' + width + ','; feat
 
        function PopupCenterWindow(url, name, width, height, scroll)
        {
            var win = null;
            var left = (screen.width - width) / 2;
            var top = (screen.height - height) / 2;
            var features = 'height=' + height + ',';
            features += 'width=' + width + ',';
            features += 'top=' + top + ',';
            features += 'left=' + left + ',';
            features += 'scrollbars= ' + scroll + ',';
            features += 'resizable=no';
            win = window.open(url, name, features);
            if (parseInt(navigator.appVersion) >= 4)
            {
                win.window.focus();
            }
            return win;
        }
 
        function showUploadWindow(picname)
        {
            var openWindow = PopupCenterWindow('ModifyPic.aspx?picname='+picname, 
            'UploadPicture', '347', '150', 'no');
        }
Copy after login

 以上就是弹出窗口 PHP的内容,更多相关内容请关注PHP中文网(www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template