clickable ad box java script not working in div class

ClassiBase classifieds script Forums Tips and tricks clickable ad box java script not working in div class

This topic contains 1 reply, has 1 voice, and was last updated by  Elite Tan 2 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1860 Reply

    Elite Tan
    Participant

    Support, below script work when listing_row php is not in div class, however due to I’ve table content I’ve to place it in div class and table, and after that below script no longer work, please let me know how to make click function work in div class? I’ve look up below link but have no idea how to fix it, please let us know?

    http://stackoverflow.com/questions/7205022/can-we-invoke-click-function-on-div-class-using-javascript
    ——————
    <script>
    $(function(){
    $(‘.listing tr:not(a),.list_style_simple li:not(a)’).click(function(event){
    var $me = $(this);
    var $a = $(‘h2 a:first’,$me);
    if($a.length)
    {
    // go to item page
    top.location.href=$a.prop(‘href’);
    return false;
    }
    });
    });
    </script>

    #1863 Reply

    Elite Tan
    Participant

    Support above issue has been resolve already just use $(‘.listing2 <- example add a 2 to match my div class=listing2 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: clickable ad box java script not working in div class
Your information: