الكود:
<!-- أسماء المجموعة مثل الفى بى --><script> (function wio_formatGroups() { var groups = document.getElementById('fa_groups'); if (groups) { for (var a = groups.getElementsByTagName('A'), i = 0, j = a.length, rgb, color; i < j; i++) { color = a[i].style.color; rgb = color.replace(/rgb\(|\)|\s/g, '').split(','); a[i].style.backgroundColor = color; a[i].style.color = Math.round(((parseInt(rgb[0]) * 299) + (parseInt(rgb[1]) * 587) + (parseInt(rgb[2]) * 114)) / 1000) > 125 ? '#000' : '#FFF' } }}());</script> <style> #fa_groups { font-size: 0px; } #fa_groups:before { content: " "; display: inline-block; font-size: 12px; font-weight: bold; } #fa_groups a { display: inline-block; padding: 5px; border-radius: 3px; font-size: 12px; margin: 3px; } </style>