묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
자바스크립트 문의 입니다.부탁 할께요.
2007.07.20 17:01
<html>
<head>
<body>
<object id=player name=player classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 width=100 height=20
type=application/x-oleobject standby="Loading Microsoft Windows Media Player components...">
<param name="FileName" value="재생하소싶은 노래주소">
<param name="ANIMATIONATSTART" value="0">
<param name="AUTOSTART" value="1">
<param name="BALANCE" value="0">
<param name="CURRENTMARKER" value="0">
<param name="CURRENTPOSITION" value="0">
<param name="DISPLAYMODE" value="4">
<param name="ENABLECONTEXTMENU" value="0">
<param name="ENABLED" value="1">
<param name="FULLSCREEN" value="0">
<param name="INVOKEURLS" value="1">
<param name="PLAYCOUNT" value="1">
<param name="RATE" value="1">
<param name="SHOWCONTROLS" value="1">
<param name="SHOWSTATUSBAR" value="-1">
<param name="STRETCHTOFIT" value="0">
<param name="TRANSPARENTATSTART" value="1">
<param name="UIMODE" value="FULL">
<param name="displaybackcolor" value="0">
<param name="SendMouseClickEvents" value="1">
<param name="SendPlayStateChangeEvents" value="1">
</object>
<SCRIPT FOR="player" EVENT="NewStream( )" LANGUAGE="JScript">
</SCRIPT>
<SCRIPT FOR="player"
EVENT="Buffering(bStart)"
LANGUAGE="JScript">
str=(bStart)?'버퍼링중':'버퍼링완료';
window.document.write("str");
</SCRIPT>
<SCRIPT FOR="player"
EVENT="OpenStateChange(lOldState, lNewState)"
LANGUAGE="JScript">
switch(lNewState){
case 0:
str='Content file is closed.';
break;
case 1:
str='Loading a Windows Media metafile.';
break;
case 2:
str='Loading an .nsc station file.';
break;
case 3:
str='Locating the server.';
break;
case 4:
str='Connecting to the server.';
break;
case 5:
str='Opening or listening for the stream.';
break;
case 6:
str='Content file is open.';
break;
}
window.document.write=("str");
</SCRIPT>
<SCRIPT FOR="player"
EVENT="PlayStateChange(lOldState, lNewState)"
LANGUAGE="JScript">
switch(lNewState){
case 0:
str='중지';
break;
case 1:
str='일시정지';
break;
case 2:
str='재생중';
break;
}
window.document.write=("str");
</SCRIPT>
</body>
</html>
위와같이 소스가 있는데요.
<SCRIPT FOR="player"
EVENT="PlayStateChange(lOldState, lNewState)"
LANGUAGE="JScript">
switch(lNewState){
case 0:
str='중지';
break;
case 1:
str='+ '+ '일시정지';
break;
case 2:
str='재생중';
break;
}
window.document.write=("str");
이것을 상태바 또는 타이틀바가 아닌 문서내에 텍스트로 표현 하고 싶은데 잘 안되네요.
자바 잘하시는분 부탁 드릴께요.
<head>
<body>
<object id=player name=player classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 width=100 height=20
type=application/x-oleobject standby="Loading Microsoft Windows Media Player components...">
<param name="FileName" value="재생하소싶은 노래주소">
<param name="ANIMATIONATSTART" value="0">
<param name="AUTOSTART" value="1">
<param name="BALANCE" value="0">
<param name="CURRENTMARKER" value="0">
<param name="CURRENTPOSITION" value="0">
<param name="DISPLAYMODE" value="4">
<param name="ENABLECONTEXTMENU" value="0">
<param name="ENABLED" value="1">
<param name="FULLSCREEN" value="0">
<param name="INVOKEURLS" value="1">
<param name="PLAYCOUNT" value="1">
<param name="RATE" value="1">
<param name="SHOWCONTROLS" value="1">
<param name="SHOWSTATUSBAR" value="-1">
<param name="STRETCHTOFIT" value="0">
<param name="TRANSPARENTATSTART" value="1">
<param name="UIMODE" value="FULL">
<param name="displaybackcolor" value="0">
<param name="SendMouseClickEvents" value="1">
<param name="SendPlayStateChangeEvents" value="1">
</object>
<SCRIPT FOR="player" EVENT="NewStream( )" LANGUAGE="JScript">
</SCRIPT>
<SCRIPT FOR="player"
EVENT="Buffering(bStart)"
LANGUAGE="JScript">
str=(bStart)?'버퍼링중':'버퍼링완료';
window.document.write("str");
</SCRIPT>
<SCRIPT FOR="player"
EVENT="OpenStateChange(lOldState, lNewState)"
LANGUAGE="JScript">
switch(lNewState){
case 0:
str='Content file is closed.';
break;
case 1:
str='Loading a Windows Media metafile.';
break;
case 2:
str='Loading an .nsc station file.';
break;
case 3:
str='Locating the server.';
break;
case 4:
str='Connecting to the server.';
break;
case 5:
str='Opening or listening for the stream.';
break;
case 6:
str='Content file is open.';
break;
}
window.document.write=("str");
</SCRIPT>
<SCRIPT FOR="player"
EVENT="PlayStateChange(lOldState, lNewState)"
LANGUAGE="JScript">
switch(lNewState){
case 0:
str='중지';
break;
case 1:
str='일시정지';
break;
case 2:
str='재생중';
break;
}
window.document.write=("str");
</SCRIPT>
</body>
</html>
위와같이 소스가 있는데요.
<SCRIPT FOR="player"
EVENT="PlayStateChange(lOldState, lNewState)"
LANGUAGE="JScript">
switch(lNewState){
case 0:
str='중지';
break;
case 1:
str='+ '+ '일시정지';
break;
case 2:
str='재생중';
break;
}
window.document.write=("str");
이것을 상태바 또는 타이틀바가 아닌 문서내에 텍스트로 표현 하고 싶은데 잘 안되네요.
자바 잘하시는분 부탁 드릴께요.