Code for opening an image in seperate window?

Associate
Joined
6 Sep 2008
Posts
2,111
Location
Near Hull
Hi,
Anyone know what the HTML/Javascript is for opening an image in another window when you click on it?
Like on this page E.g:
Here

when you click the picture of the RAM it opens in another window, probably pretty simple but can anyone tell me please? thanks
 
You just linked to the exact answer you wanted.

Open the source code and you'll find this:

Code:
<a id="showphoto" href="showphoto.php?src=/pimg/MY-086-OC_400.jpg&amp;name=OCZ 4GB (2x2GB) PC2-6400C5 Dual Channel Vista Gold Series DDR2 (OCZ2G8004GK)" onclick="window.open(this.href, 'largerImage', 'height=450, width=450, top=50, left=50, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no, status=no'); return false;"><img id="prodimage" src="/pimg/MY-086-OC_200.jpg" alt="OCZ 4GB (2x2GB) PC2-6400C5 Dual Channel Vista Gold Series DDR2 (OCZ2G8004GK)" /></a>
 
You just linked to the exact answer you wanted.

Open the source code and you'll find this:

Code:
<a id="showphoto" href="showphoto.php?src=/pimg/MY-086-OC_400.jpg&amp;name=OCZ 4GB (2x2GB) PC2-6400C5 Dual Channel Vista Gold Series DDR2 (OCZ2G8004GK)" onclick="window.open(this.href, 'largerImage', 'height=450, width=450, top=50, left=50, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no, status=no'); return false;"><img id="prodimage" src="/pimg/MY-086-OC_200.jpg" alt="OCZ 4GB (2x2GB) PC2-6400C5 Dual Channel Vista Gold Series DDR2 (OCZ2G8004GK)" /></a>

i should have thought of looking in the source code, lol...... thankyou.
 
Back
Top Bottom