Jan 18, 2010 / Labels: SEO
SEO - Adding Google Sitemap
You can now add Google sitemap to your blogger.com account and increase your chances of being indexed in Google search engine result. You can add a Sitemap to your account to give Google more information about the pages in your site to help Google crawl them more effectively, which means your pages get searched easily by engines.
Step # 1: Login to sitemap account
At the top of screen you will see option to add site. Just paste URL of your blog (for example http://anandsbloglab.blogspot.com/)
(Click to enlarge image)
Click on Ok button. Next you will get confirmation message. Your site has been added to your account.
Step # 2: Now you need to verify your ownership of blog to view detailed statistics. Click on verify link. Google offers two methods of verification. You can either upload an HTML file with a name we specify (which is not possible with Google Blogger account), or you can add a
(Click to enlarge image)
It will generate code for you, copy the meta tag and paste it into your blogger.com template section).
Step # 3: Go to your blogger.com and login to your account. Goto your blog dashboard > click Layout > Edit HTML > 
then find press ctrl+F and type
<head>... it will be highlighted..
Paste the

(Click to enlarge image)
Click on Save Template changes button
Click on View Blog button > Wait for few seconds so that your blog being published successfully.
Step # 4: Now goto sitemap account and click the box that read as follows:
I’ve added the
(Click to enlarge image)
Step # 5: Now your site is added to sitemap account and verification is done. Next you need to add actual sitemap url. Since blogger.com account dont allow you to create a text file or anything else you need to add your site feed (ATOM xml) file as a site map. Click on add a sitemap link:
(Click to enlarge image)
Step # 6: You can add a Sitemap to your account to provide Google additional information about about your blog. Google will process your Sitemap and provide information on any errors in the Sitemaps tab as well your sitemap will be downloaded everyday to index your blog fast.
Select type as : Add General Web sitemap
Now you need to add Atom 0.3 feeds. Generally, you would use this format only if your site already has a syndication feed
with beta you need to use following
Paste url of your feed: For example http://yourblogname.blogspot.com/feeds/posts/full as a feed url. and click ADD or ( atom.xml in case you areusing Atom .3 feed )
(Click to enlarge image)
You will get confirmation:
You have added a Sitemap to http://anandsbloglab.blogspot.com/. Reports may take several hours to update. Thank you for your patience!
And you are done and your blog will be now index very fast ( but it also depends upon your posting and content too :).
Sep 15, 2009 / Labels: HTML
Adding Image Links to Blog
href="Your Target Link Here"><img
src="Your Image Link Here"/></a>
(or simply copy paste) your target link in the region Your Target Link Here and the image link from
your Photobucket instead of Your image
Link Here
(ofcourse the link and image source will be different)
href="http://bloggerlaboratory.blogspot.com/"><img
src="http://i671.photobucket.com/albums/vv77/biotechbuster/24exqxdblank.gif"/></a>
href="http://bloggerlaboratory.blogspot.com/"><img
src="http://i671.photobucket.com/albums/vv77/biotechbuster/24exqxdblank.gif"/></a></center>

Sep 5, 2009 / Labels: HTML
Build your own Quiz
Did you know that you can create a quiz on you blog?
With this modification to your template code you can add a custom Quiz / MCQ's to your posts..
All you need is go to Layouts- Edit HTML- press cntrl+F for windows or Cmnd + F if u own a Mac and type in this ]]></b:skin>
Something will be highlighted ..
just after </b:skin> you need to copy paste the following code:
<SCRIPT language="JavaScript"
type="text/javascript">
<!--
//
// Documentation:
// http://chami.com/tips/javascript/
//
function checkAnswer(quizForm,
theAnswer,
urlRight,
urlWrong)
{
var s = "?";
// go through the "current choices"
// to find the selected choice.
// radio boxes pointing to choices
// must be named "cc"
// change if necessary
//
var i = 0;
for(;i<quizForm.elements.length;i++)
{
if(("cc" ==
quizForm.elements[i].name) &&
(quizForm.elements[i].checked))
{
s = quizForm.elements[i].value;
}
}
// no choice was selected
//
if("?" == s)
{
alert("Please make a selection.");
return false;
}
// check if we have the correct
// choice selected
//
if(s == theAnswer)
{
alert("'"+s+"' is correct!");
if(urlRight)
{
document.location.href = urlRight;
}
}
else
{
alert("'"+s+"' is incorrect.");
if( urlWrong )
{
document.location.href = urlWrong;
}
}
// return "false" to indicate not to
// submit the form.
// change this to "true" if the form
// "action" is valid,
// i.e. points to a valid CGI script
//
return false;
}
//-->
</SCRIPT>
Now save the template! If everything is fine you have added script to allow you to host a quiz for your visitors! Congratulations.. :)
Now the real part.. to create question answers in HTML. This is has to be free of errors! Phew!
take a look at the following code; you have to use this (i mean copy paste!) to create your posts.
What is Sudarshan Kriya?
<form method="post" onsubmit="return checkAnswer(this,'B');"><input value="A" name="cc" type="radio">
A. Lord Vishnu's Weapon.
<input value="B" name="cc" type="radio">
B. Most powerful meditation technique.
<input value="C" name="cc" type="radio">
C. A Computer programming language.
<input value="Submit Answer" type="submit">
</form>
You need to maintain this! you can change your questions and answers. But remember to assign value to your correct answer in this case it is 'B'. i would suggest you to first prepare your entire quiz in Rich text editor and then copy paste into your wysiwyg i.e where you create your posts
So wish you all the best... do post if you have any querry. I ll be honest to clarify. I am myself taking HTML tutorials.
Here is one questions for you..
Which is European Football Club is my favourite?
A. Real Madrid
B. Manchester United
C. Chelsea (Divided)
C. Juventus FC
The script that I used for this question was disabled. So you ll have to find your own script. Just Google out. And you can host it At Dropbox
/ Labels: Hacks
Placing Inline Comments Form Beneath the Posts
To add inline comment form to your Blogger, you need to sign in to your Dashboard through Blogger in Draft Then go to Layout > Edit HTML and click on Expand Widgets Template box.
Then press ctrl+f and find the following line:
and replace this entire section with following code:
then find this line:
and just below this line paste the following:
Then save yor template. and Go to the Settings>Comments and scroll down to 'Comment Form Placement'. check 'Embedded below Post' and save your settings.
You are done. Blogger has done a great job by providing this cool feature.
