23 lines
768 B
JavaScript
23 lines
768 B
JavaScript
function getalign(al)
|
||
{
|
||
al+="";
|
||
if (al.substring(0,1)=="3") return("Темное братство");
|
||
if (al.substring(0,1)=="2") return("Хаос");
|
||
if (al.substring(0,1)=="1") return("Белое братство");
|
||
if (al=="0.5" || al.substring(0,1)=="7") return("Нейтрал");
|
||
return("");
|
||
}
|
||
|
||
function drwfl(name, id, level, align, klan)
|
||
{
|
||
var s="";
|
||
|
||
if (align!="0") s+="<IMG SRC='i/align_"+align+".gif' WIDTH=12 HEIGHT=15 ALT=\""+getalign(align)+"\">";
|
||
if (klan) s+="<IMG SRC='i/klan/"+klan+".gif' WIDTH=24 HEIGHT=15 ALT=''>";
|
||
s+="<B>"+name+"</B> ";
|
||
if (level!=-1) s+="["+level+"]";
|
||
if (id!=-1) s+="<A HREF="+id+"'../inf.php?' target='_blank'><IMG SRC=i/inf.gif WIDTH=12 HEIGHT=11 ALT='Инф. о "+name+"'></A>";
|
||
|
||
document.write(s);
|
||
}
|