coinpusha Posted June 26, 2012 Share Posted June 26, 2012 I have two identical sized images that I would like to work with. One image is in color, the other is in black and white. I need assistance on stacking the color image directly over the black and white image. After that, I would like to be able to remove sections of the top photo to reveal the image underneath. Can someone point me in the right direction on how to accomplish this? Quote Link to comment https://forums.phpfreaks.com/topic/264834-stacking-images-and-revealing-the-bottom-image/ Share on other sites More sharing options...
PeoMachine Posted June 26, 2012 Share Posted June 26, 2012 Try to use Jquery. Quote Link to comment https://forums.phpfreaks.com/topic/264834-stacking-images-and-revealing-the-bottom-image/#findComment-1357228 Share on other sites More sharing options...
Philip Posted June 27, 2012 Share Posted June 27, 2012 As PeoMachine suggested, try to look at jQuery. I'd highly suggest using this plugin. Quote Link to comment https://forums.phpfreaks.com/topic/264834-stacking-images-and-revealing-the-bottom-image/#findComment-1357323 Share on other sites More sharing options...
coinpusha Posted June 27, 2012 Author Share Posted June 27, 2012 Ok thanks, I will take a look at this now. Can you guys tell me how to include this code into a php file? I"m using $(document).ready(function() { $('$img').adipoli({ 'startEffect' : 'normal', 'hoverEffect' : 'popout' }); But I"m getting a white screen when I add that code. Quote Link to comment https://forums.phpfreaks.com/topic/264834-stacking-images-and-revealing-the-bottom-image/#findComment-1357402 Share on other sites More sharing options...
Philip Posted June 27, 2012 Share Posted June 27, 2012 You don't need to be using PHP for it, that is simply JavaScript. <?php $blah = 2; ?> <script type="text/javascript"> $(document).ready(function() { $('$img').adipoli({ 'startEffect' : 'normal', 'hoverEffect' : 'popout' }); </script> Quote Link to comment https://forums.phpfreaks.com/topic/264834-stacking-images-and-revealing-the-bottom-image/#findComment-1357421 Share on other sites More sharing options...
coinpusha Posted June 30, 2012 Author Share Posted June 30, 2012 ok, thanks alot. I was able to use this javascript fine. I'm still not able to get the total process down, i'm not sure how to implement the javascript. I downloaded GPix Pixel Ad Script which does alot of what i'm trying to do, and I'm trying to modify it so that instead of the users uploading their photo when they select pixels, I'd like for the pixels to turn from grayscal into color,. The forum that hosts the script is not an active community, so I"m reaching out to phpfreaks to see if anyone is familiar with this. Quote Link to comment https://forums.phpfreaks.com/topic/264834-stacking-images-and-revealing-the-bottom-image/#findComment-1358185 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.