Wednesday, 7 November 2012

Customised Flickr badge

And here is another tips for the bloggers on how to create a customised Flickr badge.

The challenge
I wanted to create a badge with my latest mobile shot from flickr.com. However I wanted the link for this badge to point to my own mobile blog and not the picture on flickr.com. How to do this? I just had to tweak some of the original Flickr badge code and the result can be viewed below. The only two new lines of code that I added was:

a.setAttribute('target', '_new');
a.setAttribute('href', 'http://morphogenetically.blogspot.com/');


The code
Customised Flickr integration / widget:


The result



No comments:

Post a Comment

Allowed HTML tags:
<b>bold</b>
<strong>strong</strong>
<i>italics</i>
<em>emphasis</em>
<a href="">hyperlink</a>


Please, show the courtesy of identifying yourself when adding a comment. Anonymous comments will, most likely, be removed.