如何使用地图链接打开fancybox [英] How to open fancybox using map link

查看:97
本文介绍了如何使用地图链接打开fancybox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用地图将链接提供给jpg文件。

The link was given to a jpg file using map.

<map name="Map" id="Map">
<area shape="rect" coords="350,350,350,350" href="......" target="_new" />
</map>

如何使用该连结打开fancybox?

how can i open fancybox using that link?

推荐答案

简单地使用这个脚本

$(document).ready(function(){
 $("#Map area").fancybox({
  // API options here
 }); // fancybox
});//ready

请确保为您使用的版本添加了正确的API选项(如果您的 href 目标图像,你可能不需要任何)

Make sure you add the right API options for the version you are using (if your href targets an image, you may not need any)

如果使用v1.3.4检查 http://fancybox.net/api

If using v1.3.4 check http://fancybox.net/api.

对于v2.x检查 http://fancyapps.com/fancybox/#docs

这篇关于如何使用地图链接打开fancybox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