|
Implementation
How to add this plugin to your site. Steps
CSS Code / container /
div.my-blog-bar{
position:relative;
}
/ inner div /
div.mbb-inner{
border:silver 1px solid;
padding:4px 12px 8px;
margin:0 78px 0 0;
position:relative;
overflow:hidden;
}
/ bar title /
div.mbb-inner h2{
float:left;
font-size:12px;
margin:0 4px 0 0;
line-height:1.4em;
}
/ ul list /
div.mbb-inner ul{
float:left;
padding:0 0 0 0;
margin:0 0 0 0;
}
div.mbb-inner li{
margin:0 0 0 0;
line-height:1.4em;
list-style-type:none;
}
/ post link /
div.mbb-inner li a{
color:navy;
}
/ author name and date /
span.mbb-by{
color:gray;
}
/ excerpt and blog url /
.mbb-content{ }
.mbb-url{
color:green;
}
/ powered by google /
div.mbb-branding{
margin-top:0;
position:absolute;
right:0;
top:0;
width:75px;
}
div.mbb-branding-text{
color:gray;
font-size:10px;
}
a.mbb-branding-link img{
border-width:0;
}
Typical Usage <!--Inlcude once in your page--> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <script src="jquery.googleblogbar-1.0.min.js" type="text/javascript"></script> Custom Usage <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.googleblogbar-1.0.min.js" type="text/javascript"></script> <script type="text/javascript">
$(document).ready(function(){
$('div.some-other-class').myBlogBar({
key:'YOUR-KEY'
,title:'Blogsphere'
,q:'Google'
,hl:'en'
});
});
</script> <div class="some-other-class">loading...</div>
|
Sign in to add a comment