battles/js/commoninf.js
2018-01-28 18:40:49 +02:00

23 lines
870 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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+="<A HREF=encicl/alignment.html target=_blank><IMG SRC='i/align_"+align+".gif' WIDTH=12 HEIGHT=15 ALT=\""+getalign(align)+"\"></A>";
if (klan) s+="<A HREF='encicl/klan/"+klan+".html' target=_blank><IMG SRC='i/klan/"+klan+".gif' WIDTH=24 HEIGHT=15 ALT=''></A>";
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);
}