jquery - Open image in same page as lightbox in php -
i have created form in there png image watermark , main image. have open in light-box. code shown below:
if(isset($_post['submit'])) { // load watermark , photo apply watermark $stamp = imagecreatefrompng('store/left.png'); $im = imagecreatefromjpeg('store/lighthouse.jpg'); // set margins stamp , height/width of stamp image $marge_right = 500; $marge_bottom = 500; $sx = imagesx($stamp); $sy = imagesy($stamp); // copy stamp image onto our photo using margin offsets , photo // width calculate positioning of stamp. imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp)); // output , free memory header('content-type: image/png'); imagepng($im); imagedestroy($im); }
and preview of code is:
i want while i'm in light-box. how can this?
<head> <link rel="stylesheet" href="engine/css/vlightbox1.css" type="text/css" /> <link rel="stylesheet" href="engine/css/visuallightbox.css" type="text/css" media="screen" /> <script src="engine/js/jquery.min.js" type="text/javascript"></script> <script src="engine/js/visuallightbox.js" type="text/javascript"></script> <script src="engine/js/vlbdata.js" type="text/javascript"></script> </head> <body> ... <div align="center"> <!-- start visuallightbox.com body section id=1 --> <div id="vlightbox1"> ... </div> <!-- end visuallightbox.com body section --> </div> ... </body>
Comments
Post a Comment