Coding help needed....

Discussion in 'Programming' started by log0008, Mar 16, 2013.

  1. #1
    Hello Everyone,
    My website, working on WordPress - http://gametown.outofcontrolvideos.com has an image of each game and when you hover over it, the tittle and description comes up. The issue is that only a tittle is clickable, is there away to make the whole box clickable?

    I believe this is the code in Question...

     
    log0008, Mar 16, 2013 IP
  2. Logist

    Logist Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    21
    #2
    Try this:
    $(".coverinfo").click(function(){
        window.location=$(this).find("a").attr("href");
        return false;
    });
    Code (markup):
    Looks for a link inside div with class of "coverinfo". Redirects to that links value when anywhere in div is clicked.
     
    Last edited: Mar 16, 2013
    Logist, Mar 16, 2013 IP