|
|
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.
I 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.
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.
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:)
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 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.#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>
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.<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>
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:)
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!
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.
REPLYPlease Help Me Bro
@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.
REPLYThanks For Your Immediate Reply And Helping
REPLYHave a Nice Day And Blogging Bro
Keep Sharing..!
gud ni8 :)
@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!!!
REPLYReally Thanks For Your Kind Suggestion Bro And I Am Already Stopped It Doing And I Am Sorry Myself Inside Me By Doing These
REPLYBut 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...!
@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!!
REPLYThanks For your reply bro
REPLYHave A Nice Day...! :)
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@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.
REPLYhey 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!!!
REPLYand ur posts are fantastic everything just fits in the 1st try unlike other so many blogs!
truly amazing coding skills!
@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.
REPLYDude, all the tinypic links are dead. please fix it.
REPLY@Kishore: Yup! You rightly pointed it out! Well, I will fix it in a few days time! Thanks for the comment buddy!
REPLY@Mukund
REPLYI am still waiting.. please fix this soon.
@Kishore: Yes! I will sure update the coding in a day or two. Sorry for not updating it buddy!
REPLY@Mukund
REPLYThanks for responding.
I nee one help from you regarding editing my template.
Would you mind, contacting me via Froomple.com ?
@Kishore: Just contact me via email. I'm not sure about the site you said but you can always reach me via email.
REPLY@Mukund
REPLYOk, can i know your E-Mail ID ?
@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
REPLYUse the tab below to comment. No spam please!!!
POST YOUR COMMENT