유투브 동영상 노출 시 자동 실행 또는 자동 종료 소스입니다.
유튜브 동영상 레이어 팝업에 넣은 후 자스로 제어하기
유투브 동영상 버튼 클릭 시 레이어 뜨면서 자동실행
또는 종료버튼 클릭 시 자동으로 종료하는 소스 입니다.
유튜브 동영상은 유튜브 주소에 autoplay=1을 하면 유튜브 동영상 노출 시 자동으로 동영상이 실행 되고
autoplay=0 하면 동영상 노출 시 동영상이 실행 되지 않는 것을 이용하여
레이어 팝업이 노출 되면 동영상 실행
레이어 팝업이 없어지면 동영상을 종료 하게 했습니다.
<div id="Ulayer" style="width:560px;height:335px;visibility:hidden;position:absolute;left:200px;top:400px;">
<span style="float:right;width:100px;height:20px;width:560px;text-align:right;padding-right:10px;font-weight:600;"><a href="javascript:;" onClick="UMOVEClose()">[닫기]</a></span>
<object width="560" height="315"><param id="umove1" name="movie" value="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed id="umove2" src="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
style일 때문에 복잡해 보이지만 유튜브 소스는 object로 시작하는 부분이죠.
아래는 자스 소스에요
function UMOVE(){
document.getElementById("Ulayer").style.visibility = "visible";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
}
function UMOVEClose(){
document.getElementById("Ulayer").style.visibility = "hidden";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
}
아이프레임에 src 부분을 새로 넣어 줌으로
유투브 동영상을 시작과 종료를 할 수 있어요
유투브 동영상 버튼 클릭 시 레이어 뜨면서 자동실행
또는 종료버튼 클릭 시 자동으로 종료하는 소스 입니다.
유튜브 동영상은 유튜브 주소에 autoplay=1을 하면 유튜브 동영상 노출 시 자동으로 동영상이 실행 되고
autoplay=0 하면 동영상 노출 시 동영상이 실행 되지 않는 것을 이용하여
레이어 팝업이 노출 되면 동영상 실행
레이어 팝업이 없어지면 동영상을 종료 하게 했습니다.
<div id="Ulayer" style="width:560px;height:335px;visibility:hidden;position:absolute;left:200px;top:400px;">
<span style="float:right;width:100px;height:20px;width:560px;text-align:right;padding-right:10px;font-weight:600;"><a href="javascript:;" onClick="UMOVEClose()">[닫기]</a></span>
<object width="560" height="315"><param id="umove1" name="movie" value="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed id="umove2" src="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
style일 때문에 복잡해 보이지만 유튜브 소스는 object로 시작하는 부분이죠.
아래는 자스 소스에요
function UMOVE(){
document.getElementById("Ulayer").style.visibility = "visible";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
}
function UMOVEClose(){
document.getElementById("Ulayer").style.visibility = "hidden";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
}
아이프레임에 src 부분을 새로 넣어 줌으로
유투브 동영상을 시작과 종료를 할 수 있어요
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6730 |
|
11년 전 | 1109 | |
| 6729 | 11년 전 | 565 | ||
| 6728 |
|
11년 전 | 579 | |
| 6727 | 11년 전 | 2424 | ||
| 6726 | 11년 전 | 598 | ||
| 6725 |
네모웹에이전시
|
11년 전 | 442 | |
| 6724 |
네모웹에이전시
|
11년 전 | 886 | |
| 6723 | 11년 전 | 1020 | ||
| 6722 | 11년 전 | 962 | ||
| 6721 | 11년 전 | 648 | ||
| 6720 | 11년 전 | 1977 | ||
| 6719 | 11년 전 | 2199 | ||
| 6718 | 11년 전 | 1103 | ||
| 6717 |
|
11년 전 | 660 | |
| 6716 | 11년 전 | 2311 | ||
| 6715 | 11년 전 | 7580 | ||
| 6714 | 11년 전 | 2049 | ||
| 6713 | 11년 전 | 782 | ||
| 6712 |
geektoo
|
11년 전 | 1158 | |
| 6711 | 11년 전 | 900 | ||
| 6710 |
sirzzang
|
11년 전 | 2130 | |
| 6709 |
bewitched
|
11년 전 | 1801 | |
| 6708 |
levin
|
11년 전 | 570 | |
| 6707 | 11년 전 | 768 | ||
| 6706 | 11년 전 | 1798 | ||
| 6705 | 11년 전 | 992 | ||
| 6704 |
|
11년 전 | 758 | |
| 6703 | 11년 전 | 417 | ||
| 6702 | 11년 전 | 1100 | ||
| 6701 | 11년 전 | 806 | ||
| 6700 | 11년 전 | 1721 | ||
| 6699 | 11년 전 | 716 | ||
| 6698 |
이박사친구
|
11년 전 | 730 | |
| 6697 | 11년 전 | 1219 | ||
| 6696 | 11년 전 | 620 | ||
| 6695 |
Header
|
11년 전 | 707 | |
| 6694 | 11년 전 | 1164 | ||
| 6693 |
|
11년 전 | 1115 | |
| 6692 | 11년 전 | 1151 | ||
| 6691 | 11년 전 | 1289 | ||
| 6690 |
|
11년 전 | 716 | |
| 6689 | 11년 전 | 896 | ||
| 6688 | 11년 전 | 935 | ||
| 6687 | 11년 전 | 535 | ||
| 6686 |
RGB255
|
11년 전 | 964 | |
| 6685 |
|
11년 전 | 640 | |
| 6684 | 11년 전 | 720 | ||
| 6683 | 11년 전 | 387 | ||
| 6682 | 11년 전 | 1131 | ||
| 6681 | 11년 전 | 1420 | ||
| 6680 | 11년 전 | 454 | ||
| 6679 |
RGB255
|
11년 전 | 397 | |
| 6678 | 11년 전 | 1352 | ||
| 6677 |
|
11년 전 | 444 | |
| 6676 | 11년 전 | 1018 | ||
| 6675 |
디자이너필이
|
11년 전 | 827 | |
| 6674 | 11년 전 | 1242 | ||
| 6673 | 11년 전 | 1315 | ||
| 6672 | 11년 전 | 6031 | ||
| 6671 | 11년 전 | 1340 | ||
| 6670 |
하프의정령
|
11년 전 | 571 | |
| 6669 | 11년 전 | 413 | ||
| 6668 |
공부하고가겠슴다
|
11년 전 | 452 | |
| 6667 |
하프의정령
|
11년 전 | 550 | |
| 6666 | 11년 전 | 790 | ||
| 6665 | 12년 전 | 1414 | ||
| 6664 | 12년 전 | 930 | ||
| 6663 | 12년 전 | 1156 | ||
| 6662 | 12년 전 | 412 | ||
| 6661 |
basketball
|
12년 전 | 507 | |
| 6660 | 12년 전 | 2510 | ||
| 6659 | 12년 전 | 1611 | ||
| 6658 |
|
12년 전 | 1335 | |
| 6657 |
|
12년 전 | 3160 | |
| 6656 | 12년 전 | 566 | ||
| 6655 |
프로프리랜서
|
12년 전 | 2334 | |
| 6654 |
프로프리랜서
|
12년 전 | 1912 | |
| 6653 |
프로프리랜서
|
12년 전 | 1746 | |
| 6652 |
프로프리랜서
|
12년 전 | 1831 | |
| 6651 |
|
12년 전 | 784 | |
| 6650 | 12년 전 | 1317 | ||
| 6649 | 12년 전 | 1318 | ||
| 6648 | 12년 전 | 813 | ||
| 6647 | 12년 전 | 3162 | ||
| 6646 | 12년 전 | 471 | ||
| 6645 | 12년 전 | 966 | ||
| 6644 |
BBAYOUNG
|
12년 전 | 1380 | |
| 6643 | 12년 전 | 1793 | ||
| 6642 | 12년 전 | 643 | ||
| 6641 | 12년 전 | 1333 | ||
| 6640 | 12년 전 | 707 | ||
| 6639 | 12년 전 | 2321 | ||
| 6638 |
jasmin2
|
12년 전 | 753 | |
| 6637 |
geektoo
|
12년 전 | 447 | |
| 6636 | 12년 전 | 667 | ||
| 6635 |
프로프리랜서
|
12년 전 | 2235 | |
| 6634 |
프로프리랜서
|
12년 전 | 1743 | |
| 6633 |
프로프리랜서
|
12년 전 | 4060 | |
| 6632 |
프로프리랜서
|
12년 전 | 1348 | |
| 6631 |
프로프리랜서
|
12년 전 | 1783 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기