|
|
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.
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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0mTTTa3auJQPZm4yiROYuXL3O2IqeTjZnOzQHlmkj1Ojqxu0oP6Z9-kNtOOiWZDgC8xht5yvpHbhY2oe-5pPs_HirLE8XT8WtwMiWOLur2NdzDEmkTWysWx2GpQzEIqHeuzFOfoUGF94/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs5Qn4ykM7hd54K_XH3Ms4YbiAI4o9UkZoAxYwj29XkvgzoykH6d9YLqfAXwBlS4RxVnsT4JDrigsX0VAb5KeZ_8vzIA3LzVK0CwhJ50X9qcsZ8P_NKClVKlkyykukuGazVCFWHIVsllQ/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvpHSOFtVK-NhNGCYDLEaEah9nvfjKLIpBT1XH-mmiahNO-O9zvKtVbYVKZW1MuQ0bEEE3xaBbpUwzwuw0UudAzvaoNiytZsAIDASGFlb_V8Cl3jU-8Ar6SmbBpCmN5g3sRug7jGrmsMg/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ9W_sq6eD4pjkI3o7TByvAzqTBAKVWbO5nxzxPdDpXidMVXdCpIMzoBoC8pG7AagXWUS-sxhArrlwBsiapuiDRK6CksGwvfb1bOGsdX_Nx9GSd5DITpV9-CRmNBHQscMstYamUA40iR8/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;
}
background-color: #484848;
background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0mTTTa3auJQPZm4yiROYuXL3O2IqeTjZnOzQHlmkj1Ojqxu0oP6Z9-kNtOOiWZDgC8xht5yvpHbhY2oe-5pPs_HirLE8XT8WtwMiWOLur2NdzDEmkTWysWx2GpQzEIqHeuzFOfoUGF94/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs5Qn4ykM7hd54K_XH3Ms4YbiAI4o9UkZoAxYwj29XkvgzoykH6d9YLqfAXwBlS4RxVnsT4JDrigsX0VAb5KeZ_8vzIA3LzVK0CwhJ50X9qcsZ8P_NKClVKlkyykukuGazVCFWHIVsllQ/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvpHSOFtVK-NhNGCYDLEaEah9nvfjKLIpBT1XH-mmiahNO-O9zvKtVbYVKZW1MuQ0bEEE3xaBbpUwzwuw0UudAzvaoNiytZsAIDASGFlb_V8Cl3jU-8Ar6SmbBpCmN5g3sRug7jGrmsMg/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ9W_sq6eD4pjkI3o7TByvAzqTBAKVWbO5nxzxPdDpXidMVXdCpIMzoBoC8pG7AagXWUS-sxhArrlwBsiapuiDRK6CksGwvfb1bOGsdX_Nx9GSd5DITpV9-CRmNBHQscMstYamUA40iR8/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.
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.
- 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.
- Replace TWITTER-USERNAME with your twitter user name. There are two instances where you need to replace the same.
- 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?
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!
WoW ! This really looks cool.
REPLYGreat tutorial, always get great information here...
REPLY@Sagar: Thanks for the comment Sagar! I hope to see this hack on your blog!
REPLY@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!
REPLYHi
REPLYI 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!
@Jean Sébastien: Just hire me and I'll install the subscription box on your blog. Further details, contact me via email.
REPLYUse the tab below to comment. No spam please!!!
POST YOUR COMMENT