Last Updated on December 28, 2015 by Kristi Linauer
I think this is my first-ever “blogging help” post, but I keep getting questions about how I do the mouseover “quick view” before and after pictures, like the one below.
Move your pointer back and forth over the picture to see how it changes from the “after” picture to the “before” picture, and then back again.

The first thing you’ll need to do is size your before and after images the same size.


I use my Paintshop Pro program to resize the photos, and I always resize my horizontal photos to 550px wide and my vertical photos to 550px high. But you can use any photo editing program, and size them any size you want, as long as the two pictures are the same size.
Once you have both the before and the after picture the same size, you’ll need to upload these photos to a photo sharing site, such as Flickr, Photobucket, etc.
Now copy and paste the following code into the HTML of your blog post where you want the before and after quick view to show.
<center><img onmouseout=”this.src=’http://kristilinauerinteriors.com/a2d-pics/julia-kitchen-01a.jpg'” onmouseover=”this.src=’http://kristilinauerinteriors.com/a2d-pics/julia-kitchen-01.jpg'” src=”http://kristilinauerinteriors.com/a2d-pics/julia-kitchen-01a.jpg” /></center>
Now simply replace the location of my photos with the location of your own photos. In other words, where the code shows:
http://kristilinauerinteriors.com/a2d-pics/julia-kitchen-01a.jpg
Replace that with the location of your AFTER picture. This goes in two different places. Be sure that you’re replacing it with a similar location that ends with .jpg, .gif, .png, or another photo format. If you enter a .html address, it will not work. It must be the actual photo.
And where the code shows:
http://kristilinauerinteriors.com/a2d-pics/julia-kitchen-01.jpg
Replace that with the location of your BEFORE picture.
Be VERY SURE that when you’re pasting in the locations of your own photos, that you DO NOT accidently erase any of the single or double quotation marks. If just one of those goes missing, the code will not work.
And that’s the trick! If you have several before and after quick views you’d like to add to one blog post, just copy and paste the code into your blog post HTML as many times as you need.
Hope that helps!!

Addicted 2 Decorating is where I share my DIY and decorating journey as I remodel and decorate the 1948 fixer upper that my husband, Matt, and I bought in 2013. Matt has M.S. and is unable to do physical work, so I do the majority of the work on the house by myself. You can learn more about me here.
I hope you’ll join me on my DIY and decorating journey! If you want to follow my projects and progress, you can subscribe below and have each new post delivered to your email inbox. That way you’ll never miss a thing!
21 Comments
KP
February 24, 2011 at 9:22 pmThanks!
Susan
February 24, 2011 at 9:29 pmThanks for the tutorial! I'll give that a try!
EJ180
February 24, 2011 at 9:36 pmI don't blog, but may start. I'll save this to my tips folder! Thanks
Holly
February 24, 2011 at 9:38 pmCool information. Thanks!
Mary
February 24, 2011 at 10:40 pmYou're really sweet to take the time to share this. Just one reason why I always go to to your posts first!
Kim-A Creative Spirit
February 24, 2011 at 11:56 pmOOOO that is so cool. Sounds difficult for a non-techy like me. :o(
Liz
February 25, 2011 at 1:14 amThanks for that! I love tips!
Carol-Anne (Use the Good Dishes!)
February 25, 2011 at 1:39 amOk. Call me stupid, but you lost me at 'code'.
For the love of painting
February 25, 2011 at 5:57 amThis is awesome! I absolutely love the kitchen too!
The O's
February 25, 2011 at 3:42 pmohhh, thanks! Can't wait to see if I can figure this out! =)
Zolane
February 25, 2011 at 4:11 pmLove, love, love the transformation!!! Where did you find your checked drapes?
Nancy U
February 25, 2011 at 5:27 pmThis tip got pasted in my Cheat Sheet. Thanks.
You know, the more that I look at this kitchen the better I like it. Making the wainscoting go up high enough to use the top molding as a sort of revers picture rail is genius!
Kristi @ Addicted 2 Decorating
February 25, 2011 at 5:47 pmZolane, the draperies are custom.
Attiser
February 25, 2011 at 7:05 pmThanks for sharing !
Double Glazing
February 26, 2011 at 6:50 amNice. I love the transformation! Great job. What a brilliant idea.Thanks for posting this article. Impressive work!
The DIY Show Off
February 27, 2011 at 3:28 pmAwesome! I've always wondered how this worked. Thank you so much for the 'how-to'. We're doing a kitchen remodel right now and I'd love to try this at the time of the reveal. 🙂
Have a wonderful day, Kristi!
Roeshel
painting toronto
February 28, 2011 at 9:46 amAmazing information. I like your strategies. Thanks for sharing.
painting toronto
April 10, 2011 at 8:57 pmAmazing information. I like your strategies. Thanks for sharing.
Attiser
April 10, 2011 at 8:57 pmThanks for sharing !
Lisa Allen
May 28, 2011 at 2:20 amThanks for the help. I just started blogging so I need all the help I can get!
Mom Home Guide
August 6, 2012 at 4:32 pmSounds great! Hope to create some cool befoe and afters for my website!