|
|
Recently, I came across an interesting tutorial about displaying Tooltip using jQuery. You may refer to "callingallgeeks.org - subscription box" to see an example about the same. In this article, we'll be learning about adding a simple HTML Tooltip to our blogger posts/template. You may check out the live demo by hovering your mouse over the links below.
Creating Unique Navigation BarsThis article illustrates about creating unique navigation bars using Adode PhotoShop and CSS Sprites. By using CSS Sprites, we achieve the following advantages - save bandwidth (less image size), reduce the number of HTTP requests and make our blog browser compatible. | About CSS SpritesThis article explains the fundamentals about CSS sprites with a simple hover effect using the same.
Cool trick. Isn't it? Well, if your answer to the question is "Yes", then consider reading the rest of the article to get this hack installed on your blog as well. I have used the standard jQuery file that's hosted by Google in my tutorial. If you wish to host it on your blog ( for WordPress Users), then download the latest JavaScript file from jQuery website. Now, let's move to the tutorial.
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. Download the following text document (includes the CSS and JavaScript to run the widget) - CODE FOR TOOLTIP WIDGET. Replace the above code with the code present in the text document.
3. Save your template. That's it.
To make the Tooltip actually work, you need to define an anchor tag and span tag in your post or anywhere in your template (within the body tags) with the following classes ( tip_trigger and tip) present in it. The coding should look similar to the one shown below.
<a href="YOUR LINK HERE" class="tip_trigger">
YOUR LINK TITLE
<span class="tip">
YOUR TEXT HERE
</span></a>
YOUR LINK TITLE
<span class="tip">
YOUR TEXT HERE
</span></a>
That's it! Replace "YOUR LINK TITLE" with the title of your link, "YOUR LINK HERE" with the URL you wish to point to and "YOUR TEXT HERE" with the description you want to show the visitor on mouse hover. You need to repeat the same procedure to have multiple Tooltips on your blog. As far as the browser compatibility is concerned, the Tooltip hack is supported by the following major web browsers - Firefox, IE, Safari, Chrome, Opera, etc...
I hope you enjoyed this hack. Well, I'm just learning the basics about jQuery and CSS now. So, if there are any jQuery geeks out there, then I'm open to your suggestions. Share your opinions via comments. I'll soon post the coding for the subscription box using Tooltip similar to the one on "callingallgeeks".
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!
Lol... its not callingallgeeks.com.
REPLYIts callingallgeeks.org!!!
@Sid Panjwani: Lol:) Sorry for that! Hope you enjoyed the article!
REPLYThanks for sharing..Thanks for the post. It was so informative and helpful!
REPLYcheap web designer
@sampetrova: Yup! Thanks for the comment! Hope you enjoy the upcoming articles on my blog too!
REPLYThanks for sharing nice blog post, i like it so much
REPLY@John: Thanks for the comment John! You'll find more articles related to web design in the upcoming days! Hope you enjoy them too!!!
REPLYThanks for article. I am a newbie in this field of blogging, seo, marketing etc. so I am eager to read similar posts where to get some new knowledge. thanks for post.
REPLY@enrolled agent certification: Yup! Thanks for the comment! Hope we provide articles to your expectations!
REPLYVery useful article, Thank you Mukund
REPLY@Android Mobile: I'm glad to know that you found this article useful! Do share it with your friends via twitter or Facebook so that, it'll be useful for them as well! Thanks for the comment buddy!
REPLYNice tutorial! It's the first that almost worked 100% among the ones I tried. When I hover over my link, the tooltip appears very far below (see at http://labtrial.blogspot.com/). Any idea how to solve? Thanks!
REPLYUse the tab below to comment. No spam please!!!
POST YOUR COMMENT