Subscription Box Using Tooltip For Blogger

tooltip-tutorial
In my previous article about HTML Tooltip, I mentioned about "callingallgeeks.org". If you missed the article, then check out - Tooltip For Blogger Using jQuery & CSS. Harsh on his blog "callingallgeeks.org" used this effect to display the Tooltip over the share icons - RSS, Twitter, Facebook. You may experience the Tooltip effect on Yahoo! Cricket too - hover your mouse over the player names.
Subscribe-Tooltip-Demo
In this article, I'll just share the code which will create the Tooltip effect when you hover your mouse over the subscribe icons. If you need the code for the entire subscription box, well install the widget that appears on this article first - Tutorial to add the subscription box. Later, use the code that appears in this post to realize a proper subscription box. So, let's get started.

1. Navigate to "Design >> Edit HTML" and make a backup of your template by clicking on the "Download full template" link at the top of the page. Once the back up is over, search for the following piece of code.
]]></b:skin>
2. Paste the following piece of code just above the line mentioned in step 1.
#dhtmltooltip {
background-color: #484848;
background-image: url("https://lh4.googleusercontent.com/-5SQOgS6ij1A/TiE0rmXU9gI/AAAAAAAABUQ/KwaaLmoeP4c/s800/mouse-hover-bg.png");
background-repeat: repeat-x;
border: 1px solid #AAAAAA;
color: #F2F2F2;
font-size: 12px;
font-weight: bold;
height: 27px;
line-height: 20px;
padding: 10px 20px;
position: absolute;
text-align: center;
z-index: 100;
visibility:hidden;
}
#dhtmlpointer{
position: absolute;
z-index: 101;
visibility:hidden;
}
.social-subscribe ul {
list-style: none outside none;
}
.social-subscribe li {
float: left;
}
.social-subscribe li a.rss {
background: url("https://lh3.googleusercontent.com/-HTQ6s6GmBLg/TiE0rFVVQsI/AAAAAAAABUI/pWdIwOUEuA8/s800/icon-rss.gif") no-repeat scroll 0 0 transparent;
padding: 0 2px 0 0;
}
.social-subscribe li a {
display: inline-block;
height: 52px;
width: 57px;
}
.social-subscribe li a.facebook {
background: url("https://lh6.googleusercontent.com/-tkdaWLGbFQI/TiE0rPLM1QI/AAAAAAAABUE/DG4wcOs1xwY/s800/icon-facebook.gif") no-repeat scroll 0 0 transparent;
padding: 0 2px 0 0;
}
.social-subscribe li a {
display: inline-block;
height: 52px;
width: 57px;
}
.social-subscribe li a.twitter {
background: url("https://lh4.googleusercontent.com/-bIK53VccMss/TiE0ra0pGKI/AAAAAAAABUM/NewFfwHhH7U/s800/icon-twitter.gif") no-repeat scroll 0 0 transparent;
padding: 0 2px 0 0;
}
.social-subscribe li a {
display: inline-block;
height: 52px;
width: 57px;
}
3. Save your template and navigate to "Design >> Page Elements >> Add a Gadget" and choose "HTML/Javascript".
4. Download the following text document - HTML FOR TOOLTIP EFFECT ON SUBSCRIBE ICONS. Just copy the code present in the text document and paste it on the window that pops up. Make the following customizations before you save the widget.
  1. Replace FEEDNAME with the name of your feed obtained from FeedBuner. Your feed name is nothing but your feed title. So, open your FeedBurner account and check out the Feed details. There are two instances where you need to replace FEEDNAME with your feed name.
  2. Replace TWITTER-USERNAME with your twitter user name. There are two instances where you need to replace the same.
  3. Replace FAN-PAGE-URL with your facebook fan page URL. Similar to the previous two customizations, this replacement should also be made at two instances.
5. Once the above customizations are made, just save the widget and your done!

In case you find the customization part a bit difficult to understand, then take a look at the example coding which I used on my demo blog by downloading this text document - SAMPLE CODE. This effect was tested on all major browsers - Firefox, IE, Safari, Chrome, Opera. If you have some unique ideas to illustrate this same effect in a different manner, then share it via comments! Would love to hear from the CSS and Jquery geeks out there!

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

  • Blogger Widgets, CSS Tricks
Sagar said on July 16, 2011 at 6:56 PM :

WoW ! This really looks cool.

REPLY
Troy Janda said on July 16, 2011 at 10:08 PM :

Great tutorial, always get great information here...

REPLY
Mukund said on July 16, 2011 at 10:48 PM :

@Sagar: Thanks for the comment Sagar! I hope to see this hack on your blog!

REPLY
Mukund said on July 16, 2011 at 10:51 PM :

@Troy Janda: I'm glad that you find great information on my blog! I hope to stand up to your expectations all the time! Thanks for the comment Troy!

REPLY
Jean Sébastien said on October 22, 2011 at 4:24 AM :

Hi
I like this tutorials, I would like to tell you your blog is very cool,
And I like your sunscription form, How can I get one like yours please?
Thank you very much!

REPLY
Mukund said on October 24, 2011 at 11:53 PM :

@Jean Sébastien: Just hire me and I'll install the subscription box on your blog. Further details, contact me via email.

REPLY

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

[netinsert=0.0.1.11.14.1]