return '<img src="' . $link . '" onload="if(this.width > 600) {this.width=600;this.alt=\'Click here to see a large version\';}" onmouseover="if(this.alt) this.style.cursor=\'pointer\';" onclick="if(this.alt) window.open(\'' . $link . '\');" border="2" />';
How would I launch lightbox from the onclick funtion? I know I can wrap and anchor around the img tag, but I want to load the lightbox from the onclick :)
Question
david
How would I launch lightbox from the onclick funtion? I know I can wrap and anchor around the img tag, but I want to load the lightbox from the onclick :)
Link to comment
Share on other sites
6 answers to this question
Recommended Posts