WordPress.org

Ready to get started?Download WordPress

Forums

Larger (custom post type) image on mouseover (1 post)

  1. Dimono
    Member
    Posted 1 year ago #

    Hi there,

    English is not my native language. So please forgive me my mistakes in writing.

    I'm trying to use pictures added to a custom post type field to show in simple gallery like this:

    http://www.dougv.com/demo/js_larger_image_tn_mouseover

    CSS and HTML are no problem but i'm not a scripter.
    I found this tutorial already:

    https://www.dougv.com/2007/06/14/showing-a-larger-image-on-thumbnail-mouseover-with-javascript-dom/

    Only thing i have to do is loading my pictures in the gallery. At this moment they are loaded static like this:

    '<?php echo(types_render_field("afbeelding1", array("alt"=>"Product image","class"=>"productfoto_extra"))); ?>'
    '<?php echo(types_render_field("afbeelding2", array("alt"=>"Product image","class"=>"productfoto_extra"))); ?>'

    But i cant figure out how to load my pictures in the javascript mouseover.

    Thank you in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic