<map id="points" name="points">
<area shape="circle" alt="point 1" coords="79,165,5" href="chapt1.pdf">
<area shape="circle" alt="point 2" coords="60,165,5" href="#chapt2">
...
using the qtip2 plugin, i can make the points hotspots, however, i would like to customize the popup's title and content area as below:$(document).ready(function()
{
$('area[alt]').qtip({
/* content: {
attr: 'alt'
},*/
content: {
attr: "href",// should be clickable link and display alt text (attr: 'alt')
title: {text:"Download", //should be area alt text
button: 'Close'}
},
position: {
target: 'mouse',
adjust: {
mouse: false
}
},
style: {
classes: 'qtip-light'
},show: { solo: true }
});
});
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
ASKER