인터넷정보

웹페이지에 삽입된 동영상 및 음악 제어

알 수 없는 사용자 2007. 10. 18. 14:02
<html>
<head>
<script language="javascript">
if ( navigator.appName == "Netscape" )
{
navigator.plugins.refresh();
document.write("<" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class" )
document.writeln(" WIDTH=5 HEIGHT=5 NAME=appObs> </applet>")
}
function vol_up(){
volume=MTVPlay.volume;
if (volume==+2500){
return false;
}else{
MTVPlay.volume=volume+250;
volume=MTVPlay.volume;
}
}
function vol_down(){
volume=MTVPlay.volume;
if (volume==-2500){
return false;
}else{
MTVPlay.volume=volume-250;
volume=MTVPlay.volume;
}
}
function muteoff(){
MTVPlay.mute=false;
}
function mute(){
MTVPlay.mute=true;
}
function ff(){
MTVPlay.next();
}
function pre(){
MTVPlay.previous();
}
function replay(){
MTVPlay.playcount=0;
}
function replayoff(){
MTVPlay.playcount=1;
}
function play(){
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
MTVPlay.Play();
} else {
document.MTVPlay.Play();
}
}
function pause(){
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
if (MTVPlay.PlayState == 2){
MTVPlay.Pause();
}
else {
if (MTVPlay.PlayState == 1) {
MTVPlay.Play();
}
}
} else {
document.MTVPlay.Pause();
}
}
function stop(){
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
MTVPlay.Stop();
MTVPlay.CurrentPosition=0;
} else {
document.MTVPlay.Stop();
document.MTVPlay.CurrentPosition=0;
}
}
function muteClick()
{
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
bMuteState = MTVPlay.Mute;
} else {
bMuteState = MTVPlay.GetMute();
}
if (bMuteState == true) {
MTVPlay.value="Mute";
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
MTVPlay.Mute = false;
} else {
MTVPlay.SetMute(false);
}
} else {
MTVPlay.value="Un-Mute";
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
MTVPlay.Mute = true;
} else {
MTVPlay
}
}
}
</script>

<script language="javascript">
<!--
function fs(){
MTVPlay.DisplaySize = 3;
MTVPlay.Play();
MTVPlay.focus();
}
//-->
</script>
</head>
<body>
<object id=MTVPlay width=285 height=233 classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" VIEWASTEXT>
<param name="Filename" value="동영상파일이름(경로)">
<param name="ShowControls" value="0">
</object>
<br>
<a href=# onClick="play()">재생</a><br>
<a href=# onClick="pause()">일시정지</a><br>
<a href=# onClick="stop()">정지</a><br>
<a href=# onClick="replayoff()">반복취소</a><br>
<a href=# onClick="replay()">반복</a><br>
<a href=# onClick="fs()">전체화면</a><br>
<a href=# onClick="muteClick()">소리죽이기</a><br>
<a href=# onClick="vol_down()">소리낮춤</a><br>
<a href=# onClick="vol_up()">소리높임</a><br>
</body>
</html>
반응형