prettyPhotoで同一ページ内にaタグとareaタグを使用して画像を表示したいと考えているのですが可能でしょうか??
ちなみにWordPressに実装させたいと思っております。
※WordPress バージョン4.9.1
head以下に挿入
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" /> <script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script> <body>内に <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto(); }); </script>★上記にareaを追加すればよいのでしょうか??
<div id="image"> <img src="/wp/wp-content/themes/invent-child/images/map.png" usemap="#image_map" alt="マップ" /> <map name="image_map"> <area shape="circle" coords="227,284,22" href="/wp/wp-content/themes/invent/images/shopmap/pic.jpg" lang="prettyPhoto[image_map]" alt="エリア" /> </map> </div> <div id=image2"> <table> <tbody> <tr><th><img src="[template_url]/images/shopmap/btn.png" alt="エリア2" width="28" height="28"></th><td><a data-gal="prettyPhoto" href="[template_url]/images/shopmap/no1_pic2.jpg" title="画像の説明">エリア2</a></td></tr> </tbody> </table> </div>上記のようにしております。
大変お手数ですが何卒よろしくお願いいたします。