JavaScript 부분
동영상 삽입부분
동영상 컨트롤 부분
function vod(width,height,dir,autostart,uiMode){
document.write("<OBJECT ID='mPlayer' height='"+height+"' width='"+width+"' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>");
document.write("<param name='URL' value='"+dir+"'>");
document.write("<param name='DefaultFrame' value='Info'>");
document.write("<param name='AutoStart' value='"+autostart+"'>");
document.write("<param name='AllowScan' value='1'>");
document.write("<param NAME='AllowChangeDisplaySize' VALUE='1'>");
document.write("<param name='AutoSize' value='1'>");
document.write("<param NAME='AutoRewind' VALUE='1'>");
document.write("<param name='AutoResize' value='1'>");
document.write("<param NAME='EnableFullScreenControls' VALUE='1'>");
document.write("<param name='TransparentAtStart' value='1'>");
document.write("<param name='EnableContextMenu' value='1'>");
document.write("<param name='ShowPositionControls' value='1'>");
document.write("<param name='ShowStatusBar' value='0'>");
document.write("<param name='DisplaySize' value='4'>");
document.write("<param name='windowlessVideo' value='true' />");
document.write("<PARAM name='uiMode' value='"+uiMode+"'>");
document.write("<EMBED id='mPlayer' width='"+width+"' Height='"+height+"' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'");
document.write(" src='"+dir+"' ");
document.write(" DefaultFrame='Info'");
document.write(" AutoStart='"+autostart+"'");
document.write(" AllowScan='1'");
document.write(" AllowChangeDisplaySize='1'");
document.write(" AutoSize='false'");
document.write(" AutoRewind='1' ");
document.write(" AutoResize='1' ");
document.write(" EnableFullScreenControls='1' ");
document.write(" TransparentAtStart='1' ");
document.write(" EnableContextMenu='1' ");
document.write(" ShowPositionControls='1' ");
document.write(" ShowStatusBar='0' ");
document.write(" DisplaySize='4' ");
document.write(" uiMode='"+uiMode+"' ");
document.write(" windowlessVideo=true >");
document.write(" </EMBED>");
document.write("</OBJECT>");
}
document.write("<OBJECT ID='mPlayer' height='"+height+"' width='"+width+"' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>");
document.write("<param name='URL' value='"+dir+"'>");
document.write("<param name='DefaultFrame' value='Info'>");
document.write("<param name='AutoStart' value='"+autostart+"'>");
document.write("<param name='AllowScan' value='1'>");
document.write("<param NAME='AllowChangeDisplaySize' VALUE='1'>");
document.write("<param name='AutoSize' value='1'>");
document.write("<param NAME='AutoRewind' VALUE='1'>");
document.write("<param name='AutoResize' value='1'>");
document.write("<param NAME='EnableFullScreenControls' VALUE='1'>");
document.write("<param name='TransparentAtStart' value='1'>");
document.write("<param name='EnableContextMenu' value='1'>");
document.write("<param name='ShowPositionControls' value='1'>");
document.write("<param name='ShowStatusBar' value='0'>");
document.write("<param name='DisplaySize' value='4'>");
document.write("<param name='windowlessVideo' value='true' />");
document.write("<PARAM name='uiMode' value='"+uiMode+"'>");
document.write("<EMBED id='mPlayer' width='"+width+"' Height='"+height+"' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'");
document.write(" src='"+dir+"' ");
document.write(" DefaultFrame='Info'");
document.write(" AutoStart='"+autostart+"'");
document.write(" AllowScan='1'");
document.write(" AllowChangeDisplaySize='1'");
document.write(" AutoSize='false'");
document.write(" AutoRewind='1' ");
document.write(" AutoResize='1' ");
document.write(" EnableFullScreenControls='1' ");
document.write(" TransparentAtStart='1' ");
document.write(" EnableContextMenu='1' ");
document.write(" ShowPositionControls='1' ");
document.write(" ShowStatusBar='0' ");
document.write(" DisplaySize='4' ");
document.write(" uiMode='"+uiMode+"' ");
document.write(" windowlessVideo=true >");
document.write(" </EMBED>");
document.write("</OBJECT>");
}
동영상 삽입부분
<script>vod(360,240,'<%=filePath+entity.fileNm%>',1,'none')</script>
동영상 컨트롤 부분
<img src="/images/innisfree/inniCFBtnPause.gif" width="22" height="22" style="cursor:pointer" onClick="javascript:mPlayer.controls.pause()">
<img src="/images/innisfree/inniCFBtnPlay.gif" width="22" height="22" style="cursor:pointer" onClick="javascript:mPlayer.controls.play()">
<img src="/images/innisfree/inniCFBtnStop.gif" width="22" height="22" style="cursor:pointer" onClick="javascript:mPlayer.controls.stop()">
<img src="/images/innisfree/inniCFBtnPlay.gif" width="22" height="22" style="cursor:pointer" onClick="javascript:mPlayer.controls.play()">
<img src="/images/innisfree/inniCFBtnStop.gif" width="22" height="22" style="cursor:pointer" onClick="javascript:mPlayer.controls.stop()">
'WEB_Programming > Javascript' 카테고리의 다른 글
JavaScript 습작... (0) | 2008.10.15 |
---|---|
[JAVASCRIPT] insertBefore (0) | 2008.08.11 |
[JavaScript]이미지 버튼 스크롤 (0) | 2008.07.19 |
Javascript에서 쿠키 처리하기 (0) | 2008.07.18 |
JSON 소개 (0) | 2008.07.01 |