유투브 동영상 노출 시 자동 실행 또는 자동 종료 소스입니다.
유튜브 동영상 레이어 팝업에 넣은 후 자스로 제어하기
유투브 동영상 버튼 클릭 시 레이어 뜨면서 자동실행
또는 종료버튼 클릭 시 자동으로 종료하는 소스 입니다.
유튜브 동영상은 유튜브 주소에 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 부분을 새로 넣어 줌으로
유투브 동영상을 시작과 종료를 할 수 있어요
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 409 | ||
| 7929 | 9년 전 | 327 | ||
| 7928 | 9년 전 | 418 | ||
| 7927 | 9년 전 | 332 | ||
| 7926 | 9년 전 | 665 | ||
| 7925 | 9년 전 | 350 | ||
| 7924 | 9년 전 | 336 | ||
| 7923 | 9년 전 | 338 | ||
| 7922 | 9년 전 | 377 | ||
| 7921 | 9년 전 | 396 | ||
| 7920 | 9년 전 | 321 | ||
| 7919 | 9년 전 | 333 | ||
| 7918 | 9년 전 | 488 | ||
| 7917 | 9년 전 | 327 | ||
| 7916 | 9년 전 | 404 | ||
| 7915 | 9년 전 | 401 | ||
| 7914 | 9년 전 | 412 | ||
| 7913 | 9년 전 | 569 | ||
| 7912 | 9년 전 | 417 | ||
| 7911 | 9년 전 | 363 | ||
| 7910 | 9년 전 | 408 | ||
| 7909 | 9년 전 | 505 | ||
| 7908 | 9년 전 | 427 | ||
| 7907 | 9년 전 | 370 | ||
| 7906 | 9년 전 | 391 | ||
| 7905 | 9년 전 | 372 | ||
| 7904 | 9년 전 | 354 | ||
| 7903 | 9년 전 | 344 | ||
| 7902 | 9년 전 | 561 | ||
| 7901 |
|
9년 전 | 731 | |
| 7900 | 9년 전 | 585 | ||
| 7899 | 9년 전 | 380 | ||
| 7898 | 9년 전 | 384 | ||
| 7897 | 9년 전 | 342 | ||
| 7896 | 9년 전 | 357 | ||
| 7895 | 9년 전 | 465 | ||
| 7894 | 9년 전 | 388 | ||
| 7893 | 9년 전 | 335 | ||
| 7892 | 9년 전 | 392 | ||
| 7891 | 9년 전 | 764 | ||
| 7890 | 9년 전 | 1196 | ||
| 7889 | 9년 전 | 744 | ||
| 7888 |
limsy1987
|
9년 전 | 544 | |
| 7887 | 9년 전 | 545 | ||
| 7886 | 9년 전 | 436 | ||
| 7885 | 9년 전 | 404 | ||
| 7884 | 9년 전 | 407 | ||
| 7883 | 9년 전 | 398 | ||
| 7882 | 9년 전 | 449 | ||
| 7881 | 9년 전 | 438 | ||
| 7880 | 9년 전 | 562 | ||
| 7879 | 9년 전 | 459 | ||
| 7878 | 9년 전 | 1216 | ||
| 7877 | 9년 전 | 746 | ||
| 7876 | 9년 전 | 484 | ||
| 7875 | 9년 전 | 558 | ||
| 7874 |
|
9년 전 | 807 | |
| 7873 | 9년 전 | 518 | ||
| 7872 | 9년 전 | 673 | ||
| 7871 | 9년 전 | 478 | ||
| 7870 | 9년 전 | 606 | ||
| 7869 | 9년 전 | 435 | ||
| 7868 | 9년 전 | 442 | ||
| 7867 | 9년 전 | 423 | ||
| 7866 | 9년 전 | 485 | ||
| 7865 | 9년 전 | 453 | ||
| 7864 | 9년 전 | 512 | ||
| 7863 | 9년 전 | 506 | ||
| 7862 | 9년 전 | 463 | ||
| 7861 | 9년 전 | 630 | ||
| 7860 | 9년 전 | 621 | ||
| 7859 | 9년 전 | 408 | ||
| 7858 | 9년 전 | 702 | ||
| 7857 | 9년 전 | 1073 | ||
| 7856 | 9년 전 | 520 | ||
| 7855 | 9년 전 | 750 | ||
| 7854 | 9년 전 | 729 | ||
| 7853 | 9년 전 | 579 | ||
| 7852 | 9년 전 | 508 | ||
| 7851 | 9년 전 | 505 | ||
| 7850 | 9년 전 | 583 | ||
| 7849 | 9년 전 | 356 | ||
| 7848 | 9년 전 | 410 | ||
| 7847 | 9년 전 | 651 | ||
| 7846 | 9년 전 | 454 | ||
| 7845 | 9년 전 | 414 | ||
| 7844 | 9년 전 | 390 | ||
| 7843 | 9년 전 | 414 | ||
| 7842 | 9년 전 | 398 | ||
| 7841 | 9년 전 | 382 | ||
| 7840 | 9년 전 | 405 | ||
| 7839 | 9년 전 | 434 | ||
| 7838 | 9년 전 | 518 | ||
| 7837 | 9년 전 | 356 | ||
| 7836 | 9년 전 | 397 | ||
| 7835 | 9년 전 | 472 | ||
| 7834 |
|
9년 전 | 1192 | |
| 7833 | 9년 전 | 426 | ||
| 7832 | 9년 전 | 414 | ||
| 7831 | 9년 전 | 560 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기