📄 commonjs.js
字号:
function funcWinowPop(linkurl,popname,popprop)
{
window.open(linkurl,popname,popprop);
}
function funcGoBodyBottom()
{
document.body.scrollTop = (document.body.scrollHeight - 750) ;
}
function open_window_ehealth()
{
window.open('http://www.khcu.ac.kr/e-health/e-health_popup/e-health.html', 'ehealthwindow','width=723,height=733,resizable=no,scrollbars=no,top=0,left=0');
}
function funcMoveTopBottomBanner(divName){
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
var divMenu = document.all.item(divName);
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = document.body.scrollTop + 100;
timeoutNextCheck = 500;
if ( yMenuFrom != yMenuTo ) {
yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
if ( yMenuTo < yMenuFrom )
yOffset = -yOffset;
divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
setTimeout ("funcMoveTopBottomBanner('" + divName + "')", timeoutNextCheck);
}
function funcMoveTop()
{
document.body.scrollTop = 0;
}
function funcPopLoginPage()
{
window.open("/login/login.asp","winlogin","width=600,height=500");
}
function funcMenuLinkByRegi()
{
// alert("盔辑立荐绰 2004斥 12岿 20老(岿) 09:00何磐 啊瓷钦聪促.");
funcMenuLinkMyApp(1);
}
function funcMenuLinkByePay()
{
window.open('/mypage/epay/go_epay.asp','epay','resizable=yes, scrollbar=no, width=800, height=600, top=0, left=0');
}
function funcMainSiteLink(param)
{
switch(param.toLowerCase())
{
case "korean" :
document.location.href= '/';
break;
case "english" :
document.location.href='/english/about_founding.asp';
break;
case "japanese" :
document.location.href='/japanese/about_founding.asp';
//document.location.href='/foreign/japanese/j_philosophy.asp';
break;
case "chinese" :
document.location.href='/chinese/about_founding.asp';
//document.location.href='/foreign/chinese/c_philosophy.asp';
break;
}
}
function funcSetMyPageNavi(currnavi)
{
var objdivmypagenavi = document.all.item("divmypagenavi");
objdivmypagenavi.innerHTML = currnavi;
}
function funcMenuLinkMyApp(menukey)
{
var URLlink = "";
/*
&m2_3_1=funcMenuLinkMyApp(1);http://khcu.unets.net&
&m2_3_2=funcMenuLinkMyApp(2);javascript:alert("2004斥 12岿 20老(岿) 09:00何磐 啊瓷钦聪促.");&
&m2_3_3=funcMenuLinkMyApp(3);javascript:alert("2004斥 12岿 20老(岿) 09:00何磐 啊瓷钦聪促.");&
&m2_3_4=funcMenuLinkMyApp(4);javascript:alert("2004斥 12岿 20老(岿) 09:00何磐 啊瓷钦聪促.");&
&m2_3_5=funcMenuLinkMyApp(5);javascript:alert("秦寸 扁埃捞 酒凑聪促.");&
&m2_3_6=funcMenuLinkMyApp(6);javascript:alert("秦寸 扁埃捞 酒凑聪促.");& //addmission/search_pass.asp
&m2_3_7=funcMenuLinkMyApp(7);javascript:alert("秦寸 扁埃捞 酒凑聪促.");& //addmission/search_pass_print.asp
&m2_3_8=funcMenuLinkMyApp(8);javascript:alert("秦寸 扁埃捞 酒凑聪促.");& //addmission/search_certificate_print.asp
&m2_3_9=funcMenuLinkMyApp(9);javascript:alert("秦寸 扁埃捞 酒凑聪促.");& //addmission/search_sugang.asp
*/
switch(menukey)
{
// 盔辑累己 棺 荐沥
case 1 :
alert("秦寸 扁埃捞 酒凑聪促 ");
// URLlink = "http://khcu.unets.net";
break;
// 切诀拌裙辑累己 棺 荐沥
case 2 :
alert("盔辑立荐啊 付皑登菌嚼聪促. ");
// URLlink = "http://khcu.unets.net/?flag=my_apply";
break;
// 傈屈丰 吵何 棺 犬牢
case 3 :
// alert("秦寸 扁埃捞 酒凑聪促.");
URLlink = "http://khcu.unets.net/?flag=my_apply";
break;
// 盔辑立荐 犬牢
case 4 :
// alert("秦寸 扁埃捞 酒凑聪促.");
URLlink = "http://khcu.unets.net/?flag=my_apply";
break;
// 力免辑幅 犬牢
case 5 :
// alert("秦寸 扁埃捞 酒凑聪促.");
URLlink = "http://khcu.unets.net/?flag=my_apply";
// document.location.href = "/addmission/search_doc_check.asp";
break;
// 钦拜炼雀 (皋牢苞 涝切救郴狼 郴盔辑包府 甫 穿甫 锭档 咯扁肺~)
case 6 :
alert("秦寸 扁埃捞 酒凑聪促. ");
// URLlink = "http://khcu.unets.net/?flag=my_apply";
// document.location.href = "/addmission/search_pass.asp";
break;
// 钦拜刘免仿
case 7 :
// alert("秦寸 扁埃捞 酒凑聪促. \n\n(脚/祈涝积 钦拜炼雀 棺 殿废扁埃: 2005.8.5 ~ 2005.8.16) ");
// URLlink = "http://khcu.unets.net";
document.location.href = "/addmission/search_pass_print.asp";
break;
// 殿废陛吵何 棺 炼雀
case 8 :
// alert("秦寸 扁埃捞 酒凑聪促. \n\n(脚/祈涝积 钦拜炼雀 棺 殿废扁埃: 2005.8.5 ~ 2005.8.16) ");
// URLlink = "http://khcu.unets.net";
document.location.href = "/addmission/search_certificate_print.asp";
break;
// 荐碍脚没
case 9 :
// alert("秦寸 扁埃捞 酒凑聪促. \n\n(脚/祈涝积 荐碍脚没扁埃: 2005.8.17(岿) 17矫 ~ 8.29(岿) 17矫 ) ");
// window.open("http://61.74.68.217:8088","sugang1", "width=770,height=550,scrollbars,resizable=yes,toolbar=no,directories=no,menubar=no,left=0,top=0");
document.location.href = "/addmission/search_sugang.asp";
// funcMenuLinkMyPage(7);
break;
// 荐氰锅龋 炼雀
case 10 :
// alert("秦寸 扁埃捞 酒凑聪促. ");
document.location.href = "/addmission/search_accept_no.asp";
break;
// 力免辑幅 犬牢
case 11 :
// alert("秦寸 扁埃捞 酒凑聪促. ");
URLlink = "http://khcu.unets.net/?flag=my_apply"
break;
// 矫埃力 盔辑累己 傅农
case 12 :
alert("秦寸 扁埃捞 酒凑聪促. ");
// URLlink = "http://khcu.unets.net/?flag=my_apply"
break;
}
if(URLlink != "")
{
window.open(URLlink,"");
}
}
function funcMenuLinkMyPage(menukey)
{
var URLlink = "";
switch(menukey)
{
case 1 :
funcSetMyPageNavi(" > 俺牢沥焊包府");
URLlink = "/mypage/myinfo/myinfo.asp";
break;
case 2 :
funcSetMyPageNavi(" > 俺牢老沥包府");
URLlink = "/mypage/myschedule/SchMain.asp?cate=P";
break;
case 3 :
funcSetMyPageNavi(" > 切背傍瘤");
URLlink = "/mypage/schoolnews_list.asp?bbs_code=201&tb_name=020&titleimg=/mypage/img/bbs_title_3.gif";
//切苞傍瘤 绝澜 alert('家加切苞啊 绝嚼聪促.\n切苞肺 捞悼窍矫妨搁 谅螟窍窜狼 \'鸥切苞 权其捞瘤 啊扁\' 甫 捞侩秦林技夸.');
break;
case 4 :
funcSetMyPageNavi(" > 切背老沥包府");
URLlink = "/mypage/myschedule/SchMain.asp?cate=U";
break;
case 5 :
funcSetMyPageNavi(" > 切背汲巩焊扁");
URLlink = "/mypage/survey/SvyList.asp";
//alert('切锅炼雀 扁埃捞 酒凑聪促. \n\n2004切斥档 2切扁 脚/祈涝积 切锅炼雀绰 9岿 1老 沥坷 12:00何磐 炼雀 啊瓷钦聪促.');
break;
case 6 :
window.open('http://61.74.68.199:80/searchHB.asp','','status=no,resizable=no,scrollbars=no,width=600,height=430,left=300,top=150');
break;
case 7 :
alert('2005切斥档 悼拌拌例切扁 荐碍脚没捞 付皑登菌嚼聪促. \n\n沥沥棺 眠啊脚没篮 眠饶 切背 傍瘤甫 犬牢窍技夸. ');
// window.open("http://61.74.68.217:8021/index.html","sugang1", "width=700,height=580,scrollbars,resizable=yes,toolbar=no,directories=no,menubar=no,left=0,top=0");
break;
case 8 :
//alert('2004切斥档 2切扁 殿废陛炼雀绰 7岿 23老 09:30 何磐 啊瓷钦聪促. ') ;
//window.open("/popup/notice3_0131_1.html","0131_1", "width=505,height=600,scrollbars=yes,top=0,left=0");
funcMenuLinkByePay();
break;
case 9 :
funcSetMyPageNavi(" > 碍狼畴飘脚没");
URLlink = "/mypage/note_request/request_list.asp";
break;
case 10 :
funcSetMyPageNavi(" > 版锐堡厘");
URLlink = "/mypage/debate_list.asp";
break;
case 11 :
funcSetMyPageNavi(" > 秒诀沥焊舅府固");
URLlink = "/mypage/job_list.asp?bbs_code=202";
break;
case 12 :
window.open('http://61.74.68.208/chatserver/community.asp?userid=guest&passwd=guest2005', '措拳规', 'toolbar=no,location=no,scrollbars=no,width=630,height=370');
break;
case 13 :
funcSetMyPageNavi(" > 悼酒府规");
URLlink = "/mypage/club/index.asp";
break;
case 14 :
window.open("http://www.khcu.org/");
break;
case 15 :
funcGoMyMajor();
break;
case 16 :
window.open("http://myhome.naver.com/khcual/");
break;
case 18 :
window.open("http://cafe.daum.net/khcugg");
break;
case 19 :
window.open("http://cafe.daum.net/khcuyn");
break;
case 20 :
window.open("http://cafe.daum.net/khcuhn");
break;
case 21 :
window.open("http://cafe.daum.net/khcu2stgraduation");
break;
case 22 :
window.open("http://cafe.daum.net/khcucc");
break;
}
if(URLlink != "")
{
window.open(URLlink,"frameMyPage");
}
}
function funcSendMailToPro(objthis)
{
window.open('/common/formMail/mailForm.asp?receiver=' + objthis.innerHTML,'FormMail','width=469,height=400,menubar=no,scrollbars=no,resizable=no');
}
function funcSendMailPopWin(email)
{
window.open('/common/formMail/mailForm.asp?receiver=' + email,'FormMail','width=469,height=400,menubar=no,scrollbars=no,resizable=no');
}
function funcprofessorDetailView(obj)
{
var objarr;
var selectindex = 0;
var poppath = "/partinfo/professor/";
if(isNaN(obj.id))
{
objarr = document.all.item(obj.id);
for(i=0;i<objarr.length;i++)
{
if(objarr[i]==obj)
{
selectindex = i+1;
break;
}
}
}else
{
selectindex = obj.id;
}
if(selectindex>0)
{
if(selectindex<10) selectindex = "0" + selectindex;
var patchsubjectpage = funcGetSubjectPage();
switch(patchsubjectpage)
{
default :
poppath += patchsubjectpage +selectindex + ".html";
break;
}
window.open(poppath,'','width=400,height=450');
}
}
function funcsubjectDetailView(obj,objindex)
{
var objarr = document.all.item(obj.id);
var selectindex = 0;
var poppath = "/partinfo/subject_info/";
if(objindex!=undefined)
{
selectindex = objindex;
}else
{
for(i=0;i<objarr.length;i++)
{
if(objarr[i]==obj)
{
selectindex = i+1;
break;
}
}
}
if(selectindex>0)
{
switch(obj.id.toLowerCase())
{
case "culture" :
poppath += "cultural_" +selectindex + ".html";
break;
default :
var patchsubjectpage = funcGetSubjectPage();
switch(patchsubjectpage)
{
default :
poppath += patchsubjectpage +selectindex + ".html";
break;
}
}
window.open(poppath,'','width=400,height=350');
}
}
function funcGetSubjectPage()
{
var currURL = document.location.pathname;
var subjectPage= currURL.substring(currURL.lastIndexOf("/")+1);
subjectPage= subjectPage.substring(0,subjectPage.lastIndexOf("_")+1);
return subjectPage;
}
function newwin() {
window.open("/isaac/index.asp","isaac_main","toolbar=no, location=no, status = yes, menubar=no, scrollbars=yes, resizable=no, width=720, height=616");
}
function pop_isaacMain() {
window.open("/isaac/index.asp","isaac_main","toolbar=no, location=no, status = yes, menubar=no, scrollbars=yes, resizable=no, width=720, height=616");
}
function pop_khcuReview() {
window.open("/popup/notice5_0715.html","khcu_review_main","toolbar=no, location=no, status = yes, menubar=no, scrollbars=no, resizable=no, width=350, height=458");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -