");
window.clipboardData.setData("Text", "<"+code+">");
location.hash="code";
}else{
alert('µî·ÏÀÌ ½ÇÆÐ ÇÏ¿´½À´Ï´Ù.');
location.href = './rank_widget_entry.php';
}
break;
}
}
}
}
function flash_write(){
var width_arr = Array('0','180','234','240','120','460');
var height_arr = Array('0','150','60','120','240','60');
type = $("#flash_type option:selected").val();
color = $("#flash_color option:selected").val();
var url = 'widget/swf_u/widget_' + type + '_' + color + '.swf?' + grp_id + ',' + 'preview' + ',100';
var size = "width='" + width_arr[type] + "' height='" + height_arr[type] +"'";
var html = "";
$("#flash_area").html(html);
}
function report_open(){
var obj = window.open('./widget/widget_report_view.php?grp_id='+grp_id+'&key_no=preview','rankey_widget_report','width=510,height=845,scrollbars=no');
obj.focus();
}
function viewReport(){
report_open();
}
function goWidget(){
}
function setup_end(){
alert("·©Å°À§Á¬Àº ÀϹÝ(¹«·á)ȸ¿øÀÌ¸é ´©±¸³ª À̿밡´ÉÇÑ ¼ºñ½ºÀÔ´Ï´Ù.\n\n·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä.");
if(document.loginFrm){
document.loginFrm.id.style.backgroundColor = "#FFFF99";
document.loginFrm.passwd.style.backgroundColor = "#FFFF99";
document.loginFrm.id.focus();
return;
}
}
function value_change(){
if($("#domain").val() == '¿¹) www.rankey.com'){
$("#domain").val('');
}
}
function value_input(){
if($("#domain").val() == ''){
$("#domain").val('¿¹) www.rankey.com');
}
}
function WinOnload(){
setMenuText("img_r29");
//setMenuImg("img_r29");
}
var search_json;
var search_arr = Array();
var total_auto = 0;
var cur_auto;
function _auto_complete(word){
if(word == ''){
total_auto = 0;
auto_close();
return;
}
if(search_arr[word] != null){
auto_list(search_arr[word], word);
return;
}
$.ajax({
url:'/search/ajax/ajax_auto_complete.php',
type:'GET',
data:"search_wd="+word,
error:function(){
alert('´Ù½Ã ½ÃµµÇØ ÁÖ¼¼¿ä.');
},
success:function(json){
var res = eval("(" + json + ")");
search_arr[word] = res;
auto_list(res, word);
}
});
}
function auto_list(json, word){
if(json.length == 0){
return;
}
total_auto = json.length;
cur_auto = -1;
search_json = json;
html = '
';
html +='';
for(i=0;i"+word+"");
html +='';
html +='| '+str;
html +=' | ';
}
html +=' |
';
$("#auto_layer").empty();
$("#auto_layer").append(html);
auto_open();
}
function word_select(){
if(total_auto != 0){
auto_open();
}else{
return;
}
if(cur_auto >= total_auto){
cur_auto = 0;
}
if(cur_auto < 0){
cur_auto = total_auto -1;
}
$(".auto_word").css('backgroundColor','#FFFFFF');
$("#auto_word_"+cur_auto).css('backgroundColor','#E2E2E2');
$("#domain").val(search_json[cur_auto].grp_pt);
}
function key_check(code){
switch(code){
case 13:
domain_check();
break;
case 38:
cur_auto--;
word_select();
break;
case 40:
cur_auto++;
word_select();
break;
default:
_auto_complete($("#domain").val());
}
}
function auto_close(){
$("#flash_type").show();
$("#auto_layer").hide();
}
function auto_open(){
$("#flash_type").hide();
$("#auto_layer").show();
}
function auto_over(tr, no){
$('.auto_word').css('backgroundColor','#FFFFFF');
tr.style.backgroundColor='#E2E2E2';
cur_auto = no;
}
function auto_out(){
$('.auto_word').css('backgroundColor','#FFFFFF');
$("#auto_word_"+cur_auto).css('backgroundColor','#E2E2E2');
}