Created
June 29, 2012 02:31
-
-
Save reediredale/3015310 to your computer and use it in GitHub Desktop.
HTML5 Image Swap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<figure class="swapimage"> | |
<img src="<?php $image = get_post_meta($post->ID, 'normal', true); ?><?php echo $image; ?>" alt="" /> | |
<img src="<?php $hover = get_post_meta($post->ID, 'hover', true); ?><?php echo $hover; ?>" class="swap-target" alt="" /> | |
</figure> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment