Quick question - in terms of <SCRIPT LANGUAGE="javascript">, how can a function be written to make a window pop up with different images in it without having to make each window a new page?
For example, I have link (thumbnail) A, B, C. When I click A, a pop-up window opens with image a in it, when I click B, the image in the pop-up window changes to image b, etc.
I have this so far:
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=500,height=500,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=yes, directories=no, status=no');
return false;
}
//-->
</SCRIPT>
Thanks.
EDIT: it's cool I got it now.