Add An Animated Notice Box To Blogger

Today, I would like to present you an interesting widget, "The Animated Notice Box". This widget will add a notice box such that it flashes for certain number of times say three times and then, will stay static on the web page until the user wishes to close it. It is something like an alert message which you would have seen in many websites. But, this kind of alert message can be used to increase the subscribers for your blog. If you still haven't got an idea about what I am explaining here, then just look at the screen shot below.
animated-notice-boxI hope you got an idea about the widget now. If not just visit this blog "My Test Blog" to view the demo of this widget. I will initially explain you how to install this widget in your blog with a general message as shown in the screen shot above. Later, I will provide you the code which I installed in "My Test Blog" that displays a message to the visitor asking him/her to subscribe to the blog. Let us get to our work now.

1. Go to "Design->Edit HTML. Make a backup of your template before modifying the HTML by clicking on the "Download full template" link at the top of the page.
2. Search for the following line in your template. Use "CTRL+F" to fasten your search.
]]></b:skin>
3.Add the following piece of code just below the line mentioned in step 2.
<style>
#info{
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
position:relative;
color: #00529B;
background-color: #BDE5F8;
background-image: url('http://i46.tinypic.com/jzf8tk.jpg');
}
</style>
<script src='http://code.jquery.com/jquery-1.2.3.min.js' type='text/javascript'>
</script>
<script type='text/javascript'>
$(document).ready(function(){
$(".close").click(function(){
$("#info").animate({left:"+=10px"}).animate({left:"-5000px"});
});
$("#info").fadeOut(800).fadeIn(800).fadeOut(400).fadeIn(400)
.fadeOut(400).fadeIn(400);
});
</script>
4. Save your template. Next, you need to add the "div" section of the code any where in between the body tags of your template. The simplest way to add this code is to use the "HTML/Javascript" plug-in in blogger.
5. To do so, just navigate as follows: Design->Page Elements. Now, click on "Add a Gadget" and select "HTML/Javascript". Paste the following piece of code and hit the Save button. Leave the title section of the widget empty.
<div id="info">
<a class="close" href="#close" style="float: right;"><img border="0" src="http://i48.tinypic.com/3502jif.jpg" /></a>
This Is Your Message .You can change it to Your need. Click on close button on right to exit this box</div>
6. You may drag the widget any where you want. Once you finalize the place, click on save again and view your blog with the "Animated Notice Box" installed.

As I said earlier, you may download this text document "CODE I USED", which consists of the code I used in "My Test Blog"(Demo which you viewed). You may use the code in document for your blogs too. But, please do change the links and the title of your blog in the code (self-explanatory). Else, you will help me increase my subscribers count by displaying the box in your template:)

Enjoyed the article?
Subscribe to this Blog via Email:

Click here to subscribe to FREE email updates from "Everything About Blogging", so that you do not miss out anything that can be valuable to you and your blog!

    Other Recommended Posts

  • Blogging Tips
saikrishna said on October 8, 2010 at 10:16 PM :

Bro a small help frm you...! can u create a opt-in pop-up window to show a subscribe window just like aweber and mailchimp has..! Can you provide the widget in that format.
Please Help Me Bro

REPLY
Mukund said on October 8, 2010 at 10:53 PM :

@saikrishna: Thanks for the comment! Yes! I am working on it and I hope to provide one soon. I'm not sure if I could get like Aweber but I'm sure I can get the code for it.

REPLY
saikrishna said on October 8, 2010 at 11:23 PM :

Thanks For Your Immediate Reply And Helping

Have a Nice Day And Blogging Bro
Keep Sharing..!
gud ni8 :)

REPLY
Mukund said on October 8, 2010 at 11:32 PM :

@saikrishna: Yeah!! Thanks! Please write posts on your own and do not copy the posts from other sites! It serves no purpose!! Only when you write on your own and you receive comments, you will have enjoy it!! Hope, I'm not harsh and you take it as a piece of advice from me!!!

REPLY
saikrishna said on October 9, 2010 at 2:21 PM :

Really Thanks For Your Kind Suggestion Bro And I Am Already Stopped It Doing And I Am Sorry Myself Inside Me By Doing These
But Now I Stopped It And Bro A Small Suggestion For You...Use Google Alerts Bro With Adding Your Link So,You Can Get Updates When Your Link Is Listed At Any Where Or Used.So,Have A Try Bro.
Have A Nice Day...!

REPLY
Mukund said on October 9, 2010 at 8:59 PM :

@saikrishna: That is pretty good!! I hope to see you as a better blogger in the future. In fact, a better writer:) Yeah!! I will "Google Alerts" a shot!!

REPLY
saikrishna said on October 9, 2010 at 9:15 PM :

Thanks For your reply bro
Have A Nice Day...! :)

REPLY
Real Estate said on October 9, 2010 at 10:31 PM :

I have a dofollow blog. Using this animated notice board I will show that my blog is dofollow to the readers. Thanks for this nice trick.

REPLY
Mukund said on October 9, 2010 at 11:27 PM :

@Real Estate: Pretty good idea!! If you do it that way, I'm sure your blog will receive more comments than what it actually gets.

REPLY
allwyn said on December 11, 2010 at 9:04 PM :

hey mukund, instead of the blank space which remains when the user closes the notice box I want to collapse it back to normal, otherwise the blank white space which remains doesnt luk so gud! am sure you will know how to do it! pls help!!!
and ur posts are fantastic everything just fits in the 1st try unlike other so many blogs!
truly amazing coding skills!

REPLY
Mukund said on December 12, 2010 at 8:28 PM :

@allwyn: I understood what you asked for. But, I'm afraid if that is possible to do because that space will be occupied by the code and it can't be reverted back to the normal mode. Any way, I will try it out. Let you know if I get the code.

REPLY
Kishore said on April 26, 2011 at 1:55 AM :

Dude, all the tinypic links are dead. please fix it.

REPLY
Mukund said on April 28, 2011 at 7:54 AM :

@Kishore: Yup! You rightly pointed it out! Well, I will fix it in a few days time! Thanks for the comment buddy!

REPLY
Kishore said on May 19, 2011 at 12:40 AM :

@Mukund
I am still waiting.. please fix this soon.

REPLY
Mukund said on May 19, 2011 at 8:24 AM :

@Kishore: Yes! I will sure update the coding in a day or two. Sorry for not updating it buddy!

REPLY
Kishore said on May 19, 2011 at 9:54 AM :

@Mukund
Thanks for responding.
I nee one help from you regarding editing my template.
Would you mind, contacting me via Froomple.com ?

REPLY
Mukund said on May 19, 2011 at 10:42 AM :

@Kishore: Just contact me via email. I'm not sure about the site you said but you can always reach me via email.

REPLY
Kishore said on May 19, 2011 at 10:43 AM :

@Mukund
Ok, can i know your E-Mail ID ?

REPLY
Mukund said on May 19, 2011 at 10:47 AM :

@Kishore: You can hit the contact me tab at the bottom, that is at the footer. Any way my email id is smalwayz@gmail.com

REPLY

Use the tab below to comment. No spam please!!!

[netinsert=0.0.1.11.14.1]