function parse_link_url(url)
{
var tmp_url = url.split('%2F');
var par_url='';
if(tmp_url.length >2)
{
for(var i=2; i<tmp_url.length; i++)
{
par_url = par_url + tmp_url[i]+'/';
}
}
else
{
par_url =tmp_url[2];
}
par_urls = 'http://'+par_url;
return par_urls;
}
//¼Ò½ºÁ¡ ó¸®
function number_format(_text)
{
b=_text+"c";
c=b.length;
a=b.substr(0,c-1);
b=a.length ;
c=b/3 ;
f=Math.floor(b/3) ;
d=Math.round((c-f)*3) ;
e=Math.round((c-f)*3)
f=new Array;
for (i=0;i<=c;i++)
{
if(i==0){
ds=a.substr(0,d)
}
else if(i==1){
ds=a.substr(e,d)
}
else {
e=e+3 ;
ds=a.substr(e,d)
}
f[i]=ds ;
d=3;
}
str=f.join(",");
str2=str.substr(0,1) ;
if (str2==","){
str=str.substr(1,b+c) ;
}
return str;
}
function view_tooltip(_xpos, _ypos, id, _text)
{
_root.tooltip._visible = true;
_root.tooltip._x = _xpos;
_root.tooltip._y = _ypos - 30;
for (i = 1; i <= 7; i++)
{
if (id._name == this["g" + i]._name)
{
this["g" + i]._alpha = 100;
continue;
} // end if
this["g" + i]._alpha = 30;
} // end of for
_root.tooltip.tooltip_text.text = number_format(_text);
} // End of the function
function hidden_tooltip()
{
_root.tooltip._visible = false;
for (i = 1; i <= 7; i++)
{
this["g" + i]._alpha = 100;
} // end of for
} // End of the function
for (i = 1; i <= 7; i++)
{
this["g" + i]._height = 1;
} // end of for
var hei_temp = _graph_height;
var _xtext_temp = _graph_x;
var val_text_temp = _graph_tooltip;
var _ytext_temp = _graph_y;
var hei = hei_temp.split(",");
var _xtext = _xtext_temp.split(",");
var val_text = val_text_temp.split(",");
var _ytext = _ytext_temp;
var old_max = 0;
for (i = 0; i < 6; i++)
{
k = i + 1;
var max_hei = Math.max(hei[i], hei[k]);
if (old_max < max_hei)
{
old_max = max_hei;
} // end if
max_heis = Math.max(old_max, max_hei);
} // end of for
var view_rate = Math.round(34 * max_heis / _ytext);
for (i = 0; i < 5; i++)
{
var j = _ytext - _ytext * (i / 4);
this["_y" + i].text = Math.ceil(_ytext - j);
} // end of for
this.onEnterFrame = function ()
{
for (i = 1; i <= 7; i++)
{
var _loc3 = i - 1;
var _loc4 = Math.ceil(136 * hei[_loc3] / _ytext);
if (_loc4 > 160)
{
_loc4 = Math.ceil(_loc4 / 160);
}
else
{
_locs = Math.ceil(_loc4);
} // end else if
if (this["g" + i]._height >= _loc4)
{
this["g" + i]._height = _loc4;
}
else
{
this["g" + i]._height = this["g" + i]._height + 10;
} // end else if
this["_x" + i].text = _xtext[_loc3];
this["g" + i].onRollOver = function ()
{
var _loc3 = substring(this._name, 2, 1) - 1;
view_tooltip(this._x, _root._ymouse, this, val_text[_loc3]);
};
this["g" + i].onRollOut = function ()
{
hidden_tooltip();
};
} // end of for
};
| 1 |