Tuesday, 15 March 2011

javascript - tool tip not working in firefox -



javascript - tool tip not working in firefox -

this tooltip script, working fine in chrome not working in firefox,i don't know why tooltip doens't work in firefox. seek solve problem. have thought why doen't work in firefox?

js:

$('.ltt,.wtt,.mtt').css({ position: 'absolute' }).hide() $('area').each(function(i) { $('area').eq(i).bind('mouseover mousemove', function(e) { $('.ltt,.wtt,.mtt').eq(i).css({ top: e.pagey+10, left: e.pagex+10 }).show() }) $('area').eq(i).bind('mouseout', function() { $('.ltt,.wtt,.mtt').hide() }) })

html:

<img src="images/banners/image.jpg"usemap="#map" /> <map name="map" > <a href="" ><area shape="circle" coords="818, 271, 14" /></a> <a href="" ><area shape="circle" coords="655, 154, 10" /></a> <a href="" ><area shape="circle" coords="159, 70, 15" /></a> </map> <div class="ltt"> <label>australia</label> </div> <div class="wtt"> <label>india</label> </div> <div class="mtt"> <label>usa</label> </div>

javascript jquery html

No comments:

Post a Comment