회원가입아이디/비번찾기
실시간 TV
홈으로
팝업창으로동영상보여주기좋은소스(확대,축소,전체) - 브라우저제어
홈페이지홈페이지 19년 전
<html>
<head>
<title>script.ne.kr-팝업창으로동영상보여주기좋은소스(확대,축소,전체)-브라우저제어</title>

<script language="JavaScript">
//화면축소 확대가 지정되는부분
var checkNum;
checkNum=0;

function screenMng(add){
        checkNum+=add
        if(checkNum==1)
        {
                document.WMPlayer.width = 540; // width 미디어창의크기
                document.WMPlayer.height = 472; // height 미디어창의크기
                self.resizeTo(600,662); // 브라우저의 크기
                  self.moveTo(0,0); // 팝업창이 위치하는속성
        }
        else if(checkNum==2)
        {
                document.WMPlayer.width = 630;
                document.WMPlayer.height = 534;
                self.resizeTo(690,724);
                  self.moveTo(0,0);
        }
        else if(checkNum==3)
        {
                document.WMPlayer.width = 675;
                document.WMPlayer.height = 615;
                self.resizeTo(780,805);
                  self.moveTo(0,0);
        }
        else if(checkNum==4)
        {
                checkNum=3;
        }
        else if(checkNum==0)
        {
                document.WMPlayer.width = 450;
                document.WMPlayer.height = 410;
                window.self.resizeTo(510,600);
                  self.moveTo(0,0);
        }
        else if(checkNum==-1)
        {
                document.WMPlayer.width = 360;
                document.WMPlayer.height = 328;
                window.self.resizeTo(450,518);
                  self.moveTo(0,0);

        }
        else if(checkNum==-2)
        {
                document.WMPlayer.width = 270;
                document.WMPlayer.height = 246;
                self.resizeTo(360,436);
                  self.moveTo(0,0);

        }
        else if(checkNum==-3)
        {
                checkNum=-2
        }
}
function normalScreen(){
                document.WMPlayer.width = 450;
                document.WMPlayer.height = 410;
                self.resizeTo(510,600);
                  self.moveTo(0,0);

                checkNum=0;
}
function fullScreen(){
        document.WMPlayer.DisplaySize = 3
}

//-->
</script>

</head>
<body onload='screenMng(0)' LEFTMARGIN='0' TOPMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0'>

<p align=center>
<b>확대나 축소를 여러번누르면 <head>안의 script에 지정된 속성으로 계속 커집니당. *^^*</b>
<br>

                        <OBJECT ID=WMPlayer Name=WMPlayer classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"  
                                codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
                                standby="Loading Microsoft Windows Media Player components..."  
                                type="application/x-oleobject"
                                bgcolor="#000000" width="450" height="410">
                                <param name="Filename" value="http://www.script.ne.kr/music/019-100.wmv">
                                <param name="AllowScan" value="-1">
                                <param name="AllowChangeDisplaySize" value="1">
                                <param name="AnimationAtStart" value="1">
                                <param name="AudioStream" value="1">
                                <param name="AutoStart" value="1">
                                <param Name="AutoSize" Value="0">
                                <param name="AutoResize" value="1">
                                <param name="AutoRewind" value="0">
                                <param name="Balance" value="0">
                                <param name="BaseURL">
                                <param name="BufferingTime" value="5">
                                <param name="CaptioningID">
                                <param name="ClickToPlay" value="-1">
                                <param name="CursorType" value="0">
                                <param name="CurrentPosition" value="-1">
                                <param name="CurrentMarker" value="0">
                                <param name="DefaultFrame">
                                <param name="DisplayBackColor" value="0">
                                <param name="DisplayForeColor" value="16777215">
                                <param name="DisplayMode" value="0">
                                <param name="DisplaySize" value="2">
                                <param name="Enabled" value="-1">
                                <param name="EnableContextMenu" value="0">
                                <param name="EnablePositionControls" value="-1">
                                <param name="EnableFullScreenControls" value="-1">
                                <param name="EnableTracker" value="-1">
                                <param name="InvokeURLs" value="-1">
                                <param name="Language" value="-1">
                                <param name="PlayCount" value="1">
                                <param name="PreviewMode" value="0">
                                <param name="Rate" value="1">
                                <param name="SAMILang">
                                <param name="SAMIStyle">
                                <param name="SAMIFileName">
                                <param name="SelectionStart" value="-1">
                                <param name="SelectionEnd" value="-1">
                                <param name="SendOpenStateChangeEvents" value="-1">
                                <param name="SendWarningEvents" value="-1">
                                <param name="SendErrorEvents" value="-1">
                                <param name="SendKeyboardEvents" value="1">
                                <param name="SendMouseClickEvents" value="1">
                                <param name="SendMouseMoveEvents" value="1">
                                <param name="SendPlayStateChangeEvents" value="-1">
                                <param name="ShowCaptioning" value="0">
                                <param name="ShowControls" value="1">
                                <param name="ShowAudioControls" value="-1">
                                <param name="ShowDisplay" value="0">
                                <param name="ShowGotoBar" value="0">
                                <param name="ShowPositionControls" value="1">
                                <param name="ShowStatusBar" value="-1">
                                <param name="ShowTracker" value="1">
                                <param name="TransparentAtStart" value="-1">
                                <param name="VideoBorderWidth" value="0">
                                <param name="VideoBorderColor" value="0">
                                <param name="VideoBorder3D" value="0">
                                <param name="Volume" value="600">
                                <param name="WindowlessVideo" value="0">

                        </OBJECT>

