<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "동영상URL",
image: "/uploads/myPoster.jpg",
width:580,
height:366
});
</script>
<a onclick="동영상URL">동영상보기</a>
a링크를 클릭했을때 동영상이 재생되게 할려면 코드를 어떻게 작성하면 되나요 ㅜㅜ
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
smileesh
2014-06-23 (월) 13:22:45
Copy
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
function loadMovie(url)
{
jwplayer("myElement").setup({ file: url, image: "/uploads/myPoster.jpg", width:580, height:366
});
}
</script>
<a onclick="loadMovie('동영상 url')">동영상보기</a>
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.