After adding the TweetMeMe to my blogger photoblog (http://www.marcorama.nl/) on march 18 I noticed the iframe had a white background in IE.
With some googeling I'd found a couple of post that for 80% covered the solution:
The steps to add the TweetMeMe button are:
- Login to blogger.com
- Go to the Layout tab
- Click on the Edit HTML link
- Before editing your template, you may want to save a copy of it. A link to do so is present at the top of the page
- Check the Expand Widget Templates box
(This way you can edit the code of the blogpost page element) - Look for <b:if cond='data:post.dateHeader'> and paste the code below (without the <b:if cond='data:post.dateHeader'> ofcourse ;))
The code
<b:if cond='data:post.dateHeader'>
<div id='tm_box' style='height:61px; width: 50px; position: relative; float:right; left:0px; padding: 0px 5px 5px 5px; background: transparent !important;'/>
<script type='text/javascript'>
function tweetMemeButton() {
if (document.getElementById('tm_box')) {
var iframeCode='';
var tm_posturl='<data:post.url/>';
iframeCode += "<iframe src=\"http://api.tweetmeme.com/button.js?url=" + tm_posturl + "&style=normal&source=marcoramaNL&service=bit.ly&hashtags=photography\" scrolling=\"no\" frameborder=\"0\" width=\"50\" height=\"61\" ALLOWTRANSPARENCY=\"true\"></iframe>";
document.getElementById('tm_box').innerHTML = iframeCode;
}
}
window.onload = tweetMemeButton;
</script>
Hope this helps you add the TweetMeMe button transparent to your site.
Marco




No comments:
Post a Comment