The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

HTML/Java - Pop-up windows ( solved )

curbycurby Registered User regular
edited March 2008 in Help / Advice Forum
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.

linktous.gif
curby on
Sign In or Register to comment.