J
Jason2k1
Guest
I have a picture gallery on one of my sites which displays thumbnails of all the pictures and when a picture is clicked it pops up a window with the enlarged picture in it. i currently use php to do this, but i would like to translate it into a client-side language like javascript.
the url of the page that displays the pictures is:
pictureviewer.php?src=name.jpg where name is the name of the picture.
the current code i use is this:
Does anyone know how to get this to work using javascript.
Please help,
Thanks in advance
Jason
the url of the page that displays the pictures is:
pictureviewer.php?src=name.jpg where name is the name of the picture.
the current code i use is this:
PHP:
<HTML>
<HEAD>
<TITLE>Picture Viewer</TITLE>
</HEAD>
<BODY bgcolor="#99cc00" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="10">
<TABLE width="100%" height="100%" border="0">
<TR><TD align="center" valign="middle">
<IMG src="images/gallery/<?php echo("$src");?>">
</TD></TR>
</TABLE>
</BODY>
</HTML>
Does anyone know how to get this to work using javascript.
Please help,
Thanks in advance
Jason