change bookmarks image
4 posters
Page 1 of 1
Re: change bookmarks image
i think there's no way
FL.ux- Forumember
- Posts : 841
Reputation : 18
Language : I hope I could be a FM staff :'(
Location : I shall fly to the subterranean sky.
Re: change bookmarks image
I give you the example for twitter Take a look at this css
- Code:
#bookmarks a img.twitter {background-image:url('your image url');}
Re: change bookmarks image
Try to add in your JavaScript management:
jQuery('div#bookmarks a img') = This code give the css selectors;
if(jQuery(this).attr('src') == 'LINK_ORIGINAL_IMAGE') = If the image attribute src from img tag that are selectors (div#bookmarks a img) is a certain image link replace that attribute's src value with new image;
jQuery(this).attr('src', 'LINK_NEW_IMAGE'); = As I said below, this code replace the value's src attribute.
I give you an example with first image: (https://2img.net/i/fa/social_bookmarking/twitter.png)
- Code:
jQuery(document).ready(function() {
jQuery('div#bookmarks a img').each(function() {
if(jQuery(this).attr('src') == 'LINK_ORIGINAL_IMAGE') jQuery(this).attr('src', 'LINK_NEW_IMAGE');
});
})
jQuery('div#bookmarks a img') = This code give the css selectors;
if(jQuery(this).attr('src') == 'LINK_ORIGINAL_IMAGE') = If the image attribute src from img tag that are selectors (div#bookmarks a img) is a certain image link replace that attribute's src value with new image;
jQuery(this).attr('src', 'LINK_NEW_IMAGE'); = As I said below, this code replace the value's src attribute.
I give you an example with first image: (https://2img.net/i/fa/social_bookmarking/twitter.png)
- Code:
jQuery(document).ready(function() {
jQuery('div#bookmarks a img').each(function() {
if(jQuery(this).attr('src') == 'http://2img.net/i/fa/social_bookmarking/twitter.png') jQuery(this).attr('src', 'http://i.imgur.com/8xvmW.gif');
});
})
Guest- Guest
Re: change bookmarks image
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» just change image
» Change the Image?
» Change image - Icon-> Done
» Change the color and the image.
» Image URL Change for Postimg
» Change the Image?
» Change image - Icon-> Done
» Change the color and the image.
» Image URL Change for Postimg
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum