Jump to content

how show big image under thumbnail


wesley

Recommended Posts

Hello,

 

I have written php script. You see three thumbnails. When you click on the thumbnail the browser open a new screen with the big photo. and i work without database.

I want to have that the big photo under the thumbnail is, and not a new window or pop-up.

 

my question is: how can i make this?

 

thanks in advance.

 

my code is:

<!DOCTYPE HTML><html lang="en"><head>	<title></title>	<style>		img{			border: 1px dotted red;		}	</style></head><body><?php$dir = "images/";//open directoryif ($opendir = opendir($dir)){	//read directory	while (($file = readdir($opendir)) !== FALSE)	{		if($file !="."&&$file!="..")		echo "<a href='$dir/$file'><img src='$dir/$file' height='100'></a>";//show thumbnail			}}?></body></html>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...