need help for this javascript about adding icon next to username
2 posters
Page 1 of 1
need help for this javascript about adding icon next to username
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 :
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
my forum http://beta-template.indonesianforum.net/t212-arawrwaawtwataw
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
my forum http://beta-template.indonesianforum.net/t212-arawrwaawtwataw
Re: need help for this javascript about adding icon next to username
hello
try
Put the IMAGE LINK and WIDTH OF IMAGE as you want
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
Similar topics
» {USERNAME*} Function in Javascript?
» JavaScript/CSS adding picture For VM notification.
» Question about Rainbow Username JavaScript
» Adding analytics javascript (HotJar) to site.
» Suggestion, adding a evaluation icon
» JavaScript/CSS adding picture For VM notification.
» Question about Rainbow Username JavaScript
» Adding analytics javascript (HotJar) to site.
» Suggestion, adding a evaluation icon
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum