The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

need help for this javascript about adding icon next to username

2 posters

Go down

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

Post by DemonicSurx Sat 22 Dec - 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?

need help for this javascript about adding icon next to username 3210

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 Sat 22 Dec - 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 : 15391
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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