Erik <st*************@hotmail.com> wrote in message
news:b7*************************@posting.google.co m...
I have a bunch of thumb nails on my site that open up a jpg in a new
window if you click on it. I would like to know if there is a way that
I can make it so that if you click on a particular thumb nail that the
link that is associated with it will open up in a pop up that is 700
X500. I know how to do this by defining each link (thumb nail) but
since I have about 100 thumb nail links that would be too much work.
Is there something that I can put into the <head> that will make ALL
my links in the body open up in a pop up?
The page I want to do this with is at
www.eriksworld.org
The thumb nail frame.
All the best
Erik
Sweden
The following can be improved on or done differently, but
it is one possibility...
<HTML>
<HEAD>
<TITLE>POPUP PHOTOS</TITLE>
</HEAD>
<SCRIPT LANGUAGE=JAVASCRIPT>
<!--hide script from old browsers
var win1=null;
function newwin(pname, palt)
{
win1 = window.open( '', '',
'toolbar=no,location=yes,scrollbars=no,status=no,r esizable=no,width=233,heig
ht=300,location=no');
win1.document.writeln( "<IMG SRC='" + pname + "' width=233 height=300
alt='" + palt + "' >");
}
// end hiding script from old browsers -->
</SCRIPT>
<BODY>
<img src="tn_photo.jpg" alt="tn alt text" onClick="newwin('big_photo.jpg',
'alt text');" />
</BODY>
</HTML>