How can i change the imagines from the Blog bookmark, SS:
4 posters
change bookmarks image
Richard.- Forumember
- Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.
- Post n°1
change bookmarks image
Richard.- Forumember
- Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.
- Post n°2
Re: change bookmarks image
bump
FL.ux- Forumember
- Posts : 841
Reputation : 18
Language : I hope I could be a FM staff :'(
Location : I shall fly to the subterranean sky.
- Post n°3
Re: change bookmarks image
i think there's no way
robot_boy18- Forumember
- Posts : 107
Reputation : 7
Language : English
Location : Greenville, South Carolina, USA
- Post n°4
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');}
Guest- Guest
- Post n°5
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');
});
})
Richard.- Forumember
- Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.
- Post n°6
Re: change bookmarks image
Thanks Gassy.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
- Post n°8
Re: change bookmarks image
Topic Solved & Locked |