Jump to content

Show pic with same background


Brigog

Recommended Posts

Okie basically what I need is my site has a static window of 1024X768 and everything outside that is black. Now I have red vector background I made etc and everything such as nav bar and fill is in that red background area. You make be confused here cuse im giving you a VERY basic idea of what the site looks like but what I need is for when I click on a picture in my gallery page that the background stays and the picture goes on it in the center. Now this would be very easy if i made a page for every picture but is there a way to make one page and it will swap the picture on it depending on the thumbnail clicked? I'm guessing its going to have to be done with php but I don't know php so if it cant be done with html/css/java please tell me.Thanks

Link to comment
Share on other sites

You can't do it with HTML, CSS, or Java, you would need to use PHP or ASP, and Javascript could also do it but PHP or ASP would be better. To do that in PHP you set up a link like this:<a href="show_image.php?img=image1.jpg">And then PHP can read that filename and put it into an img tag:<img src="<?php echo $_GET['img']; ?>">

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...