ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Javascrip Lightboxes & ImageMaps :-(

September 18, 2011 11:42pm

Subscribe [2]
  • #1 / Sep 18, 2011 11:42pm

    PXLated

    1800 posts

    Trying to get a typical Javascript lightbox script - in this case FancyBox - to work with an image map where each area pops an overlay with a different channel entry. Done this many times with standard links but can’t get it to work with an imagemap. An example of one I did recently for video popups is -  http://www.artbuddies.org/video/ - The video clips.

    In my current static test, the standard link that works just fine looks like this…

    <a href="http://{path=id=194"><b>Local</b></a>

    The imagemap code that doesn’t is like this…

    <area shape="circle" coords="351,495,9" id="194" href="{path=""}methods/testBox" >

    This is just a static test - not pulling in an entry, just popping up a simple html template.

    Any ideas anyone.


    Note: The link in the first is same as in second - gets hosed here when posted.

  • #2 / Sep 19, 2011 5:59am

    Matt:P

    277 posts

    Does the lightbox appear empty or not appear at all?

  • #3 / Sep 19, 2011 12:11pm

    PXLated

    1800 posts

    Doesn’t trigger the popup, just loads the referenced template with the text like a standard link.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases