How To Add jQuery Tooltip To Blogger


jQuery tooltip plugin is great tool to explain a lot from a single word.You can easily implement this in your blog also it is very easy to use.You can highlight some words and add a tooltip to them,when any user hovers on the word a smooth tooltip will appear just above of the highlighted word with your description.This jQuery tooltip is designed by nettuts+ and I have reshared it on Helper Blogger.Now lets see how to add it and use it,

How To Add jQuery Tooltip To Blogger?

As I mentioned above the installation and usage of the tooltip is very easy,you just have to put some code in your template,just follow below simple steps.

1. Adding Tooltip Scripts

  1. Go to Blogger Dashboard > Template
  2. Download a copy of your template
  3. Click on Edit HTML
  4. Hit Proceed button
  5. Find for below code in your template

1
</head>

add below code just above it,

1
2
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://helperblogger.ucoz.com/code/jquery-tooltip.js"></script>

Note - If you have already added a jQuery plugin to your blog then don't add the first line from above code.

2. Adding Tooltip Styles


Find below code in your template,

1
]]></b:skin>

add below code just above it,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.tip {
    width212px;
    padding-top37px;
    overflowhidden;
    displaynone;
    positionabsolute;
    z-index500;
    backgroundtransparent url(https://lh6.googleusercontent.com/-0KM2ludeMBo/UALZZEBrqBI/AAAAAAAACmc/s-SnyEbuwR8/s1600/hb_tipTop.png) no-repeat top;
}
 
.tipMid {
    backgroundtransparent url(https://lh4.googleusercontent.com/-Vu0rxFVABjQ/UALZYWnIryI/AAAAAAAACmY/M6hXn5zozh4/s1600/hb_tipMid.png) repeat-y;
    padding0 25px 20px 25px;
}
 
.tipBtm {
    backgroundtransparent url(https://lh3.googleusercontent.com/-fcuks1eGyhM/UALZXjVS6CI/AAAAAAAACmQ/GZF8z7d7S4c/s1600/hb_tipBtm.png) no-repeat bottom;
    height32px;
}

3. Using The Tooltip


If you want to add tooltip in blogger posts,then go to Edit HTML tab and add below code inside it.

1
<div class="tTip" title="Add Tooltip Message Here">Add Your Text Here</div>


  • Replace Add Tooltip Message Here with the message which you want to appear in tooltip.
  • Replace Add Your Text Here with the text on which you want to appear tooltip.

Hope you have liked it :)

Peace and Blessings Buddies....

No comments:

Post a Comment