Having trouble getting my imagemap to load in a colorbox using colorbox-node. Can anyone give advice what i'm doing wrong? The nodes are loaded as usual (no colorbox).I've tried a lot of things but here is what I *thought* should work:
<img src="/sites/default/files/langlois_image_map.jpg" usemap="#imagemap" border="0">
<map name="imagemap" id="imagemap">
<area class="colorbox-node" coords="135,76,160,102" href="/content/langlois-market-0" shape="RECT" title="Langlois Market">
</map>
I've also tried shadowbox and still no luck. Any advice would be welcome.
Comments
Comment #2
iLLin commentedDoes it work on regular anchor tags? Also is this the view source output after the page loads?
Comment #3
ascii122 commentedIt's pretty strange. I see both the colorbox_node.css and js are loading in source anyway. Using a regular colorbox-load tag works OK. I also switched themes, turned off aggrigation (js and css). Cleared caches. Tried production and dev versions. Uninstalled and reinstalled. Doing a regular a href link didn't work either (though it does with colorbox-load. Nothing fishy in console nor in logs.
I'm stumped. I guess I'll just make a version of pages to link without headers and footers etc maybe using views or something. It seemed like a really slick solution.
EDIT: Yeah I just made a view for the page using a custom page.tpl for that view stripping out all the unwanted stuff and then use colorbox-load rather than colorbox-node. So I found a solution, but still not sure why the other thing didn't work. Cheers
Comment #4
iLLin commented