Graham
GuruzLord Ok first you should not use a div inside a anchor link you should use a span
what "style" do you want to add to the link ? does it still include a image do you want to set the image as a background ?
I need proper information about what exactly you want to achieve so I dont waste my time on the wrong code
GuruzLord
Graham no image just a text in a span style with a background color like this
<span style="background-color:orange">Admin</span>
<span style="background-color:orange">Mod</span>
and
<span style="background-color:orange">Mem</span>
Graham
GuruzLord I will have a look tomorrow
Graham
GuruzLord Well the first part could be like
<script>
var authors = document.querySelectorAll("a[href*='/u/']");
for(i=0;i<authors.length;i++){
var span= document.createElement("span");
span.setAttribute("style", "background-color:orange");
span.innerHTML='Mem';
authors[i].appendChild(span);}
</script>
Copy code The rest you should be able to work out from that
ezed
I need a help pls my people
GuruzLord
Graham Sir I need some thing like this on my forum the icon and the dropdown menu