Jump to content


Photo

[SOLVED] working with pictures


  • Please log in to reply
2 replies to this topic

#1 corillo181

corillo181
  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 08 April 2006 - 02:56 PM

hi, i been trying to find a way to create dynamic pictures for this reason..

i want to make a page and when ppl click on different picture i want the pictures to appear in the same page.. becuase i dont want to make a page for each pictures since i heard this could be done using php but i'm new to this and i would like any one to show me how or point me to a tutorial easy to fallow..

thnk you..

#2 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 10 April 2006 - 01:36 AM

Although its not php and the demo uses multiple pictures, it seems that with a little tweaking one could apply this to separate images...

[a href=\"http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-javascript/\" target=\"_blank\"]http://www.agilepartners.com/blog/2005/12/...ing-javascript/[/a]

Lite...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#3 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 10 April 2006 - 04:03 AM

I have done this many times.

The basic flow is:
  • If the URL doesn't say to display one picture, display a page of thumbnails. Each thumbnail is a <href> tag that points back to the curren script but the URL contains a reference to show the picture.
  • Else display the full size picture and a link to go back to the thumbnails
Some pages where I've used this technique are:
  • [a href=\"http://www.ny-njdogtrainer.com/gallery.php\" target=\"_blank\"]http://www.ny-njdogtrainer.com/gallery.php[/a]
  • [a href=\"http://www.rutgerspromenaders.org/pictures...ances/2005/1204\" target=\"_blank\"]http://www.rutgerspromenaders.org/pictures...ances/2005/1204[/a]
  • [a href=\"http://smilesontheweb.com/disp_pics.php?wh...=.&dir=20010626\" target=\"_blank\"]http://smilesontheweb.com/disp_pics.php?wh...=.&dir=20010626[/a]
Ken




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users