View Full Version : JavaScript not working on Mac

08-22-2002, 07:27 PM
Here's the deal.

2 iFrames.

top iFrame has a 'hold' image.
lower iFrame contains row of thumbnails that when clicked *should* activate 'hold' image in top iFrame.

Everything works fine for Win/IE5/N6 but not on Mac.

top iFrame code as follows:
function click(clicks) { document.images['hold'].src="gfx/" + clicks; var nombre = clicks.substring(0,clicks.length-4); }

<img src="gfx/hold.jpg" width="500" height="300" name="hold" class="mainImg" alt="" border="0">

lower iFrame code as follows:
<a href="javascript:click('thumb.jpg')" target="hold"><img src="gfx/thumb.jpg" width="83" height="50" class="imgBorder" alt="" border="0"></a>

I don't where the problem lies. The script was pilfered from a Spanish language site (hence the wording in the script). I'd seen other thumbnail gallery scripts that looked a lot more complex, so this one was easy to implement.

Any help is greatly appreciated...!