Login
·
Signup
Home
»
XtGem
»
Coding help
»
GuruzLord
» View post
GuruzLord
Graham
Sir please help me Edit this code.
I don't want to use Icon any more, I want to replace the Icon with div style I have tried ma best to do it by my self but its not working out
/* Forum Member Icons By Redbullet Da Wapmaster website: http://redbullet.xtgem.com Email: bidexking2015@gmail.com Contact: 08071389491 */ //member Icons var icon = document.querySelectorAll("a[href*='/u/']"); for(i=0;i<icon.length;i++){ var lcon= document.createElement("img"); lcon.setAttribute("src", "/forum/icon/Mem.png"); lcon.setAttribute("class","icon"); icon[i].appendChild(lcon);} //Remove Member Icons var licon = document.querySelectorAll("a[href*='GuruzLord'] img.icon,a[href*='Cycwap'] img.icon,a[href*='Keyarn'] img.icon,a[href*='non'] img.icon,a[href*='non'] img.icon"); for(i=0;i<licon.length;i++){ licon[i].style.display="none";} //Admin Icon var Admn = document.querySelectorAll("a[href*='GuruzLord']"); for(i=0;i<Admn.length;i++){ var Adcn= document.createElement("img"); Adcn.setAttribute("src", "/forum/icon/lord_icon.png"); Adcn.setAttribute("class","admin"); Admn[i].appendChild(Adcn);} //Mods Icon var Mods = document.querySelectorAll("a[href*='Cycwap'],a[href*='non'],a[href*='Keyarn'],a[href*='non']"); for(i=0;i<Mods.length;i++){ var ModsIcon = document.createElement("img"); ModsIcon.setAttribute("src","/forum/icon/admins.png"); ModsIcon.setAttribute("class","Mods"); Mods[i].appendChild(ModsIcon); }
#
2017-03-17 10:49 ·
(0)
Home
»
XtGem
»
Coding help
»
GuruzLord
» View post
Online: Guests: 1
Log in