Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Rollovers using the same div class: Jquery in wordpress issue.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31374
    mpoisel
    Member

    Well I’m not totally sure if I should be posting this in the WordPress forum or the Javascript forum.

    The issue that I’m having is that I’m using the same div class to dynamically pull images from custom fields within multiple posts. When I do this, every time I rollover one image all the images switch to their rollover states. I need them to function independently of one another. Any help with this would be greatly appreciated.

    Thanks in advance.

    Code:


    /**
    * Template Name: Clients Template
    *
    * Single Column
    */

    get_header(); ?>



    'Clients')); ?>










    #63936
    clokey2k
    Participant

    You need a ‘this’ to refer to the object clicked. This may work:


    #63846
    mpoisel
    Member

    Thanks for the help. I actually got it to work with something similar.





Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.