한국어
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>교육학</title> </head> <body> <style type=" text/css"> .dot { 위치: 절대; 너비: 6; 높이: 6; 가시성: 숨김; 배경색: 빨간색; 글꼴 크기: 1px; 커서: 포인터; 커서: 손; z-색인: 100 } .dotoff { 위치: 절대; 너비: 6; 높이: 6; 가시성: 숨김; 배경색: 회색; 글꼴 크기: 1px; 커서:기본값; z-색인: 100} .dotempty { 위치: 절대; 너비: 6; 높이: 6; 가시성: 숨김; 배경색: 주황색; 글꼴 크기: 1px; 커서: 포인터; 커서: 손; zindex: 100 } .caption { 위치: 절대; 가시성: 숨김; 글꼴 모음: Tahoma; 색상: 검정색; 글꼴 크기: 11px; 텍스트 정렬: 가운데; 커서: 기본값; z-색인: 1 } 본문 { 여백: 0px; 배경색: 흰색; } a { 색상: 실버; 텍스트 장식: 없음 } p { 글꼴 크기: 10px; 글꼴 모음: tahoma; color: black } </style> <script 언어="JavaScript" type="text/javascript"> function lib_bwcheck(){ //Browsercheck (필요) this.ver=navigator.appVersion this.agent=navigator.userAgent this. dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom &&parseInt(this.ver) > = 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=new lib_bwcheck() // 이 코드 스크립트가 본문에 있으므로 위의 browsercheck는 사용되지 않습니다. </script> <script 언어="javascript1.2" type="text/javascript"> <!-- // DotMenu // 크로스 브라우저 기능 제공 //============= ========================= function getObjectRef(name) { if(document.getElementById) return document.getElementById(name); else if(document.all) return document.all[이름]; 그렇지 않으면 null을 반환합니다. } // 스크립트를 보조하는 일반 함수 //======================================== = function show(이름) { var el = getObjectRef(이름); if(el) el.style.visibility = "표시됨"; } function hide(이름) { var el = getObjectRef(이름); if(el) el.style.visibility = "숨김"; } function getWidth(이름) { var el = getObjectRef(이름); el.offsetWidth를 반환합니다. } function getHeight(이름) { var el = getObjectRef(이름); el.offsetHeight를 반환합니다. } function moveMe(이름,x,y) { var el = getObjectRef(이름); if(el) { el.style.top = parsInt(y); el.style.left = parsInt(x); } } function moveBy(name,x,y) { var el = getObjectRef(name); if(el) { el.style.top =parseInt(el.style.top)+parseInt(y); el.style.left = 구문 분석(el.style.left) + 구문 분석(x); } } // 메뉴 객체 생성 //=========================== var menuCount = 0; function menuObject(name,x,y,caption, r, parent) { if ( (!document.getElementById&&!document.all) || navigator.userAgent.indexOf("Opera")>-1) return; document.write('<div id="divDot' + menuCount + '" class="dotempty" style="top: ' + y + '; 왼쪽: ' + x + '"></div>'); document.write('<div id="divCap' + menuCount + '" class="caption" style="top: 0; left: 0">' + caption + '</div>'); this.name = 이름; this.parent = 부모 this.ref = "divDot" + menuCount; this.caption = "divCap" + menuCount if(r) this.radius = r; 그렇지 않으면 this.radius = 400; this.subMenus = 새로운 배열(); this.state = 0; this.moving = 거짓; if(this.parent) this.action = "null"; 그렇지 않으면 this.action = "toggle"; if(this.parent) this.startAngle = parent.startAngle; 그렇지 않으면 this.startAngle = 0; getObjectRef(this.ref).objRef = this.name; this.show = function() { show(this.ref); } this.hide = function() { hide(this.ref); } this.moveMe = function(x,y) { if(this.parent) { x += this.parent.x(); y += this.parent.y(); } moveMe(this.ref,x,y); } this.moveBy = function(x,y) { moveBy(this.ref,x,y); } this.x = function() { return parsInt(getObjectRef(this.ref).style.left); } this.y = function() { return parsInt(getObjectRef(this.ref).style.top); } this.w = function() { return getWidth(this.ref); } this.h = function() { return getHeight(this.ref); } this.showCaption = function() { moveMe(this.caption, this.x() - (getWidth(this.caption)/2) + (this.w()/2), (this.y() + this .시간())); 표시(this.caption); } this.hideCaption = function() { hide(this.caption); } this.setCaption = function(c) { getObjectRef(this.caption).innerHTML = c;} this.addItem = function(c,action,r) { getObjectRef(this.ref).className = "dot"; if(!r) r = this.radius/2; var sub = new menuObject(this.name + ".subMenus[" + this.subMenus.length + "]",0,0,c,r,this); 하위 부모 = this; 하위.액션 = 액션; sub.moveMe(0,0); this.subMenus[this.subMenus.length] = 하위; 하위 반환; } this.expand = function() { if(this.subMenus.length > 0) { var p = true; if(this.parent) { p = !this.parent.moving; for(var i=0; i<this.parent.subMenus.length;i++) p = p && ((this.parent.subMenus[i].state==0) || (this.parent.subMenus[i] .state==this.parent.subMenus[i].subMenus.length)) && (this.parent.subMenus[i].moving==false); } else var o = false; if((!this.parent || this.parent.state == this.parent.subMenus.length) && p) { if(this.parent) this.collapseAll(this.name); var diff = 360 / this.subMenus.length; for(var i=0;i<this.subMenus.length;i++){ this.subMenus[i].moveMe(0,0); this.subMenus[i].show(); this.moving = true; this.subMenus[i].slide(this.subMenus[i].radius * cos(degToRad((diff*i)+this.startAngle)), this.subMenus[i].radius * sin(degToRad((diff* i)+this.startAngle)), this.name + ".subMenus[" + i + "].showCaption();" + this.name + ".moving=false;" + ".state+= 1;"); } if(this.parent){ getObjectRef(this.parent.ref).style.filter = "알파(불투명도=33)"; getObjectRef(this.parent.ref).style.MozOpacity = "33%"; getObjectRef(this.parent.ref).className = "dotoff"; getObjectRef(this.parent.caption).style.filter = "알파(불투명도=33)"; getObjectRef(this.parent.caption).style.MozOpacity = "33%"; for(i=0;i<this.parent.subMenus.length;i++) { getObjectRef(this.parent.subMenus[i].ref).style.filter = "알파(불투명도=66)"; getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "66%"; getObjectRef(this.parent.subMenus[i].caption).style.filter = "알파(불투명도=66)"; getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "66%"; } if(this.parent.parent) { for(i=0;i<this.parent.parent.subMenus.length;i++) { getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "알파(불투명도=33)"; getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "33%"; getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotoff"; getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "알파(불투명도=33)"; getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "33%"; } getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%"; getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%"; getObjectRef(this.parent.parent.ref).className = "dotoff"; } } getObjectRef(this.ref).style.filter = "알파(불투명도=66)"; getObjectRef(this.caption).style.filter = "알파(불투명도=66)"; getObjectRef(this.ref).style.MozOpacity = "66%"; getObjectRef(this.caption).style.MozOpacity = "66%"; } } } this.collapse = function() { var p = true; p = !this.moving; for(var i=0; i<this.subMenus.length;i++) p = p && (this.subMenus[i].state==0) && (this.subMenus[i].moving==false); if(p && this.subMenus.length > 0) { for(var i=0;i<this.subMenus.length;i++){ this.subMenus[i].hideCaption(); this.moving = true; this.subMenus[i].slide(0, 0, this.name + ".subMenus[" + i + "].hide();" + this.name + ".moving=false;" + this.name + ".state-=1;"); } if(this.parent){ getObjectRef(this.parent.ref).style.filter = "알파(불투명도=66)"; getObjectRef(this.parent.ref).style.MozOpacity = "66%"; if(this.parent.subMenus.length != 0) getObjectRef(this.parent.ref).className = "dot"; else getObjectRef(this.parent.ref).className = "dotempty"; getObjectRef(this.parent.caption).style.filter = "알파(불투명도=66)"; getObjectRef(this.parent.caption).style.MozOpacity = "66%"; for(i=0;i<this.parent.subMenus.length;i++) { getObjectRef(this.parent.subMenus[i].ref).style.filter = "알파(불투명도=100)"; getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "100%"; if(this.parent.subMenus[i].subMenus.length != 0) getObjectRef(this.parent.subMenus[i].ref).className = "dot"; else getObjectRef(this.parent.subMenus[i].ref).className = "dotempty"; getObjectRef(this.parent.subMenus[i].caption).style.filter = "알파(불투명도=100)"; getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "100%"; } if(this.parent.parent) { for(i=0;i<this.parent.parent.subMenus.length;i++) { getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "알파(불투명도=66)"; getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "66%"; if(this.parent.parent.subMenus[i].subMenus.length != 0) getObjectRef(this.parent.parent.subMenus[i].ref).className = "dot"; else getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotempty"; getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "알파(불투명도=66)"; getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "66%"; } } } getObjectRef(this.ref).style.filter = "알파(불투명도=100)"; getObjectRef(this.caption).style.filter = "알파(불투명도=100)"; getObjectRef(this.ref).style.MozOpacity = "100%"; getObjectRef(this.caption).style.MozOpacity = "100%"; } } this.collapseAll = 함수(제외) { for(var i=0;i<this.parent.subMenus.length;i++) { if(this.parent.subMenus[i].name!=제외 && this.parent .subMenus[i].state==this.parent.subMenus[i].subMenus.length) { this.parent.subMenus[i].collapse(); } } } this.toggle = function(e) { if(document.all) id = window.event.srcElement; else id = e.target; var dot = eval(id.objRef); if(dot.state==0 && !dot.moving) dot.expand(); else if(dot.state==dot.subMenus.length && !dot.moving) dot.collapse() } this.doAction = function(e) { if(document.all) id = window.event.srcElement; else id = e.target; var dot = eval(id.objRef); if(dot.action == "토글") dot.toggle(e); else eval(dot.action); } //작업을 트리거하는 이벤트를 변경하려면 이를 변경하세요. //================================= ========================================= //getObjectRef(this.ref).onmousemove = this.toggle; getObjectRef(this.ref).onmouseup = this.doAction; this.slide = function(xx,yy,func) { if(!func) func = ""; var px = this.parent.x(); var py = this.parent.y(); var x = xx - this.x() + px; var y = yy - this.y() + py; var d = sqrt(square(xx-this.x() + px) + square(yy-this.y() + py)); var v = d/8; if(v<1) v = 1; if( (Math.abs(x) < v) && (Math.abs(y) < v) ) { moveMe(this.ref,xx + px,yy + py); if(func != "") eval(func); } else { var a = round(atan(x,y)); dx = round(v * cos(degToRad(a))); dy = round(v * sin(degToRad(a))); this.moveBy(dx,dy); setTimeout(this.name + ".slide(" + xx + "," + yy + ", '" + func + "');",10); } } // Windows 필터를 미리 로드합니다. if (menuCount==0 && document.all) document.all[this.ref].style.filter = "알파 (불투명도=100)"; 메뉴카운트++; 이거 돌려줘; } // 수학 함수 //================= var pi = Math.PI; function square(x) { return (x*x); } 함수 sqrt(x) { return Math.sqrt(x); } function round(x) { return Math.round(x); } function rand(x,y) { return (round(Math.random()*(yx)) + x); } 함수 cos(x) { 반환 Math.cos(x) } 함수 sin(x) { 반환 Math.sin(x) } 함수 degToRad(x) { 반환 ( x/(360/(2*pi)) ); } 함수 radToDeg(x) { return ( x*(360/(2*pi)) ); } 함수 atan(s,t) { if( s == 0.0 && t > 0.0) angle = 90.0; else if(s == 0.0 && t < 0.0) angle = 270.0; else if (s < 0.0 ) angle = 180.0 + radToDeg(Math.atan(t/s)); else if (s > 0.0 && t < 0.0) angle = 360.0 + radToDeg(Math.atan(t/s)); else { if(s==0.0) s=0.00001; 각도 = radToDeg(Math.atan(t/s)); } if(각도 < 0.0) 각도 += 360.0; 복귀 각도; } //페이지 크기 가져오기 if(document.all) pageWidth = document.body.offsetWidth-20; 그렇지 않으면 pageWidth = innerWidth; if(document.all) pageHeight = document.body.offsetHeight-4; 그렇지 않으면 pageHeight = innerHeight; //메인 메뉴 생성 var menu = new menuObject("menu",pageWidth/2,pageHeight/2,"DhtmlCentral Site Map",pageHeight/2); menu.startAngle = -90; //메뉴 및 캡션 표시 menu.show(); menu.showCaption(); //하위 메뉴 추가 menu.addItem("news","window.open('/news')"); menu.addItem("스크립트","토글"); menu.addItem("tutorials","toggle"); menu.addItem("포럼","토글"); menu.addItem("resources","toggle"); menu.subMenus[1].addItem("FoldOutMenu","window.open('/script/script22.asp')"); menu.subMenus[1].addItem("로딩 바","window.open('/script/script17.asp')"); menu.subMenus[1].addItem("창 스크립트","window.open('/script/script16.asp')"); menu.subMenus[1].addItem("PageSlideFade","window.open('/script/script15.asp')"); menu.subMenus[1].addItem("원형 메뉴","window.open('/script/script14.asp')"); menu.subMenus[1].addItem("애니메이션 소개","window.open('/script/script9.asp')"); menu.subMenus[1].addItem("NewsSlideFade","window.open('/script/script10.asp')"); menu.subMenus[1].addItem("기타 스크립트","window.open('/script/')"); menu.subMenus[2].addItem("vs5 브라우저용 스크립팅","window.open('/tutorials/tutorial5.asp')"); menu.subMenus[2].addItem("Dhtml 스크립트 만들기","window.open('/tutorials/tutorial6.asp')"); menu.subMenus[2].addItem("필터 및 전환","window.open('/tutorials/tutorial4.asp')"); menu.subMenus[2].addItem("Dhtml 라이브러리","window.open('/tutorials/tutorial3.asp')"); menu.subMenus[2].addItem("문서 크기","window.open('/tutorials/tutorial2.asp')"); menu.subMenus[2].addItem("Dhtml 소개","window.open('/tutorials/tutorial1.asp')"); menu.subMenus[3].addItem("포럼 목록","window.open('/forums')"); menu.subMenus[3].addItem("멋진 사이트","window.open('/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')"); menu.subMenus[3].addItem("CoolMenus","window.open('/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')"); menu.subMenus[3].addItem("크로스 브라우저","window.open('/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')"); menu.subMenus[3].addItem("스크립트","window.open('/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')"); menu.subMenus[3].addItem("일반","window.open('/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')"); menu.subMenus[3].addItem("Off-Topic","window.open('/forums/forum.asp?FORUM_ID=9&CAT_ID=1&Forum_Title=Off%2Dtopic')"); c = menu.subMenus[4].addItem("멋진 사이트","toggle"); c.startAngle = 15; menu.subMenus[4].addItem("포털","window.open('/resources/default.asp?catid=7&cattitle=포털')"); menu.subMenus[4].addItem("스크립트 사이트","window.open('/resources/default.asp?catid=1&cattitle=Script+sites')"); menu.subMenus[4].addItem("튜토리얼 및<br>참조","toggle"); menu.subMenus[4].subMenus[0].addItem("상업 사이트","window.open('/resources/default.asp?catid=5&cattitle=Commercial+sites')"); menu.subMenus[4].subMenus[0].addItem("개인 사이트","window.open('/resources/default.asp?catid=6&cattitle=Personal+sites')"); menu.subMenus[4].subMenus[0].addItem("실험 프로젝트","window.open('/resources/default.asp?catid=4&cattitle=실험+프로젝트')"); menu.subMenus[4].subMenus[3].addItem("References","window.open('/resources/default.asp?catid=8&cattitle=References')"); menu.subMenus[4].subMenus[3].addItem("튜토리얼 및 기사","window.open('/resources/default.asp?catid=9&cattitle=Tutorials+and+Articles')"); //--></script> </body> </html>