alanl1 Posted May 16, 2013 Share Posted May 16, 2013 Hi Professionals I have the following code which has taken ages to get right. echo "<td><a href=" . $imagedir .">" ."<img src=" . $imagedir ."{$row['actual_image']} "."width=85 hight=50 border=0></img></a></td>"; this basically echos out the dirctory folder with the link to the image name as an href what I want to do is be able to allow the user to make this bigger when clicked so it is readable is this possible Link to comment https://forums.phpfreaks.com/topic/278048-make-image-link-bigger/ Share on other sites More sharing options...
requinix Posted May 16, 2013 Share Posted May 16, 2013 When clicked? But it's a link, it'll send them to another page when they click it... Link to comment https://forums.phpfreaks.com/topic/278048-make-image-link-bigger/#findComment-1430349 Share on other sites More sharing options...
Dathremar Posted May 16, 2013 Share Posted May 16, 2013 Yes you can, but not with php, You will need javascript for doing that. To set an event on that link and do what you want to do. Link to comment https://forums.phpfreaks.com/topic/278048-make-image-link-bigger/#findComment-1430371 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.