Hi. Please forgive my probably easy question. I’m a neo.
I am building a portfolio site. I would like to have small thumbnail images link to the larger versions. Ideally, I’d like the links to open in a popup window, sized appropriately. I’ve got say 9 thumbs on a page.
I’ve looked at lots of different code but I can’t seem to get it to work.
Here’s what I did:
[U]in the <HEAD>
<SCRIPT TYPE=”text/javascript”>
<!–
function popup(civic, civic)
{
if (! window.focus)return true;
var href;
if (typeof(civic) == ‘string’)
href=civic;
else
href=civic.href;
window.open(href, civic, ‘width=700,height=400,scrollbars=yes,resizable=yes,status=yes’);
return false;
}
//–>
</SCRIPT>
[U]in the <BODY>
<DIV ALIGN=CENTER>
<MAP NAME=”civic”>
<AREA
HREF=”civic.html” ALT=”Civic Annual Report” TITLE=”Civic Annual Report”
SHAPE=RECT COORDS=”-1,0,74,64″
onClick=”return popup(this, ‘civic’)” target=”_blank”>
</MAP>
<img src=”Graphics/portfolio%20buttons/civic_thb.jpg” width=”75″ height=”64″ border=”0″ alt=”Civic Annual Report” usemap=”#civic”>
</DIV>
Can anyone help me please?
Thanks!
spark