Jump to content

Loading images from 2 folders (need help on how to form a right question)


iNko

Recommended Posts

Hi, idk what to write in google for this, so ill try to explain it here so that maybe someone would point me in the right direction on what i should look for..

 

so i have two image folders, 1st folder with thumbnails, 2nd with original sized images.

basically what i want is : Load thumbnails on page -> click on thumbnail = popup new window with original sized image

 

i have done the 'load thumbnails from folder' part, but i cant even click on them (nothing happens when i hover with mouse on thumbnail).

i was thinking adding smth like "<a href=""></a>" to this:

echo "<img style='border:thin solid #FFF;margin-top:10px;margin-left:10px;margin-right:10px' src='{$images[$i]}'alt='{$images[$i]}' />";	

then i somehow link the 'href' to original sized images folders, but ofc i failed badly..

 

so yeah, any suggestions on what i should look for would be great, thx in advance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.