본문 바로가기

Web/PHP

동영상 재생

<?php
/***************************************************************************
*
*        Date            : 2004-07-16
*        Copyright        : aucd29
*        E-mail            : aucd29@daum.net, help@mota.co.kr
*        Type            : Movie Viwer
*
*
*
***************************************************************************/

include "../include/dbconn.php3";

//
// Query
//



?>
<html>
<head>
<title></title>
<meta name='author' content='interkorea'>
<meta name='keywords' content=''>
<meta http-equiv='Cache-Control' content='no-cache'>
<meta http-equiv='Pragma' content='no-cache'>
<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>
<link rel='stylesheet' href='/include/css.css' type='text/css'>
<script language='javascript' src='/include/main.js'></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
if(this == top)
{
    window.location.href='./view_free.php3?view_id=<? echo "$view_id"; ?>';
}
function resize(size) {

    if(size == '100'){
        document.Player.width = 320;
        document.Player.height = 310;
        top.window.resizeTo(380,460)
        document.tat.width = 320;
    } else if(size == '200'){
        //200
        document.Player.width = 640;
        document.Player.height = 550;
        top.window.resizeTo(700,700)
        document.tat.width = 640;

    } else if(size == 'full'){
        //fullscreen
        document.Player.DisplaySize = 3;
    }
}

//-->

function click() {
if ((event.button==2) || (event.button==3)) {

     alert('마우스 오른쪽 버튼은 사용할수 없습니다.');

     return false;
}
}

document.onmousedown=click;
document.onkeydown = CheckKeyPress;
document.onkeyup = CheckKeyPress;

function CheckKeyPress()
{
    ekey = event.keyCode;
    if(ekey == 16 || ekey == 38 || ekey == 40 || ekey == 78 || ekey == 112 || ekey ==17 || ekey == 18 || ekey == 25 || ekey == 116 || ekey == 122)
     {
     alert("입력하신 특수키는 사용할수 없습니다.");
     event.keyCode = 0;
     return false;
     }
}
//-->
</script>

<script language=javascript for=Player Event=EndOfStream>
window.close();
</script>

<script language="JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
//-->
</script>

<script language=javascript for=Player Event=Error>
alert("파일이 존재하지 않거나, Windows Media Player로 열수 없는 파일입니다.");
top.close();
</script>

<script language=javascript for=Player Event=NewStream></script>
</head>

<body bgcolor="#CFCFCF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><Td align='center'>

<table border="0" cellspacing="0" cellpadding="0">
<tr height='40'>
<td align=center><table id="tat" name="tat" width='100%' align='center' bgcolor='#000000' height=35><tr><td align='center'><font color='#FFFFFF'><b></b> - 샘플강좌<td></tr></table></td>
</tr>
<tr>
<td align="center">
<? $viewmovie=$rs[sURL] ?>
<object classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 width="320" height="310" id="Player" name="Player" type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components...">
    <param name=Filename value="<? echo "$viewmovie"; ?>">
        <param name="AutoStart" VALUE="1">
        <param name="AnimationAtStart" value="1">
        <param name="AllowChangeDisplaySize" value="1">
        <param name="EnableContextMenu" value="0">
        <param name="ShowControls" VALUE="1">
        <param name="ShowStatusBar" VALUE="1">
        <param name="ShowDisplay" VALUE="0">
        <param name="ShowTracker" VALUE="1">
        <param name="SendMouseClickEvents" VALUE="-1">
<param name="Buffer" VALUE="3">
</object></td>
</tr>
</table>
</td></tr>
<tr>
<td valign='top'>

<table border="0" cellspacing="0" cellpadding="0" align='center'>

<tr align="center">
<td><a href="#"><img src="./mimg/play.gif" width="58" height="23" border="0" alt="재생" name="menu3" onClick="document.Player.play(); return false;"></a></td>
<td><a href="#"><img src="./mimg/pause.gif" width="58" height="23" alt="잠시 멈춤" name="menu2" border="0" onClick="document.Player.Pause(); return false;"></a></td>
<td><a href="#"><img src="./mimg/stop.gif" width="58" height="23" name="menu4" alt="멈춤" border="0" onClick="document.Player.stop(); return false;"></a></td>

<td><a href="#" onclick="javascript:resize('100')"><img name="Image13" border="0" src="./mimg/100.gif" width="49" height="23" alt="100%로 보기"></a><a href="#" onclick="javascript:resize('200')"><img name="Image14" border="0" src="./mimg/200.gif" width="48" height="23" alt="200%로 보기"></a><a href="#" onclick="javascript:resize('full')"><img name="Image14" border="0" src="./mimg/full.gif" width="48" height="23" alt="전체화면으로 보기"></a></td>
</tr>

</table>
</td>
</tr>
<tr>
<td align='right'><img src='./mimg/slogo.gif'></td>
</tr>
</table>
</body>
</html>

----------------------------------------------------------------------

<html>
<head>
<title>::: :::</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

<frameset rows="0,*" frameborder="NO" border="0" framespacing="0">
<frame name="top22" scrolling="NO" noresize src="mymenu.html" >
<frame name="main" scrolling="NO" noresize src="view_movie_top.html?view_id=<? echo "$view_id"; ?>">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">

</body></noframes>
</html>


'Web > PHP' 카테고리의 다른 글

백분율 Percentage  (0) 2013.09.26
한글자르기  (0) 2013.09.26
2차원 카테고리  (0) 2013.09.26
GD 사용예  (0) 2013.09.26
엑셀 헤더  (0) 2013.09.26