Jump to content


a single page

  • Please log in to reply
4 replies to this topic

#1 corillo181

  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 05 May 2006 - 03:27 AM

this is what i'm trying to do..

i got a picture gallery..

so i want to design a single page for when ppl click on the thumbnail the picture is viewed in the same page.. no matter wich picture they click on i want the picture to be viewed in the same page..

can this be done

#2 cunoodle2

  • Members
  • PipPipPip
  • Advanced Member
  • 602 posts

Posted 05 May 2006 - 05:37 AM

If you want something to appear on the same page as the page clicked on without another page opening up that you are going to have to look into using some form of javascript show/hide element.

If the code was working and now it's not, something changed. Did you change any code?

yeah, just a little bit, I am trying to start from beginning and trace my steps to see what i did wrong unless you see it.

#3 .josh

  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 05 May 2006 - 06:48 AM

what exactly do you mean by "same page?" you could like, do

<img src = "<?php echo $_GET['picname']; ?>">

for your main picture display and on each thumbnail make the link be like

<a href="samepage.php?picname=picture2.jpg"><img src="thumbnailofpicture2.jpg"></a>

this solution would involve the page reloading, but it's the same page. if you want it to update the main picture from the thumbs without the page reloading then as cunoodle2 said, you'll have to look into javascript.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#4 corillo181

  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 05 May 2006 - 04:02 PM

that really answered my question thank you...i guess i gotta learn me some java i seen few result with java and is way cooler than with the get method..

#5 craygo

  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 05 May 2006 - 04:57 PM

Well you could do it with php, the page can just reload and keep it's layout. So all you really see is a quick flicker while the page relaods


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users