Menu

깔끔한 동영상 재생기2

2016. 6. 2. 02:31

안개핑 Javascript

 

 

<html>
<head>
<title>연습할 제목</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr">
</head>
<body>
<p align="center"><script>
<!--
//

function svgaMode(){
odMedia.width="900"; odMedia.height="675";
}

function s300Mode(){
odMedia.width="900"; odMedia.height="675";
}

function s200Mode(){
odMedia.width="600"; odMedia.height="450";
}

function s100Mode(){
odMedia.width="300"; odMedia.height="225";
}

function s50Mode(){
odMedia.width="150"; odMedia.height="113";
}


function playMode(){ if(odMedia.SelectionEnd>0)odMedia.Play();}

function pauseMode(){ if(odMedia.CurrentPosition>0)odMedia.Pause();}

function stopMode(){ if(odMedia.SelectionEnd>0)odMedia.Stop();}

function showBuffer(){
if(odMedia.CurrentPosition<0)odBuffer.value="Loading..";
else if(odMedia.CurrentPosition==0)odBuffer.value="Ready";
else odBuffer.value=parseInt(odMedia.CurrentPosition*10)/10;

setTimeout("showBuffer();",200);
}

setTimeout("showBuffer();",1000);

//-->
</script>

<input type="text" name="odBuffer" size="9" style="color:rgb(204,0,0); background-color:white; border-width:0; border-color:white;">
<table align="center" cellpadding="0" cellspacing="0" width="306" bgcolor="black">
    <tr>
        <td width="296" colspan="3" bgcolor="black">
 <p align="center"><embed src="http://www.thephantom.co.kr/multimedia/vod/v1-250.asf" name="odMedia" autostart=false loop=5 width="300" height="225" ShowControls=0 ></td>
    </tr>
    <tr>
        <td width="47" bgcolor="black"><p align="center"> </td>
        <td width="209" bgcolor="black"><p align="right"><input type="button" value="50%" onclick="s50Mode();" style="color:white; background-color:black; border-top-width:0; border-right-width:2; border-bottom-width:0; border-left-width:0; border-top-color:black; border-right-color:rgb(204,204,204); border-bottom-color:black; border-left-color:black;"> <input type="button" value="100%" onclick="s100Mode();" style="color:white; background-color:black; border-top-width:0; border-right-width:2; border-bottom-width:0; border-left-width:0; border-top-color:black; border-right-color:rgb(204,204,204); border-bottom-color:black; border-left-color:black;"><input type="button" value="200%" onclick="s200Mode();" style="color:white; background-color:black; border-top-width:0; border-right-width:2; border-bottom-width:0; border-left-width:0; border-top-color:black; border-right-color:rgb(204,204,204); border-bottom-color:black; border-left-color:black;"><input type="button" value="300%" onclick="s300Mode();" style="color:white; background-color:black; border-top-width:0; border-right-width:2; border-bottom-width:0; border-left-width:0; border-color:black;"></td>
        <td width="28" bgcolor="black">
            <p> </p>
</td>
    </tr>
</table>
<table align="center" cellpadding="0" cellspacing="0" width="133">
    <tr>
        <td width="45"><p align="center"><br><input type="button" value="Play" onclick="playMode();" style="color:black; background-color:white; border-top-width:0; border-right-width:1; border-bottom-width:0; border-left-width:0; border-color:white;"></td>
        <td width="62"><p align="center"><br><input type="button" value="Pause" onclick="pauseMode();" style="color:black; background-color:white; border-top-width:0; border-right-width:1; border-bottom-width:0; border-left-width:0; border-color:white;"></td>
        <td width="26"><p align="center"><br><input type="button" value="Stop" onclick="stopMode();" style="color:black; background-color:white; border-width:0; border-color:white;"></td>
    </tr>
</table>
<p align="center"><span style="font-size:10pt;">재생하시려면 Play를 누르세요<br>Loading.. 이면 파일 읽어 오는 중이며<br>
Ready 면 재생-시작할 수 있습니다.<br>
숫자는 재생된(지나간) 시간을 초로 표시하는 것입니다.</span>
</p>
</body>
</html>