弹出窗口 PHP

PHP中文网
リリース: 2016-06-06 20:01:08
オリジナル
1197 人が閲覧しました

弹出窗口

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


関連ラベル:
ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のおすすめ
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!