• I’m trying to incorporate an image via php (custom field) inot a javascript mouse-over thingy

    Can anyone help me out here?

    Thanks
    Pete

    <img src='http://s.wordpress.com/mshots/v1/http%3A%2F%2F<?php echo get_post_meta($post->ID, "website1", true); ?>?w=300'
    onmouseover="this.src='http://perthmetro.net/wp-content/uploads/electrician1.jpg'"
    onmouseout="this.src='http://perthmetro.net/wp-content/uploads/newborn-photography-02-300x194.jpg'"/>
  • The topic ‘php in javascript mouse-over’ is closed to new replies.