묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
안녕하세요-
소스해석을 좀 하고싶은데;
간단히 해주세요. 흐으. 내용이 많기도 하고 ;;음.음.
제가 어떻게 해보려고 했는데 자바스크립트는 잘 몰라서;;;;
책보고 뒤적대기에도 소스가 많아서 무리가 ;;
'네 lnit 내용은 모할경우 어떻게 음 어쩌구 하는겁니다~" 이정도로;;;
음. 전부말고 한두개만이라도 해주신다면 감사!!
+내용추가! 2004 04 17
..2번소스만 분석해주세요.. -_ㅠ
다.다른것들은 그리 중요하지 않은것같거든요. 대강 보이기도 하고.
으음.
부탁드려요 ㅠㅠ
1.
<script language=javascript>
function Init()
{
var ret=DInfoOCX.DoConnMainWindow();
if (ret=="-1") window.close();
}
if(window.name!="DNGPlayer") {
document.location.replace("http://www2.megastudy.net/default_main.asp");
}
// 상세보기 팝업
function WMT9detail(theURL) {
window.open(theURL,'neww','scrollbars=no, width=457, height=440');
}
</script>
2.
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v3.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
if ((nbArr = document[grpName]) != null)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
}
//-->
3.
<SCRIPT>
<!--
function NewLangSelected()
{
Player.controls.currentAudioLanguage = langList.value;
}
function ChangeDisplay()
{
var currentID = Player.controls.currentAudioLanguage;
var currentName = Player.controls.getLanguageName(currentID);
langText.value = currentID + " - " + currentName;
}
-->
</SCRIPT>
4.
<script language="javascript">
//***반복/한번 재생 토글************************
function aaa()
{
if (Player.settings.playCount ==1) //
{
Player.settings.playCount =30;
bbb.src='bt_r.gif';
}
else
{
Player.settings.playCount=1;
bbb.src='+ '+ 'bt_1.gif';
}
}
function goSubFAQ(){
var url ="/erms/center/default.asp?vurl=exSelfFAQ.asp&CID1=CATE20030331000001&CName1=%BD%DF%BD%DF%C7%C3%B7%AF%BD%BA%B5%BF%BF%B5%BB%F3+%B9%AE%C0%C7&CID2=CATE20030331000000&CName2=%BD%DF%BD%DF%C7%C3%B7%AF%BD%BA+%B5%BF%BF%B5%BB%F3+%B9%AE%C0%C7";
window.opener.location.href=url;
}
</script>
5.
<script for="Player" event="KeyPress(iKeyAscii)" language="JScript">
//alert(iKeyAscii) ;
if(iKeyAscii !=27) //esc
{ document.state_change.temp_key.value=iKeyAscii ; }
if( iKeyAscii == 32 ) //스페이스
{ Player.controls.pause() ; }
if( iKeyAscii == 13 ) //엔터
{ Player.controls.play(); }
if( iKeyAscii == 77 || iKeyAscii == 109 ) // < -10
{ Player.settings.rate=-10 }
if( iKeyAscii == 44 || iKeyAscii == 60 ) // < -5
{ Player.controls.fastReverse() ; }
if( iKeyAscii == 47 || iKeyAscii == 63 ) // ? +10
{ Player.settings.rate=10 }
if( iKeyAscii == 46 || iKeyAscii == 62 ) //> +5
{ Player.controls.fastForward() ; }
if( iKeyAscii == 98 || iKeyAscii == 66 ) //b
{
Player.controls.stop() ;
document.state_change.state_flg.value=1;
status_check();
} //b //이미지 교체
if( iKeyAscii==27)
{
var cur_value=document.state_change.temp_key.value;
if(cur_value==32) //pause
{
document.state_change.state_flg.value=1;
status_check();
}
else if(cur_value==13) //play
{
document.state_change.state_flg.value=1;
img_name.src="http://img.megastudy.net:8080/player_img/img_pause.gif";
//state_check();
}
if( cur_value==77 || cur_value==109 || cur_value==44 || cur_value==60 || cur_value==47 || cur_value==63 || cur_value==46 || cur_value==62 ) //fastforward / back
{
document.state_change.state_flg.value=0;
img_name.src="http://img.megastudy.net:8080/player_img/img_start.gif";
}
}
</script>
6.
<script for="Player" event="playStateChange(NewState)" language="JScript">
document.state_change.cur_state.value=NewState;
switch (NewState){
case 1 : //명령어 중지시
// alert ("1-재생중지")
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>중지됨</font>";
status_check(); //이미지 교체
break;
case 2 :
// alert ("2-일시중지")
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>일시중지 </font>";
break;
case 3 : //플레이리스트의 제일 처음 시작할 때 발생
// alert (NewState);
fulltime = Player.currentMedia.durationString ;
currenttime = Player.controls.currentPositionString ;
fullplaytime.innerHTML = "<font color=#FFFF00>" + fulltime + "</font>" ;
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>재생중 </font>";
init(); //0.5초마다 한번씩 호출
break;
case 6 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>버퍼링..</font>";
break;
case 7 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>연결중 </font>";
break;
case 8 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>닫기 </font>";
break;
case 9 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>연결중..</font>";
break;
case 10 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>준비 </font>";
break;
}
</script>
7. 마지막 이녀석들!
<SCRIPT LANGUAGE=javascript FOR=Version EVENT="OnPlayerVersion(val)">
<!--
document.state_change.p_version.value=val;
//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=Version EVENT="OsVersion(val)">
<!--
document.state_change.os_version.value=val;
//-->
</SCRIPT>
우아.
하나라도 해주시면 감사요 +_+
그럼안녕히~
으- 소스 간단한 분석좀 부탁드려요!!!
2003.04.18 23:02
안녕하세요-
소스해석을 좀 하고싶은데;
간단히 해주세요. 흐으. 내용이 많기도 하고 ;;음.음.
제가 어떻게 해보려고 했는데 자바스크립트는 잘 몰라서;;;;
책보고 뒤적대기에도 소스가 많아서 무리가 ;;
'네 lnit 내용은 모할경우 어떻게 음 어쩌구 하는겁니다~" 이정도로;;;
음. 전부말고 한두개만이라도 해주신다면 감사!!
+내용추가! 2004 04 17
..2번소스만 분석해주세요.. -_ㅠ
다.다른것들은 그리 중요하지 않은것같거든요. 대강 보이기도 하고.
으음.
부탁드려요 ㅠㅠ
1.
<script language=javascript>
function Init()
{
var ret=DInfoOCX.DoConnMainWindow();
if (ret=="-1") window.close();
}
if(window.name!="DNGPlayer") {
document.location.replace("http://www2.megastudy.net/default_main.asp");
}
// 상세보기 팝업
function WMT9detail(theURL) {
window.open(theURL,'neww','scrollbars=no, width=457, height=440');
}
</script>
2.
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v3.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
if ((nbArr = document[grpName]) != null)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
}
//-->
3.
<SCRIPT>
<!--
function NewLangSelected()
{
Player.controls.currentAudioLanguage = langList.value;
}
function ChangeDisplay()
{
var currentID = Player.controls.currentAudioLanguage;
var currentName = Player.controls.getLanguageName(currentID);
langText.value = currentID + " - " + currentName;
}
-->
</SCRIPT>
4.
<script language="javascript">
//***반복/한번 재생 토글************************
function aaa()
{
if (Player.settings.playCount ==1) //
{
Player.settings.playCount =30;
bbb.src='bt_r.gif';
}
else
{
Player.settings.playCount=1;
bbb.src='+ '+ 'bt_1.gif';
}
}
function goSubFAQ(){
var url ="/erms/center/default.asp?vurl=exSelfFAQ.asp&CID1=CATE20030331000001&CName1=%BD%DF%BD%DF%C7%C3%B7%AF%BD%BA%B5%BF%BF%B5%BB%F3+%B9%AE%C0%C7&CID2=CATE20030331000000&CName2=%BD%DF%BD%DF%C7%C3%B7%AF%BD%BA+%B5%BF%BF%B5%BB%F3+%B9%AE%C0%C7";
window.opener.location.href=url;
}
</script>
5.
<script for="Player" event="KeyPress(iKeyAscii)" language="JScript">
//alert(iKeyAscii) ;
if(iKeyAscii !=27) //esc
{ document.state_change.temp_key.value=iKeyAscii ; }
if( iKeyAscii == 32 ) //스페이스
{ Player.controls.pause() ; }
if( iKeyAscii == 13 ) //엔터
{ Player.controls.play(); }
if( iKeyAscii == 77 || iKeyAscii == 109 ) // < -10
{ Player.settings.rate=-10 }
if( iKeyAscii == 44 || iKeyAscii == 60 ) // < -5
{ Player.controls.fastReverse() ; }
if( iKeyAscii == 47 || iKeyAscii == 63 ) // ? +10
{ Player.settings.rate=10 }
if( iKeyAscii == 46 || iKeyAscii == 62 ) //> +5
{ Player.controls.fastForward() ; }
if( iKeyAscii == 98 || iKeyAscii == 66 ) //b
{
Player.controls.stop() ;
document.state_change.state_flg.value=1;
status_check();
} //b //이미지 교체
if( iKeyAscii==27)
{
var cur_value=document.state_change.temp_key.value;
if(cur_value==32) //pause
{
document.state_change.state_flg.value=1;
status_check();
}
else if(cur_value==13) //play
{
document.state_change.state_flg.value=1;
img_name.src="http://img.megastudy.net:8080/player_img/img_pause.gif";
//state_check();
}
if( cur_value==77 || cur_value==109 || cur_value==44 || cur_value==60 || cur_value==47 || cur_value==63 || cur_value==46 || cur_value==62 ) //fastforward / back
{
document.state_change.state_flg.value=0;
img_name.src="http://img.megastudy.net:8080/player_img/img_start.gif";
}
}
</script>
6.
<script for="Player" event="playStateChange(NewState)" language="JScript">
document.state_change.cur_state.value=NewState;
switch (NewState){
case 1 : //명령어 중지시
// alert ("1-재생중지")
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>중지됨</font>";
status_check(); //이미지 교체
break;
case 2 :
// alert ("2-일시중지")
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>일시중지 </font>";
break;
case 3 : //플레이리스트의 제일 처음 시작할 때 발생
// alert (NewState);
fulltime = Player.currentMedia.durationString ;
currenttime = Player.controls.currentPositionString ;
fullplaytime.innerHTML = "<font color=#FFFF00>" + fulltime + "</font>" ;
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>재생중 </font>";
init(); //0.5초마다 한번씩 호출
break;
case 6 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>버퍼링..</font>";
break;
case 7 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>연결중 </font>";
break;
case 8 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>닫기 </font>";
break;
case 9 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>연결중..</font>";
break;
case 10 :
playerstatus.innerHTML = "<font color=#BEBEBE style='font-family:gulim; font-size:8pt;'>준비 </font>";
break;
}
</script>
7. 마지막 이녀석들!
<SCRIPT LANGUAGE=javascript FOR=Version EVENT="OnPlayerVersion(val)">
<!--
document.state_change.p_version.value=val;
//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=Version EVENT="OsVersion(val)">
<!--
document.state_change.os_version.value=val;
//-->
</SCRIPT>
우아.
하나라도 해주시면 감사요 +_+
그럼안녕히~
댓글 2
-
아린
2003.04.19 00:30
-
최근우
2003.04.19 20:51
네 음악이아니라 동영상인데요..-_ㅠ 가..간추려야하는데..아악..이걸어쩌지;으에.
너무 방대한 내용이라 ㅠㅠ 하,한개만이라도 해주세요!!
너무 방대한 내용이라 분석할 엄두가 안난다는..