JVRudnick
10-11-2002, 06:34 PM
Hello all...
Right now, I'm using thumbnails on a web page, that when clicked, open up a new window to show the image. The thing is, if there are 35 pix on the page, I gotta type the same dang thing 35 times. Even cut/paste don't help... here's what I'm using in a table...
<td><a href="javascript:newWindow('images/pix/Camera Picture 14.JPG')"><img src="images/pix/Camera Picture 14.JPG" width="100" border=0 alt=""></a></td>
with this as the script item...
<script language=Javascript type="text/Javascript">
function newWindow(fishStory) {
fishWindow = window.open(fishStory, 'fishWin', 'toolbar=no, location=no, scrollbars=no, width=440, height=330, top=80, left=120')
fishWindow.focus()
}
</script>
(dont ask about the fish theme either!)
Is there a way, to create a 'global' javascript that will work with this thumbnail gallery idea....or am I destined to always have to type out the same stuff item by item?
Jim
Right now, I'm using thumbnails on a web page, that when clicked, open up a new window to show the image. The thing is, if there are 35 pix on the page, I gotta type the same dang thing 35 times. Even cut/paste don't help... here's what I'm using in a table...
<td><a href="javascript:newWindow('images/pix/Camera Picture 14.JPG')"><img src="images/pix/Camera Picture 14.JPG" width="100" border=0 alt=""></a></td>
with this as the script item...
<script language=Javascript type="text/Javascript">
function newWindow(fishStory) {
fishWindow = window.open(fishStory, 'fishWin', 'toolbar=no, location=no, scrollbars=no, width=440, height=330, top=80, left=120')
fishWindow.focus()
}
</script>
(dont ask about the fish theme either!)
Is there a way, to create a 'global' javascript that will work with this thumbnail gallery idea....or am I destined to always have to type out the same stuff item by item?
Jim