Jump to content

Show pic with same background


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 post
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 post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...