Heim  >  Artikel  >  php教程  >  弹出窗口 PHP

弹出窗口 PHP

PHP中文网
PHP中文网Original
2016-06-06 20:01:081190Durchsuche

弹出窗口

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)!


Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:百度世界之窗Nächster Artikel:C# 对文件操作自我总结