<BR>

<input type='button' onclick='screenMng(-1)' value='화면축소'>
<input type='button' onclick='normalScreen()' value='일반화면'>
<input type='button' onclick='fullScreen()' value='전체화면'>
<input type='button' onclick='screenMng(1)' value='화면확대'>

</p>

</body>

</html>
추천추천 : 445 추천 목록
번호 제목
2,885
 input 입력 필드 앞뒤 공백 실시간 제거
2,884
 Placeholder 포커스시 감추기
2,883
 MySQL 중복된 데이터를 삭제
2,882
 MySQL 중복 데이터 확인
2,881
 sessionStorage.getItem 와 sessionStorage.setItem
2,880
 제이쿼리 랜덤으로 배경색 변경
2,879
 preg match에 관한 정규식
2,878
 Stream an audio file with MediaPlayer 오디오 파일 스트리밍 하기
2,877
 Audio Streaming PHP Code
2,876
 PHP $ SERVER 환경 변수 정리
2,875
 Vimeo (비메오) API 를 사용하여 플레이어 컨트롤하기
2,874
 iframe 사용시 하단에 발생하는 공백 제거방법
2,873
 아이프레임(iframe) 전체화면 가능하게 하기
2,872
 부트스트랩(bootstrapk)에서 사용하는 class명 정리
2,871
 부트스트랩 CSS
2,870
 크롬에서 마진 조절
2,869
 PHP 현재 페이지의 도메인명이나 url등의 정보 알아오기
2,868
 PHP preg match all()
2,867
 PHP 로 웹페이지 긁어오기 모든 방법 총정리!
2,866
 [PHP] 원격지 파일 주소 노출 안하고 curl로 다운로드 받기
2,865
 PHP 함수 정리
2,864
 아이프레임(iframe) 비율 유지하면서 크기 조절하는 방법
2,863
 PHP 배열에서 무작위로 하나 뽑아주는 array rand() 함수
2,862
 PHP 정규식 정리
2,861
 PHP 정규식을 활용한 태그 및 특정 문자열 제거 및 추출 방법
2,860
 php 크롤링 또는 파싱 함수, 정규식 모음
2,859
 제이쿼리 기본 명령어
2,858
 웹페이지 가로 모드세로 모드 인식하기
2,857
 모바일 웹 화면 강제 회전(가로모드 고정)
2,856
 [HTML5]에서 frameset 대체 방법과 iframe 속성
목록
뮤직트로트 부산광역시 부산진구 가야동 ㅣ 개인정보취급방침
Copyright ⓒ musictrot All rights reserved.