Rollover on images being called in a Post
-
I’m doing a site for a client and it uses images to represent each client. Idea is like most navigation menus, you should the image change on rollover using Javascript. So here’s what I got:
https://www.wingmanmedia.com/2010/category/work/clients/
OK, see the monochrome images? Now try rolling over one of them.
Nothing happens.
I set up my PHP in my redo of the archive.php file and set two custom field (client-image and client-image-f2) and this is what I got in my PHP code:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
” rel=”bookmark” title=”<?php the_title_attribute(); ?>” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘clients’,”,'<?php echo get_post_meta($post->ID, “client-image-f2″, true);?>’,1)” /><img src=”<?php echo get_post_meta($post->ID, “client-image”, true);?>” alt=”<?php the_title_attribute(); ?>” />
<?php endwhile; ?>But that doesn’t work. Is this even possible in WordPress?
- The topic ‘Rollover on images being called in a Post’ is closed to new replies.