DeletedUser
Guest
Fluffy88
To add a new group you have
Kode:var player = "fluffy88"; var display = ['Attack', 'Google', 'Defense', 'ZC', '_1A', '_1D']; var color = ['#0033CC', '#00FF00', '#FFCC00', '#CC0000', '#0033CC', '#00FF00'];
to add another group you need both the group name and a new colour for the group,
just add a new group name in ' ' tags and dont forget to put in the , before it.
e.g.
Kode:var display = ['Attack', 'Google', 'Defense', 'ZC', '_1A', '_1D','this is a new group']; var color = ['#0033CC', '#00FF00', '#FFCC00', '#CC0000', '#0033CC', '#00FF00','and the new colour'];
Kode:javascript:var player="fluffy88";var display=['Attack','Google','Defense','ZC','_1A','_1D'];var color=['#0033CC','#00FF00','#FFCC00','#CC0000','#0033CC','#00FF00'];function getElementByClass(a,b){var c=document.getElementsByTagName(a);for(var x=0;x<c.length;x++){if(c[x].className==b){return c[x]}}return-1}function setStatusTitle(a,b){var c=document.getElementsByTagName("h2");if(c[0].innerHTML.length>12){c[0].innerHTML=c[0].innerHTML.replace(c[0].innerHTML.substring(12)," ("+a+"/"+b+")")}else{c[0].innerHTML+=" ("+a+"/"+b+")"}}if(document.URL.match(/screen=map/)){el=getElementByClass("table","map");var teller=1;maxaantal=(el.rows.length*el.rows[1].cells.length);for(var x=0;x<el.rows.length;x++){for(var y=0;y<el.rows[x].cells.length;y++){setStatusTitle(teller++,maxaantal);for(var z=0;z<display.length;z++){if(el.rows[x].cells[y].innerHTML.match(display[z],"i")&&el.rows[x].cells[y].innerHTML.match(player,"i")){el.rows[x].cells[y].innerHTML+="<div style = \"position: absolute; background-color:"+color[z]+"; filter:alpha(opacity=80); opacity:.8; -moz-opacity:.8; width:53px; height:12px; margin-top:-13px; display:block; color:black;\">"+display[z]+"</div>"}}}}}else{alert("This option can only be used in the map!")};void 0;
http://forum.tribalwars.net/showthread.php?t=129678&page=2
Hadde kanskje vært fint og fåd godkjent noe slikt som dette.