Qtip を使用したイメージ マップがあり、ツールチップを左目と右目の両方に表示したいのですが、ツールチップが表示されません。
これが私のJSコードです:
$(document).ready(function()
{
$('area[alt]').qtip(
{
content: {
attr: 'alt'
},
hide: {
fixed: true,
delay: 500
},
style: {
classes: 'qtip-tipsy qtip-shadow'
},
position: {
viewport: $(window)
}
});
});
HTMLは次のとおりです。
<map name="Koala">
<area alt="Left Eye" shape="rect" coords="373,365,404,402" href="#" />
<area alt="Right Eye" shape="rect" coords="641,405,681,448" href="#" />
<!-- .... more hotspots would be listed here -->
</map>
このコードを試してみると、Qtip がまったく表示されず、その理由がわかりません。