/*
JavaScript 문서
광고 코드 정적 js 일반 함수
원칙적으로 각 페이지에는 도메인 이름에 대한 고정 포인터가 있어서는 안 됩니다.
*/
/*
Config
* /
var sSiteUrl = "http://www.spvjoy.com";
//var sSiteUrl = "http://192.168.1.30:82"
var sSendSite = "http: // send.mmstoon.com";
var sMp3Url = "http://r01.mmstoon.com/mp3/";
var sRingUrl = "http://r01.mmstoon.com/ring/" ;
var sSpUrl = "http://r01.mmstoon.com";
var sMmfUrl = "http://r01.mmstoon.com/MmfRing/"
var sPhotoUrl = "http:/ /p01 .mmstoon.com/mmsimg/comm/";
var sVideoPicUrl = "http://r01.mmstoon.com/video/";
//var ServerUrl="http://search.mmstoon .com /netServer/";
//var ServerUrl="http://192.168.1.30/netServer/";
var ServerUrl="http://221.238.249.17/netServer/";
/*
함수 함수: URL에서 지정된 매개변수의 값을 가져옵니다.
*/
function GetUrlArg(strArg, strUrl) {
var _url
if(typeof( strUrl)==" 정의되지 않음")
_url = location.href "&";
else
_url = strUrl "&"
var regex = new RegExp("(\?|\& )" strArg "= ([^\&\?]*)\&", "gi");
if (! regex.test(_url)) return "";
var arr = regex.exec (_url);
return (RegExp.$2);
function urlQuery(){
var sq = ""
for(i=0; i
}
return sq;
}
/*
전역 변수
*/
var f = GetUrlArg("f")
var lower_cooid = GetUrlArg( "lower_cooid");
var adfcid = GetUrlArg("adfcid"); //이스케이프 처리된 이전 두 번째 줄 lower_cooid 매개변수
var ad_id = GetUrlArg("ad_id")
var s = GetUrlArg("s ");
var num = GetUrlArg("num");
var ty = GetUrlArg("ty");
var d = GetUrlArg("d");
if (ty== "")
{
ty="mp3";
}
if(lower_cooid=="" && adfcid!="") lower_cooid =
/*
오픈 링크 범용 함수, 매개변수가 필요하지 않음, 특수한 상황, 일반적인 상황에서는 사용하지 않는 것이 좋습니다.
*/
function openCommonWin( url ){
//주요 매개변수 배열
var sf = GetUrlArg("f", url )
var Slow_cooid = GetUrlArg("lower_cooid", url)
var sad_id = GetUrlArg("ad_id", url)
if(sf=="") sf = f ;
if(slower_cooid ==="") Slow_cooid = lower_cooid;
if(sad_id=="") sad_id = ad_id;
if(url.substring(0,"http://un. mmstoon.com".length)= ="http://un.mmstoon.com"){
> "?")[1]!=null) sUrl = sUrl "&" url.split("?") [1]
/*예외 처리*/
if (window.location.href.indexOf( "/MSNcode/")>0){
window.open(sUrl,"_self");
}else{ ~
/*
홈페이지 열기
*/
function openHome(){
if (window.location.href.indexOf("/blue/")>0){
window.open( "http://www.spjoy.com/AdFiles/blue/blue.htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&d=" d, '_blank');
}else{
window.open( sSiteUrl "?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&d=" d, '_blank')
}
}
/*
동맹 열기
*/
function openUn(){
//동맹이 2차 동맹을 관리하게 됩니다
if(f==" 98213")
{
window.open( "http://union.00yes.com/", '_blank');
}
else
{
window.open ( "http: //un.mmstoon.com/?f=" f, '_blank');
}
}
/*
주제 페이지 요약 열기
*/
function openSpecial(){
var ips = 36;
window.open( sSiteUrl "/ncList.htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&ty=special&ps =" ips "&d =" d, '_blank');
//window.location.href = sSiteUrl "/ncList.htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&ty=special&ps =" ips;
}
/*
검색 페이지 열기
*/
function openSearch(){
window.open( sSiteUrl "/search.htm? f=" f "&lower_cooid =" lower_cooid "&ad_id=" ad_id "&d=" d, '_blank');
//window.location.href = sSiteUrl "/search.htm?f=" f "&lower_cooid= " lower_cooid "&ad_id=" ad_id;
}
/*
MMS DIY 페이지 열기
*/
function openDiy(){
window.open( sSiteUrl "/ zyzse.htm?f= " f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&d=" d, '_blank');
}
/*
새 창에서 링크 열기
*/
function openSendWin(ty, num){
if(ty=="") ty = "mp3";
//window.open(sSendSite "/Send/SendRedirect.asp? f=" f "&lower_cooid =" lower_cooid "&ad_id=" ad_id "&num=" num "&ty=" ty,'_blank','left=100,top=0,width=100,height=100,status=yes, resizing=yes');
window.open(sSendSite "/Send/SendRedirect.asp?f=" f "&lower_cooid=" lower_cooid=" lower_cooid "&ad_id=" ad_id "&num=" num "&ty=" ty " &d=" d,'_blank') ;
//window.showModalDialog( sSendSite "/Send/SendRedirect.asp?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&num=" num "&ty= " ty,'_blank','dialogWidth :432px;dialogHeight:400px;center:yes;status:0;help:0;edge:raised;resizing:1;scroll:1');
}
/*
in iframe
*/
function openSendWinInIfr( ty, num, sSubject, sReviewFile){
window.open( sSendSite "/Send/SendFalse.asp?f=에서 링크 열기 " f "&lower_cooid=" lower_cooid "&ad_id =" ad_id "&num=" num "&ty=" ty ""&subject=" sSubject "&u=" sReviewFile "&d=" d,'winSend')
}
/*
가수 앨범 페이지에 대한 공통 기능을 엽니다. 여기에서 기본 리소스 유형을 변경할 수 있습니다.
*/
function openSongerWin(strSonger, ty){
var sty="mp3" ;
if(typeof(ty)!=" 정의되지 않음") sty = ty
window.open( sSiteUrl "/searchResult.htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&search= " strSonger "&ty=" sty "&d=" d, '_spvsearch');
}
/*
코드 열 목록 열기
*/
function openChnChordWin( chn ){
openChnList( "링", chn )
}
/*
Mp3 열 목록 열기
*/
function openChnMp3Win( chn ){
//openChnList( "mp3", chn )
openChnList( "spring ", chn );
}
/*
특수 효과 열 목록 열기
*/
function openChnSpWin( chn ){
openChnList( "spring", chn );
}
/*
MMF 특수 효과 열 목록 열기
*/
function openChnMmfWin( chn ){
openChnList( "mmf", chn ); 🎜>}
/*
MMS 열 목록 열기
*/
function openPicWin( chn ){
openChnList( "photo", chn )
/*
아름다운 컬러 그림 열 목록 열기
*/
function openPicsWin( chn ){
openChnList( "photo", chn )
}
/*
프레임에서 열 목록 열기
*/
function openListWin( chn ){
var sCurUrl = window.location.href
var sQuery = "f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&ty=" ty "&chn=" chn "&ps=" ps "&d=" d ;
/*웹 페이지 템플릿 전환*/
if (sCurUrl. indexOf("/blue/ ")>0){
switch(ty){
case "photo":
window.open( sSiteUrl "/blue/plist.htm?" sQuery, 'ifrList' );
break ;
case "video":
window.open( sSiteUrl "/blue/vlist.htm?" sQuery, 'ifrList')
break; ":
window .open( sSiteUrl "/blue/ilist.htm?" sQuery, 'ifrList');
break;
기본값:
window.open( sSiteUrl "/ blue/mlist. htm?" sQuery, 'ifrList');
"/list.htm?" sQuery, 'ifrList');
}else{
🎜>}
function openChnList( ty, chn ){
var schn="";
var ips = 92;
if( ty == "photo" || ty == "video" )
if(typeof (chn)!="정의되지 않음") schn = chn;
var sCurUrl = window.location.href;
/*웹 페이지 템플릿 전환*/
if ( sCurUrl.indexOf("/blue/" )>0){
ips = 36;
if( ty == "photo" || ty == "video" ) ips=16> // location.replace( sSiteUrl "/blue/ " ty ".htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&ty=" ty "&chn=" schn "&ps=" ips);
window .open( sSiteUrl "/blue/" ty ".htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&ty=" ty "&chn=" schn "&ps=" ips "&d=" d, ' _spvchn')
}
else
window.open( sSiteUrl "/cList.htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&ty=" ty "&chn=" schn "&ps=" ips "&d= " d , '_spvchn');
}
/*
搜索窗体提交
*/
var des="请输入歌手或歌name";
함수 cf(e){if(e.value==des){e.value="";e.select();}}
함수 cl(e){if(e.value.replace (/ /g,"").replace(/ /g,"")==''){e.value=des;}}
function searchSubmit(e){
시도해 보세요{
if(e.nodeName.toLowerCase()=="input")
e=e.parentElement.previousSibling.firstChild;
if(e.value==des||e.value.replace(/ /g,"")==''){
e.select();
false를 반환합니다.
}
else
window.open( sSiteUrl "/searchResult.htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&search=" e.value "&d=" d , ' _spvsearch');
//window.location.href= sSiteUrl "/searchResult.htm?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&search=" e.value;
}catch(ee)
{
//alert(ee);
}
}
/*
当页면加载完成之后事件处理
*/
function funcOnload(){
var oIfr = document.all(" winSend");
if( oIfr != null ){
oIfr.src = sSendSite "/send/SendSearchM.asp?f=" f "&lower_cooid=" lower_cooid "&ad_id=" ad_id "&l=1&s=" s "&num =" num "&d=" d
}
/*
使XX得到焦点
*/
//var oTxtSearch = document.all("search");
//if(oTxtSearch!=null){
// oTxtSearch.focus();
//}else{
// var oLink = document.getElementsByTagName("a");
// if(oLink.length>0){
// oLink[0].focus();
// }
//}
}
window.attachEvent("onload",funcOnload);
/*
页face统计写入
*/
function PvStat(){
var ty = GetUrlArg("ty");
document.write("");
}
/*
搜索关键字统计写入
*/
function SearchKeyStat(strKey){
var ty = GetUrlArg("ty");
var sKey;
if(typeof(strKey)!="정의되지 않음"){
sKey = strKey;
}
else{
sKey = GetUrlArg("search");
}
document.write("");
}
function wrLoading(){
try{
var oBody = window.document.body;
var iTop = 250;
var iLeft = 400;
if( oBody != null ) {
iTop = oBody.clientHeight/2 - 20;
iLeft = oBody.clientWidth/2 - 75;
}
/*
var strDiv = "
strDiv += "";
strDiv += "";
strDiv += "";
strDiv += "
*/
var strDiv = "
strDiv += "";
strDiv += "";
strDiv += "数据加载中,请稍等......";
strDiv += "
document.write(strDiv);
}catch(e){
alert(e.description);
}
}
//wrLoading() ;
function hideLoading(){
if(typeof(loading)!="undefine")
loading.style.display="none"
//window.attachEvent( "onload", hideLoading);
/*写一个logo
function writeLogo(){
var iTop = document.body.scrollHeight - 45; "
");
"
} if( f==117215 && window.location.href.indexOf("/FullChannel2/")>0){
window.attachEvent("onload", writeLogo)
}
*/
/ *
**********************视频代码跳转******************** ********시작
if(location.href.substring(0,"http://www.spjoy.com/AdFiles/sp760-300/sp760-300.htm".length)== "http://www.spjoy.com/AdFiles/sp760-300/sp760-300.htm")
{
location.href = "http://www.spjoy.com/AdFiles/760- 300-1/760-300-1.htm?" location.href.split("?")[1];
}
if(location.href.substring(0,"http: //www.spjoy.com/AdFiles/sp760-80/760-80.htm".length)=="http://www.spjoy.com/AdFiles/sp760-80/760-80.htm")
{
location.href = "http://www.spjoy.com/AdFiles/760-80-3/760-80-3.htm?" location.href.split("?")[1 ];
}
**********************视频代码跳转******************** ***********종료
*/
/*
************************부분대码跳转到IVR************************시작
if(location.href.substring(0,"http://www. spjoy.com/AdFiles/300-300-6/300-300-6.htm".length)=="http://www.spjoy.com/AdFiles/300-300-6/300-300-6. htm")
{
location.replace("http://www.spjoy.com/AdFiles/ivr300-300/ivr300-300.htm?" location.href.split("?")[1 ]);
}
if(location.href.substring(0,"http://www.spjoy.com/AdFiles/468-60-3/468-60-3.htm".length) =="http://www.spjoy.com/AdFiles/468-60-3/468-60-3.htm")
{
location.replace("http://www.spjoy. com/AdFiles/ivr468-60/ivr468-60.htm?" location.href.split("?")[1]);
}
if(location.href.substring(0,"http://www.spjoy.com/AdFiles/DJ760-90/dj760-90.htm".length)=="http ://www.spjoy.com/AdFiles/DJ760-90/dj760-90.htm")
{
location.replace("http://www.spjoy.com/AdFiles/ivr760-90/ ivr760-90.htm?" location.href.split("?")[1]);
}
if(location.href.substring(0,"http://www.spjoy.com/AdFiles/468-95-2/468-95-2.htm".length) =="http://www.spjoy.com/AdFiles/468-95-2/468-95-2.htm")
{
location.replace("http://www.spjoy. com/AdFiles/ivr468-95/ivr468-95.htm?" location.href.split("?")[1]);
}
if(location.href.substring(0,"http://www.spjoy.com/AdFiles/650-70-2/650-70-2.htm".length) =="http://www.spjoy.com/AdFiles/650-70-2/650-70-2.htm")
{
location.replace("http://www.spjoy. com/AdFiles/ivr650-70/ivr650-70.htm?" location.href.split("?")[1]);
}
********************** 부분대码跳转到IVR******************** *************종료
*/