need help for this javascript about adding icon next to username

Go down

In progress need help for this javascript about adding icon next to username

Post by DemonicSurx on Sat Dec 22 2018, 11:45

Hi guys, can you help me with some javascript ?

i've got this javascript here https://www.fmcodes.com/t995p25-add-verified-icon-next-to-nicknames?highlight=verified

and here's the javascript i used :

Code:
//*Verified system. Copyright ©️️ 2014 by www.fmcodes.com All Rights Reserved
jQuery(document).ready(function() {
$('p.author a[href="/uID"]').after('<img src="http://i56.servimg.com/u/f56/17/97/98/69/verifi10.png" style="padding-left: 4px;" alt="Verified" title="Verified">');
});

its works well but, how to add the icon too in here?



i prefer use the javascript instead the css here cuz with this javascript, the icon having a description when hover lol!

my forum http://beta-template.indonesianforum.net/t212-arawrwaawtwataw
DemonicSurx
DemonicSurx
New Member

Posts : 12
Reputation : 1
Language : Indonesia

http://beta-rf.indonesianforum.net/

Back to top Go down

In progress Re: need help for this javascript about adding icon next to username

Post by skouliki on Sat Dec 22 2018, 12:22

hello

try
Code:

a[href^="/u"] {background-image: url(IMAGE LINK);
background-repeat: no-repeat;
background-position: 0 0;
padding-left: WIDTH OF IMAGE;
}

Put the IMAGE LINK and WIDTH OF IMAGE as you want
skouliki
skouliki
Manager
Manager

Female Posts : 5692
Reputation : 894
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum