Note that there are some explanatory texts on larger screens.

plurals
  1. POLightbox & map area
    primarykey
    data
    text
    <p>I am trying to make a lightbox work off an image map. But when I execute this I get an error that the click event can not be found. What am I missing?</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript" src="Scripts/jquery-1.4.1.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $('area.optSelectMe').click(function() { $("#span1").click(); }); }); &lt;/script&gt; &lt;script src="Scripts/prototype.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="Scripts/scriptaculous.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="Scripts/lightbox.js" type="text/javascript"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div&gt; &lt;map id="EnrollmentPageMap" name="EnrollmentPageMap" style="z-index: 10;"&gt; &lt;area alt="Enroll Now" shape="rect" coords="0, 639, 363, 749" href="Enrollment.aspx" /&gt; &lt;area alt="View 360" id="View360" class="optSelectMe" shape="rect" coords="806, 569, 1006, 633" href="#" /&gt; &lt;/map&gt; &lt;img src="images/EnrollmentPageBackground.jpg" usemap="#EnrollmentPageMap" alt="" /&gt; &lt;a href="images/View360/MG_8687.JPG" rel="lightbox[View360]"&gt;&lt;span id="span1"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8688.JPG" rel="lightbox[View360]"&gt;&lt;span id="span2"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8699.JPG" rel="lightbox[View360]"&gt;&lt;span id="span3"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8689.JPG" rel="lightbox[View360]"&gt;&lt;span id="span4"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8690.JPG" rel="lightbox[View360]"&gt;&lt;span id="span5"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8691.JPG" rel="lightbox[View360]"&gt;&lt;span id="span6"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8692.JPG" rel="lightbox[View360]"&gt;&lt;span id="span7"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8693.JPG" rel="lightbox[View360]"&gt;&lt;span id="span8"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8694.JPG" rel="lightbox[View360]"&gt;&lt;span id="span9"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8695.JPG" rel="lightbox[View360]"&gt;&lt;span id="span10"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8696.JPG" rel="lightbox[View360]"&gt;&lt;span id="span11"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8697.JPG" rel="lightbox[View360]"&gt;&lt;span id="span12"&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="images/View360/MG_8698.JPG" rel="lightbox[View360]"&gt;&lt;span id="span13"&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;/body&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload