deansaddigh Posted November 6, 2009 Share Posted November 6, 2009 <a href="'. $product->img .'" rel="lightbox">image</a> <img src="'. $product->img .'" height="150" width="120" rel="lightbox" /> how do i get these two bits of code in one statement, basically i want the image to be clickable and then the light box shows the bigger image cheers in advance. im only a begginer so please forgive me if i have posted in the wrong section Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/ Share on other sites More sharing options...
JAY6390 Posted November 6, 2009 Share Posted November 6, 2009 <a href="'. $product->img .'" rel="lightbox"><img src="'. $product->img .'" height="150" width="120" rel="lightbox" /></a> You mean like that? Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952819 Share on other sites More sharing options...
deansaddigh Posted November 6, 2009 Author Share Posted November 6, 2009 God i love you, i have been messing around with it for hours. thanks sooooo much Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952821 Share on other sites More sharing options...
JAY6390 Posted November 6, 2009 Share Posted November 6, 2009 lol no problem Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952823 Share on other sites More sharing options...
huszi001 Posted November 6, 2009 Share Posted November 6, 2009 Set border to 0 or you get "blue border" arround the image <a href="'. $product->img .'" rel="lightbox"><img src="'. $product->img .'" height="150" width="120" rel="lightbox" border="0" /></a> Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952826 Share on other sites More sharing options...
JAY6390 Posted November 6, 2009 Share Posted November 6, 2009 really shouldn't do it like that. should be done with a style instead style="border: none" or do the same in css a img { border: none; } Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952831 Share on other sites More sharing options...
deansaddigh Posted November 6, 2009 Author Share Posted November 6, 2009 All done cheers guys Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952842 Share on other sites More sharing options...
deansaddigh Posted November 6, 2009 Author Share Posted November 6, 2009 Theres one last thing. For some reason the image for closing the lightscript isnt comming up im sure ive refrencing it correctly. I appreciate this isnt php but its the same question really as before. ive added an image to show how im refrencing it Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952860 Share on other sites More sharing options...
mrMarcus Posted November 6, 2009 Share Posted November 6, 2009 try and full path: http://www.example.com/lightbox/images/loading.gif Link to comment https://forums.phpfreaks.com/topic/180600-quick-answer-i-bet/#findComment-952862 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.