iNko Posted April 15, 2012 Share Posted April 15, 2012 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 https://forums.phpfreaks.com/topic/260970-loading-images-from-2-folders-need-help-on-how-to-form-a-right-question/ Share on other sites More sharing options...
haku Posted April 15, 2012 Share Posted April 15, 2012 <a href="path/to/large/image.jpg"><img src="path/to/small/image.jpg" /></a> Link to comment https://forums.phpfreaks.com/topic/260970-loading-images-from-2-folders-need-help-on-how-to-form-a-right-question/#findComment-1337508 Share on other sites More sharing options...
iNko Posted April 15, 2012 Author Share Posted April 15, 2012 wow thx, everything works Link to comment https://forums.phpfreaks.com/topic/260970-loading-images-from-2-folders-need-help-on-how-to-form-a-right-question/#findComment-1337515 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.