I am implementing tooltip functionality. It works fine but the browser's default tooltip appears too on top of the custom tooltip. Reading the docs, cancelDefault attribute by default is true and the browser's default tooltip should not display. Not sure why it is displaying in my case.
Here is my code.
<style type="text/css">
#bullettip {
display:none;
background:transparent url(black_arrow_bottom.png) 0 0 no-repeat;
font-size:12px;
height:55px;
width:160px;
padding:20px;
text-align:center;
color:#fff;
}
</style>
Here is my code.
<style type="text/css">
#bullettip {
display:none;
background:transparent url(black_arrow_bottom.png) 0 0 no-repeat;
font-size:12px;
height:55px;
width:160px;
padding:20px;
text-align:center;
color:#fff;
}
</style>
<div id="bullettip"> </div>
<div class="slides">
<a href="slideshow.cfm?id=egypt" title="Africa: Egypt"></a>
<a href="slideshow.cfm?id=kenya" title="Africa: Kenya"></a>
<a href="slideshow.cfm?id=middleEast" title="Africa: Middle East"></a>
<a href="slideshow.cfm?id=sAfrica" title="Africa: South Africa"></a>
</div>
<script>
$("div.slides a[title]").tooltip({tip: '#bullettip', position: 'bottom center', delay: 250, offset: [20,7], cancelDefault: true, opacity: 1});
</script>