如何在FadeSlideShow中使用usemap?

ssi*_*ral 6 javascript arrays image

我正在尝试将usemap属性设置为添加到imagearray的其中一个图像.下面的代码是javascript中的FadeSlide,但我想在其中一个图像上实例化一些地图属性.谢谢.

<script type="text/javascript">

var mygallery=new fadeSlideShow({
    wrapperid: "fadeshow1",
    dimensions: [250, 180],
    imagearray: [
        ["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
        ["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"]
    ],
    displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
    persist: false, 
    fadeduration: 500,
    descreveal: "ondemand",
    togglerid: ""
})
Run Code Online (Sandbox Code Playgroud)

mic*_*ber 1

您可以使用 JS 代码添加它,例如

$('#fadeshow1').find('img').each(function() {
    $(this).attr('usemap', '#imgmap');
});
Run Code Online (Sandbox Code Playgroud)