Click to See Complete Forum and Search --> : Javascript and map


giorgio
12-17-2002, 05:01 AM
Hi everybody! :)

I've got a problem...I'm using a javascript which makes open a popup contanining just an image. I'd like making a map from "big_image.jpg" so that clicking on a portion of it the visitor of my site could see a popup containing "image.jpg"
The fact is that the file "xxxxxx.jpg" doesn't exist but it's the content of the map closed by the coords 54,82,199,209.
How can I make the code read correctly the portion of map which I've just mentioned? Thanks to anyone who could help me!


<A HREF="javascript:" onClick="popup(421,440,'image.jpg','TITLE')"><img src="xxxxxx.jpg" alt=""></a>

<img src="big_image.jpg" border="0" align="middle" usemap="#camp01">

<map name="camp01">
<area shape="rect" coords="54,82,199,209" href="xxxxxx.jpg" onFocus="this.blur();" target="_blank">
</map>

ShrineDesigns
12-17-2002, 06:05 AM
when you have a link that doesn;t execute use href="javascript:void(0)" or href="#"

is popup a function?
did you want the 421 and 440 to set the height and width?
the proper srtucture for window.open('url','window name','window features')
if not try this

<A HREF="javascript:void(0)" onClick="window.open('image.jpg','TITLE','height=421 width=440')"><img src="xxxxxx.jpg" alt=""></a>