function mp_imgresize() { if ( document.fattpic ) { if ( document.fattpic.width > 580 ) { document.fattpic.width = 580; } } } function popup(url, name, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) { toolbar_str = toolbar ? 'yes' : 'no'; menubar_str = menubar ? 'yes' : 'no'; statusbar_str = statusbar ? 'yes' : 'no'; scrollbar_str = scrollbar ? 'yes' : 'no'; resizable_str = resizable ? 'yes' : 'no'; window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str); } function addFavoritePage(pname){ var url = '$SITE_SVR'; window.external.AddFavorite(url, pname); } function create_blog() { var pw_w = 400; var pw_h = 360; var h_mg = 50; var Cw = screen.availWidth; var Ch = screen.availHeight; var pw_left = (Cw - pw_w) / 2; var pw_top = (Ch - h_mg - pw_h) / 2; var url = 'http://blog.godpeople.com/pop/create_blog.html?from=blog'; var x = window.open(url,'create_blog','width='+pw_w+',height='+pw_h+',left='+pw_left+',top='+pw_top+',scrollbars=no,resizable=no,toolbar=no,statusbar=no'); x.focus(); } function go_myblog(blog_id){ parent.location.href = 'http://blog.godpeople.com/'+blog_id } function go_blogmake() { var pw_w = 400; var pw_h = 360; var h_mg = 50; var Cw = screen.availWidth; var Ch = screen.availHeight; var pw_left = (Cw - pw_w) / 2; var pw_top = (Ch - h_mg - pw_h) / 2; var url = 'http://blog.godpeople.com/pop/create_blog.html?from=blog'; var x = window.open(url,'create_blog','width='+pw_w+',height='+pw_h+',left='+pw_left+',top='+pw_top+',scrollbars=no,resizable=no,toolbar=no,statusbar=no'); x.focus(); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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= 650){ mplayer.style.height = mpbody.scrollHeight + (mpbody.offsetHeight - mpbody.clientHeight); }else{ mplayer.style.height = "650"; } mplayer.style.width = "800"; } function mp_setsize() { parent.setsize(); } function vspoll_setsize() { var mpbody = mainframe.document.body; var mplayer = document.all.mainframe; mplayer.style.height = mpbody.scrollHeight + (mpbody.offsetHeight - mpbody.clientHeight) mplayer.style.width = "500"; } function mp_setsize2() { parent.vspoll_setsize(); } function vspoll_question_view(c){ var d = document.all[c].style.display ; switch(d){ case 'block' : document.all[c].style.display = 'none' ; break; case 'none' : document.all[c].style.display = 'block' ; break; } } // ½ºÅ©·Ñ °ü·Ã ½ºÅ©¸³Æ® // Ãß°¡ÀÏ : 2008-03-05 // Ãß°¡ÀÚ : ÃÖÁö¿¬´ë¸® var sa = new Object(); sa.Scroll = function() { this.version = "0.2"; this.name = "sascroll"; this.divId = ""; this.item = new Array(); this.itemcount = 0; this.currentspeed = 0; this.scrollspeed = 10; this.pausedelay = 1000; this.pausemouseover = true; this.stop = false; this.height = 100; this.width = 400; this.stopHeight=0; this.i=0; this.reloadData = 0; } sa.Scroll.prototype = { add : function (text) { this.item[this.itemcount] = text; this.itemcount = this.itemcount + 1; }, setDivId : function(name) { this.divId = name }, start : function () { if ( this.itemcount == 1 ) { this.add(this.item[0]); } this.display(); this.currentspeed = this.scrollspeed; this.stop = true; setTimeout(this.name+'.scroll()',this.currentspeed); window.setTimeout(this.name+".stop = false", this.pausedelay); }, display : function () { var htmlCode; htmlCode = '
'; for(var i = 0; i < this.itemcount; i++) { htmlCode += '
'; htmlCode += this.item[i]; htmlCode += '
'; } htmlCode += '
'; document.getElementById(this.divId).innerHTML=htmlCode; }, scroll : function () { this.currentspeed = this.scrollspeed; if ( !this.stop ) { for (var i = 0; i < this.itemcount; i++) { obj = document.getElementById(this.name+'item'+i).style; obj.top = parseInt(obj.top) - 1; if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1); if ( parseInt(obj.top) == 0 ) { this.currentspeed = this.pausedelay; this.i = i; } } } window.setTimeout(this.name+".scroll()",this.currentspeed); } } sa.Ranking = function(scrollWidth, divid, scrollname){ this.sascroll = new sa.Scroll(); this.sascroll.name = ""; this.sascroll.name = scrollname; this.sascroll.height = 16; this.sascroll.width = scrollWidth; this.sascroll.scrollspeed = 68; this.sascroll.pausedelay = 2000; this.sascroll.pausemouseover = true; this.sascroll.divId = divid; } sa.Ranking.prototype = { init : function(){ this.sascroll.setDivId(this.sascroll.divId); this.sascroll.onmouseover = function() {} this.sascroll.onmouseout = function() {} }, add : function(text){ this.sascroll.add(text); }, start : function(){ this.init(); this.sascroll.start(); } }