Maison  >  Article  >  php教程  >  弹出窗口 PHP

弹出窗口 PHP

PHP中文网
PHP中文网original
2016-06-06 20:01:081192parcourir

弹出窗口

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');
        }

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


Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Article précédent:百度世界之窗Article suivant:C# 对文件操作自我总结