SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Formerly known as RockNRollPig Shpigford's Avatar
    Join Date
    Dec 2002
    Location
    Denver, CO
    Posts
    2,877
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need to run an onclick on a div with iframes and flash

    I'm trying to track clicks on content that is within a div. Unfortunately that content will usually contain an iframe or flash or both.

    I've tried doing one div as an overlay over the iframe (as suggested here), but that pretty much kills anything under the overlay...meaning users can't actually click through to what is in the iframe or flash.

    So, any ideas on how to pull this off?

  2. #2
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd start with the addEventListener (attachEvent for ie) method. It allows you to manipulate events with more control. Also, you should learn how events trickle and bubble and cancel if you don't already .

  3. #3
    Formerly known as RockNRollPig Shpigford's Avatar
    Join Date
    Dec 2002
    Location
    Denver, CO
    Posts
    2,877
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Care to give a code sample of some sort?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •