Mouseover How To

Happy How To’s Day!

Today, I thought I’d show ya how we make our photos move with a mouseover how to!

First up, you’ll need to choose which two photos you’d like to use.

(Tip: The key to really making your “presto change-o” dramatic is to shoot your before and after photos as close to the same angle as possible.)

I’m going to use the following two photos of our (work-in-progress) master bedroom as an example.

Photo #1 is saved as: master_bedroom_before.jpg

Photo #2 is saved as: master_bedroom_after.jpg

Once you’ve decided which two images you’d like to use, you’ll need to upload the them to some kind of image hosting site so that they both have their own URL addresses.

We store our images on Photobucket, so I’m going to show you how to do it using their site, but a site like Flickr or Picasa would work the same way too.

————————————————————————————————

Here is the rollover code you’ll need to post into the html section of your blog post:

<img onmouseover=”this.src=’BEFORE PHOTO URL ADDRESS CODE GOES HERE'” onmouseout=”this.src=’AFTER PHOTO URL ADDRESS CODE GOES HERE‘” src=”BEFORE PHOTO URL ADDRESS CODE GOES HERE” alt=”” />

You will be replacing the words BEFORE PHOTO URL ADDRESS CODE GOES HERE, and AFTER PHOTO URL ADDRESS CODE GOES HERE with the newly-created URL addresses of your before and after photos.

(Tip: Sometimes, in WordPress, if you’re jumping between html and visual, the code will change and the rollover effect won’t work. Make sure you hit “save draft” while you’re still in HTML mode, before you preview it in VISUAL mode. That seems to stop it from changing the code. If you’re still having trouble, click on this link to open the code as a separate text file. Mouseover Code)

First, upload the two photos you’d like to use to the photo hosting source of your choice. In Photobucket, you can hover over the photo once it’s uploaded and four different code options will pop up…

You want to copy the direct link code of your before picture

…and replace the words BEFORE PHOTO URL ADDRESS CODE GOES HERE with it, like this

<img onmouseover=”this.src=’http://i268.photobucket.com/albums/master_bedroom_before.jpg’” onmouseout=”this.src=’AFTER PHOTO HTML CODE GOES HERE’” src=”http://i268.photobucket.com/albums/master_bedroom_before.jpg” alt=“” />

(Tip: Make sure you replace both sets of the words BEFORE PHOTO HTML CODE GOES HERE. And, if you replace any of the quotation marks, the presto change-o will not work and you’ll have to start over.)

Notice the AFTER PHOTO URL ADDRESS CODE GOES HERE text is still there in the middle of the paragraph above. You’ll want to replace that text with your after photo direct link code, like this:

<img onmouseover=”this.src=’http://i268.photobucket.com/albums/master_bedroom_before.jpg’” onmouseout=”this.src=’http://i268.photobucket.com/albums/master_bedroom_after.jpg’” src=”http://i268.photobucket.com/albums/master_bedroom_before.jpg” alt=”” />

Again, make sure you don’t replace any of the quotations or apostrophe’s or the rollover effect will not work.

And that’s it! You’re images should now flip back and forth when folks move their cursor over them, like this…


One last thing I wanted to mention was that an easy way for me to remember that the after photo goes in the middle of the rollover code is that you usually want that photo to be a surprise. In other words, you want it to be “hidden” in between your before photos. That way, when your blog post loads, readers will see the before photo first, and once they hover over it, pow! It switches to your after photo!

_____________________________________________

Now it’s your turn!

If you already know the link party drill, feel free to scroll on down and link away!

If you’ve never linked up to a link party before, here’s how it works…

1. Scroll down this page until you see the “add your link” button. Click it, and create a super-descriptive name for your link. Something like, “How To Make Carrot Cake”, or “Spring Wreath Tutorial”. That’ll make it easier for folks to browse through all the links.

2. Make sure you link directly to the How-To post you’d like to share- not to the main page of your blog.

3. If you’d like to invite some more folks to the party, feel free to slap this button at the end of your how-to post on your blog. Just copy and paste the code in the box below into the html part of your post, and voila!

The Lettered Cottage
<div align="center"><a href="http://theletteredcottage.net/?p=6662" title="The Lettered Cottage"><img src="http://i268.photobucket.com/albums/jj29/LaylaPalmer/How%20To/How_To_Linky_Button.jpg" alt="The Lettered Cottage" style="border:none;" /></a></div>

Thanks for partyin’ with us, and hope you have a Happy To’sday!




Subscribe by Email for FREE today!

Enter your email address:


Comments

  1. says

    I am first!!!! Yeow!
    That bedroom makeover of yours never seizes to amaze me. Speak about wow effect. It is gorgeous and a reminder that I should go and get on with my own little bedroom makeover project.

    Thanks for the party. I am so glad I had something to link up.

    • Layla says

      Hey Marianne!
      Can’t wait to check out your project!
      And thanks for the kind words about our bedroom….it’s still a work in progress, but at least we’re not sleeping on the mattress on the floor anymore! :-D

  2. says

    Hi, I was so excited to link up a couple projects this morning! I love this Linky Party, I always get to see a ton of great project ideas! The pictures of your bedroom also inspire Alex and I to get moving on our own master bedroom makeover, we’ve been in an empty echo-y room for 2 years now! Thanks for the Happy Easter wishes as well :) Hope you and Kevin are doing well!

  3. says

    Amazing! Not sure I will ever need this info, but I love this feature. Just read your post about going to the beach, it’s snowing AGAIN here today, and I would love to get away! Soon… Also, we lost our dog Hershey of 12 years last year. Totally understand the hearing him thing :( We had that happen for months, until I gave in and we adopted a new lab pup, Jack. Love your blog. Hugs!

  4. says

    I always loved the roll-over effect! Ubber- coolio!!! Thanks for showing…. Also, love your linky parties, mine is how I made a simple inexpensive spring centre-piece.

    Love all your projects!

    Cindy

  5. says

    Thanks for the fun tutorial! When I see this done on your site, I always think it’s some kinda wizardry or something. :) I can’t wait to try it out!

    Thanks for great linky party! Love seeing so many great ideas.

  6. says

    Love your parties! LOVE your style {who doesn’t is what I wanna know}
    Thanks for letting us link up!
    That transformation in your bedroom is AMMMAZING!
    Love it!

  7. says

    I am so frustrated! I’m now unable to see photos on my computer at work. I want to do this and will have to wait till I get home! ARRGGHH!!

  8. says

    Layla,
    Thanks for sharing this “”how to” on your photo magic. I’ve been wanting to try this for a while…very cool. Your directions are great!

  9. says

    Layla – It’s so cool of you to share your presto-chango secret. I assumed it was really hard and required advanced photoshop skills. You broke it down so that it looks totally do-able. I love learning new computer tricks and can’t wait to try this out.

    I also love your bedroom. I want to try the mirrored closets in our small master bedroom and add a plank wall to my son’s bedroom. I provide so many great inspirations – thank you!

  10. says

    Layla,

    Thanks for the tutorial on Mouse Overs! Will be using this soon. I will have a post linked up soon — something you and Kevin inspired!

    Your Friend,
    Deborah

  11. says

    Thanks so much for the tutorial, Layla! This is A.W.E.S.O.M.E. It never ceases to amaze me how generous and giving bloggers are.

    Hope you’re enjoying some Hubby time! We lost our house in Sept ’10 and Hubs now lives w/his mom and I’m w/mine. Both require care. But it’s been pretty rough on our marriage, even after 20 years. We’re looking for a house now in between the 2 towns where our moms live.

    One thing, though – when we do see each other, it’s pretty magnificent ;)

    Thanks again for the tutorial and party.

  12. says

    That’s so cool! But I love you bedroom makeover. I just keep rolling over the picture. It doesn’t even look like the same room. I love the mirrored closet doors. Now I need to talk hubby into those.

  13. says

    Hello Layla,

    My comment is much more about your after photo! I love those curtains in your new master bedroom. Any suggestion on where I could find some like that?!

    Thanks! Love your stuff!

    Diana

  14. says

    First of all, your home is beautiful and you guys always do great work. The bedroom transformation is stellar.

    Maybe it’s just me, and maybe you’ve heard this before, but the rollover thing never works when I read your blog in my RSS feed. I use Google Reader and if I want to see the rollover I have to go to your blog. I think I actually miss a lot of what you do because I’m just rolling through Reader.

  15. Deb-IL says

    Layla I have a silly question. What if…… I don’t have a blog but would like to do your type of mouse-over before and after photos of some of our projects just for our own personal scrapbook kind of thing? Is there another online format that is just intended for the creators to enjoy? Or does this type of magic only work with a blog?

    I now have my husband hooked on you and Kevin – he says you remind him of us when we were younger and had more energy! ;-)

  16. says

    Apparently I have been living in a cave, under a rock, in Greenland??? THIS is my first time linking up! I have no excuses or explanations for how I haven’t been here for this before! I am even baffled! LOL Thanks for hosting!! :)

  17. says

    Thanks so much for sharing your mouseover how to! I love looking at these on your site and I’m excited to try them myself! Also…it’s my very first time linking here (I’m still very new to the blogging world) What a lovely place to share a project…thanks so much!!

  18. says

    Every time I look at pictures of your home re-do’s I can almost feel a fresh spring or summer breeze…so nice! Linking up for the first time, glad I had a recent project to share. Having fun checking out all of the ideas. I’m saving your mouse-over how-to for later – it’s awesome, thanks!

  19. says

    Hi Layla-

    Thank you… thank you for providing us with such a detailed tute on how to do the rollover. I am still new at all this tech stuff and want to learn as much as I can. I can’t wait to try it.

    My best- Diane

  20. Rebecca says

    Layla, is there a way that you know of, once you’ve done all the steps you suggested, to burn it onto a CD in order to watch or show friends on the big screen? The way we save so many pictures now….a photo library of before and after but with that roll over shown here?

  21. says

    Thanks so much for the party and your post! I don’t have any before and after right now but I’m bookmarking this post to use later! Love your blog!

  22. says

    I learned this in graphic design school but I swear, you and some other bloggers out there could very well be our instructors – it would save us tons of money! Plus, you have a great way of explaining things in detail without making it confusing for the rest of blogland. Keep rockin on!

    \m/

    (that was my corny rocker sign. ;)

    Sofia.

  23. says

    Thanks for the how to Mousover! My techy-husband is going to be SO impressed with me.

    Thanks for making me look like a genius!!! wink-wink.

  24. says

    Thanks for showing us how to do the mouse roll over. I’ve always wondered how you did it! Mystery solved. Thankful for you tech savvy people!

  25. Silvia says

    Thanks for the info Layla. I don’t comment very much but I went shopping today and saw a beautiful white sailboat and thought of you!:)
    the best part, it was only 5.99…lol…have a great day..

    Silvia..

  26. becca d says

    Just discovered your blog and love it! Could you please share the paint color you used in the made-over room?

    • says

      Hey Becca!

      The blue is Blue Hubbard from Sherwin Williams
      The white is Moonlight White from Benjamin Moore

      Thanks for stopping by! :)

  27. says

    Thanks for hosting! I always enjoy what you and Kevin are up too. I will have to try this mouse over sometime. Thanks for hosting.

    • says

      Hi Rosa!

      I don’t feel very comfortable in the HTML tab either. Layla spent a lot of time learning some HTML a few years ago and she is teaching me more now. It does seem like there is always so much to learn!

  28. Heather N says

    Not a comment about the Mouseover How To…I just wanted you to know how much I L-O-V-E your decorating style and the “after” pics of your house. A few times I have even gasped out loud. Seriously. Love, love, love. Thanks for sharing them with us.

  29. says

    Poo! We didn’t have anything good to link up this week! “Life” has taken over! :( Hopefully next week! As always thanks for all the awesome inspiration!!!

  30. says

    Layla, I have been watching your blog almost from the beginning. And watching your careers grow. It is very generous of you to share your presto chango picture technique. Then I discovered your DIY list. It is amazing. I am not even into crafts but I couldn’t resist some of these. You and Kevin deserve the success I am sure you will enjoy for many years to come. You provide REAL VALUE and INSPIRATION in your posts. Best of luck to you. You are both so talented! Shari

  31. says

    Love that bedroom! Thanks for hosting this how to party!!! Are you guys O.K?…..I saw the tornados and I hope you guys are safe!!!

  32. says

    I was so sorry to hear on the news this morning about the terrible storms in Alabama yesterday and loss of life. How sad. I was thinking of you guys since I think you’re the only people I know there. Anyway, just wanted to let you know that I’m thinking of you all down there and hoping you and your family and friends are ok.

    Take care,

    Elisabeth

  33. says

    I’m stopping by make sure you are all okay…I remembered you lived in Alabama. My thoughts and prayers are with everyone effected by this terrible tornado. I hope you are both good.

  34. kelly says

    Thinking of you all too with the bad storms in Alabama. Hope you and everyone that’s near and dear are safe. All the destruction is just heart breaking. I am waiting to hear from friends in Tuscaloosa…
    kelly

  35. says

    Thanks for the tutorial. I tried it on my wordpress blog, but I could not get it to work. Can I send you my code to double check that I didn’t get any of the quotes wrong?

    -AZ

    • Layla says

      Hey Aaron-

      We’re having trouble getting it to work with that code too! So strange because it works every time we create one in a blog post from scratch.
      Try the link to the Mouseover Code so that the code will open in a separate window. That seems to work the way it’s supposed to! :-)

    • says

      I figured it out. On Flickr you have to click on the photo a few times and then get to the link that actually provides the jpg location. What you initially see on the website is not the real jpg file. It was tricky to find, but then I figured it out. Thanks for the tutorial.

  36. says

    Another great tutorial. :) However, I’m actually writing for a different reason. I live in Iowa, but have been sick to my stomach over the devastation caused by the tornadoes that have swept through your part of the country. Through your blog, you’ve really touch the hearts of a lot of people’s lives that you don’t even know. You make us feel like you’re one of our great friends. Because of that, I’m really worried about you, and hope that you, your family, and friends are all okay. My heart, my thoughts, and my prayers go out to all affected. Please be safe.

  37. Cindy G says

    Hello Layla & Kevin,
    I have been thinking about you all day re: the tornado news.
    I hope you are okay
    Cindy

  38. says

    We had devastating winds here too, (in fact I just finished a post on it) but nothing like Alabama! Praying for folks there!

  39. Sarah says

    Thanks so much for sharing your presto chango tutorial. I can’t wait to give it a try! Now how about sharing how you do the photoshop portion. Where do you get the photos of furniture and accessories for your afters and how do you adjust the perspective to make it look right?
    Glad y’all are ok, I’ve got lots of folks in Middle Tennessee and North Georgia that I was worries about too.

    • Layla says

      Hey Sarah!

      I get the photos mainly from Google Images and PotteryBarn.com. Anything that’s easy to cut out and paste in works the best!
      As far as adjusting the perspective, it would be hard to sum it up in one comment (or even one blog post), but it’s really all about distorting the cut outs how I need them to be distorted.
      It does take a full day or two to complete one, but it’s so much fun to play around with those photos!

  40. says

    You are awesome thanks for the tutorial. I love your site. Is it a wordpress? You guys need to be on some of the TV shows like the Younghouselove couple. Such a great site.
    Just started mine and it is so much fun! Just a hobby but I love it.
    Thanks so much. Hope you get a chance to stop by..

  41. says

    Thank you so much for sharing this …I’ll have to try it one of these days.
    Just know that no matter how many people start doing it… you guys will always be the King and Queen of Presto change – o !!! xo

  42. says

    Hi guys! I am playing around with the mouse-over and can’t get my images to be sharp… they are for some reason blurring after it’s all said and done. I don’t have a crappy camera, and I haven’t changed the size of the files or anything… do you know how I can fix it? I wanna post my mudroom re-do! Thanks so much!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>