Click to See Complete Forum and Search --> : please need it fast!!!


killay
08-06-2003, 08:34 AM
I hope some of you guys may help me out, cause I need this really fast!!
So I need a javascript or this layout:

<center>
<table width=500 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><a href="javascript:doPic('Ann1.jpg');"><img src="Ann1.jpg" width=125 height=92.5 border=0></a></td>
<td><a href="javascript:doPic('Audrey1.jpg');"><img src="Audrey1.jpg" width=125 height=92.5 border=0></a></td>
<td><a href="javascript:doPic('Eric1.jpg');"><img src="\Eric1.jpg" width=125 height=92.5 border=0></a></td>
<td><a href="javascript:doPic('Julien1.jpg');"><img src="Julien1.jpg" width=125 height=92.5 border=0></a></td>
</tr>
<tr>
<td colspan=4 align=center><img name="mainpic" src="Ann1.jpg" width=500 height=370 border=0></td>
</tr>
<tr>
<td><a href="javascript:doPic('Karlien1.jpg');"><img src="Karlien1.jpg" width=125 height=92.5 border=0></a></td>
<td><a href="javascript:doPic('Magalie1.jpg');"><img src="Magalie1.jpg" width=125 height=92.5 border=0></a></td>
<td><a href="javascript:doPic('Julien2.jpg');"><img src="Julien2.jpg" width=125 height=92.5 border=0></a></td>
<td><a href="javascript:doPic('Peter3.jpg');"><img src="Peter3.jpg" width=125 height=92.5 border=0></a></td>
</tr>
</table>
</center>

so , when you click on one of the thumbnails , it should appeare in the middle!!!!
So please help me with this, cause its already the second forum on wich im asking help. please!!!

thx.

SlankenOgen
08-06-2003, 09:01 AM
You mean if should appear in a popup centered on screen?

killay
08-06-2003, 09:16 AM
no just in here :
<td colspan=4 align=center><img name="mainpic" src="Ann1.jpg" width=500 height=370 border=0></td>

so when you look at the layout , you should see , a big frame or table in the middle , and ist there that the pictures should appear....

oh and thx for replying , and if you want to you can email me , if you'll find the script.
and sorry for my english but im a dutch guy, ;)

SlankenOgen
08-06-2003, 09:22 AM
function doPic(theImage){

document.mainpic.src = theImage;

}

should do it.

killay
08-06-2003, 10:30 AM
it doesn't work!!! When you click on it , nothing happends!!!
why? you got to know that im a noob!!!

SlankenOgen
08-06-2003, 10:53 AM
Try it this way-

<a href "#" onclick = "return doPic('Ann1.jpg')">

killay
08-06-2003, 10:54 AM
please , i really need this fast, the code that you gave me doesn't work , the image stays!!!!

SlankenOgen
08-06-2003, 10:57 AM
Can you post your html page + javascript in its entirety as you have it?

killay
08-06-2003, 11:32 AM
Can you guve me your emai adres , cause i cant attach the file to it!!!

SlankenOgen
08-06-2003, 11:59 AM
I pm'd it to you.