The Roost | Wiffle Ball | 

RSS
  




  

+1


Via adamwlewis.com. Works great, btw...

I recently added a Flickr Badge to the header of my blog and really loved everything about it except that... there was no way to have it open the photos in a new window when they were clicked. Because the code was written by Flickr I had no way to modify it before it was created, but I did afterwards. Here is the code Flickr gave me to add the badge to my site minus some extra "fluff" code that I've removed for the sake of shortening this post:

<table cellpadding="0" cellspacing="0" border="0" id="flickr_badge_wrapper">
<tr>
<script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne..."></script>
</tr>
</table>

So, I simply wrote a script that would loop back through all of the links within the table "flickr_badge_wrapper" and change their "target" property to "_blank". Here is the code.

<script>
<!--
var oFlickrTable = document.getElementById("flickr_badge_wrapper");
oFlickrBadgePhotos = oFlickrTable.getElementsByTagName("a");
for (nBadgePhoto = 0; nBadgePhoto < oFlickrBadgePhotos.length; nBadgePhoto++) {
oFlickrBadgePhotos[nBadgePhoto].target = "_blank";
}
//-->
</script>

Feel free to use this code yourself, just be sure that if you've renamed "flickr_badge_wrapper" (or Flickr changed the name by the time you read this article) that you update my code. Enjoy!



  




  



Andrew Burr once drove us and his mom's Infiniti at 55 MPH over this launch ramp/road in Bernardsville, NJ. It took us 3 trials to get the balls to do so...but when we did, we were like...and then were like...and then we noticed the foot long crack running up and down the center of the windshield. Afterwards, I think we told his mom that a very, very large hit it on our way to the mall. It could have turned out different, but for a moment I felt like this kid.


  



I grew up on a culdesac (Stark Circle) in Yardley, PA. Just about every kid on the block had a big wheel. We use to build ramps, put rocks in the tires (after the handbrake had worn them down), and when the time came, we'd put them out of their misery w/ round or two of demolition derby. Then we'd beg our parents to buy us news ones so we could start the whole process all over again...

See also, Meeker Road.


  




  




  

+1


via The Invisible Hair Suit


  




  





Older Entries >>





Flickrness


a Bookcase Angel Production - Page Generated in 0.2748 seconds