Description about the javascript parameters:
(Note: if you want a text only link, please use
customText : “Share this on Orkut!” instead of
customImage : ‘http://i48.tinypic.com/9urbs9.png’
in any of the below code)
1. Adding the default Orkut Share button to any webpage
2. Adding a custom Image with Orkut Share link
3. Sharing a custom URL, Page Title with default Image
4. Sharing a custom URL, Page Title with a custom Image
5. Want more custom? you can provide the content text, and Thumbnail of your webpage, and also the message for sharing the page
Default Orkut Share Image
Custom Orkut Share Image
You can use your own Image by providing the Image url in the above code (In the place of http://i48.tinypic.com/9urbs9.png)
Adding Orkut share link to WordPress blog
Paste the following code on your single.php file, within the loop:
Instead of “Share on Orkut” text, you can use any image, like,
(Note: if you want a text only link, please use
customText : “Share this on Orkut!” instead of
customImage : ‘http://i48.tinypic.com/9urbs9.png’
in any of the below code)
1. Adding the default Orkut Share button to any webpage
<script
src="http://orkut-share.googlecode.com/svn/trunk/orkutShare.js">
</script>
2. Adding a custom Image with Orkut Share link
<script>var orkutShare = { customImage : 'http://i48.tinypic.com/9urbs9.png' }</script> <script src="http://orkut-share.googlecode.com/svn/trunk/orkutShare.js"> </script>
You can use your own Image by providing the Image url in the above code (In the place of http://i48.tinypic.com/9urbs9.png)
3. Sharing a custom URL, Page Title with default Image
<script>var orkutShare = {
url : 'http://www.didiknow.com',
title: 'Did I Know?'
}</script>
<script
src="http://orkut-share.googlecode.com/svn/trunk/orkutShare.js">
</script>
<script>var orkutShare = { url : 'http://www.didiknow.com', title: 'Did I Know?', customImage : 'http://i48.tinypic.com/9urbs9.png' }</script> <script src="http://orkut-share.googlecode.com/svn/trunk/orkutShare.js"> </script>
<script>var orkutShare = {
url : 'http://www.didiknow.com',
title: 'Did I Know?',
customImage : 'http://i48.tinypic.com/9urbs9.png',
content : 'A blog that follows Google, Friend connect,
GMail, Chrome and more..',
shareText : 'Check out this website',
thumbnail : 'http://i50.tinypic.com/2luuxw5.png'
}</script>
<script
src="http://orkut-share.googlecode.com/svn/trunk/orkutShare.js">
</script>
Change the URL and Page title to your own URL and Page title.
Adding Orkut Share link for Blogger blogs
1. Goto Blogger dashboard of your blog.
2. Goto Layout tab, click “Edit Html”
3. Check the “Expand Widget Templates” checkbox
4. Locate
<div class='post-footer'>
in the template.
5. Just below the above code, paste any of the below code snippet, and save the template.
Default Orkut Share Image
<script>var orkutShare = { url : '<data:post.url/>', title: '<data:post.title/>' }</script> <script src="http://orkut-share.googlecode.com/svn/trunk/orkutShare.js"> </script>
Custom Orkut Share Image
<script>var orkutShare = { url : '<data:post.url/>', title: '<data:post.title/>', customImage : 'http://i48.tinypic.com/9urbs9.png' }</script> <script src="http://orkut-share.googlecode.com/svn/trunk/orkutShare.js"> </script>
Adding Orkut share link to WordPress blog
Paste the following code on your single.php file, within the loop:
<a href="http://promote.orkut.com/preview?nt=orkut.com& tt=<?php the_title();?>&du=<?php the_permalink();?>" target="_blank">Share on Orkut</a>
Instead of “Share on Orkut” text, you can use any image, like,
<a href="http://promote.orkut.com/preview?nt=orkut.com& tt=<?php the_title();?>&du=<?php the_permalink();?>" target="_blank"> <img src="http://code.google.com/apis/orkut/docs/images/share.gif" border=0> </a>
No comments:
Post a Comment