Brigog Posted March 14, 2007 Share Posted March 14, 2007 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 More sharing options...
justsomeguy Posted March 14, 2007 Share Posted March 14, 2007 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 More sharing options...
jlhaslip Posted March 14, 2007 Share Posted March 14, 2007 BonRouge has a "dis-jointed rollover" which might do what you want.http://bonrouge.com/cheerspics.phpAnd I have a Hoverbox script which is also pretty good.http://www.jlhaslip.trap17.com/samples/gal...rbox/index.htmlBoth are easy to set up and install. Link to comment Share on other sites More sharing options...
S@m Posted March 14, 2007 Share Posted March 14, 2007 You could use javascript...getAttribute();setAttribute(); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now