Maison > php教程 > php手册 > le corps du texte

弹出窗口 PHP

PHP中文网
Libérer: 2016-06-06 20:01:08
original
1197 Les gens l'ont consulté

弹出窗口

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');
        }
Copier après la connexion

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


Étiquettes associées:
source:php.cn
Déclaration de ce site Web
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
Recommandations populaires
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!