PDA

View Full Version : Image Map Problem - Code won't right work when linked



cosmic_nomad
04-17-2012, 08:05 PM
This is the 'buy now' code my shopping cart host sent me (I removed the img attributes to post in my Image Map):

<a href="CART URL/ecom/gb.php?c=cart&i=LFR-1&cl=hidden&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="CART URL/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>

Normally it opens a smaller window (no address bar) _over_ the original window, displaying the shopping cart.

However when linked from my Image Map, it only opens the cart in a new tab. If I remove the Target attribute, it opens page in the same tab but won't popup the window over the original page, it replaces it.

Question: How can I get this code to work properly when linked from an Image Map?
Here is the Image Map code for reference:

<map name="MAP">
<area shape="rect" coords="765,229,934,253" href="#">
</map>