onclick popup script not working with iframe?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • levd
    Confirmed User
    • Jul 2006
    • 581

    #1

    onclick popup script not working with iframe?

    Hi there,

    Wondering if anyone can help me get my onclick popup script working with iframes on my site.
    This onclick script works awesome, if a visitor click somewhere on my page the pop is working however not on iframe i included.
    Anyone knows how to get this working?

    LEVD
  • levd
    Confirmed User
    • Jul 2006
    • 581

    #2
    Still looking for a solution..anyone?

    Comment

    • sarettah
      see you later, I'm gone
      • Oct 2002
      • 14293

      #3
      Originally posted by levd
      Still looking for a solution..anyone?
      I am not sure of the best solution but you could put a transparent div over the iframe to capture the click and then hide the div so that they can actually click into the iframe.

      Other than that you might be able to pass the click from the iframe back to the parent and make it work like that.

      .
      All cookies cleared!

      Comment

      • levd
        Confirmed User
        • Jul 2006
        • 581

        #4
        Hi M8,

        Something like this <div style="filter:alpha(opacity=50); opacity:0.5;">iframe</div>
        But what do you mean with hide it after that?

        LEVD

        Comment

        • sarettah
          see you later, I'm gone
          • Oct 2002
          • 14293

          #5
          Originally posted by levd
          Hi M8,

          Something like this <div style="filter:alpha(opacity=50); opacity:0.5;">iframe</div>
          But what do you mean with hide it after that?

          LEVD
          A while back I put up a test of what I am talking about here http://www.partyafterdark.com/poptest/firstpage.htm

          I am using a transparent gif in a div over the whole page. When you click on it it launches a new page in another tab and sets the div to display:none.

          You could do the same thing on top of an iframe. Do a view source on it.

          .
          All cookies cleared!

          Comment

          • levd
            Confirmed User
            • Jul 2006
            • 581

            #6
            Pretty awesome this works!

            Comment

            • sarettah
              see you later, I'm gone
              • Oct 2002
              • 14293

              #7
              Originally posted by levd
              Pretty awesome this works!
              Glad it worked for you

              .
              All cookies cleared!

              Comment

              • levd
                Confirmed User
                • Jul 2006
                • 581

                #8
                btw: i found a pretty advanced pop script that actually pops under also in Chrome, the ones i had always popped over in chrome.
                It has a lot of settings, i dont understand all of them, willing to share it with you, if you could be so kind to look at it and look at the settings and let me know.
                Can i contact you?

                Comment

                • sarettah
                  see you later, I'm gone
                  • Oct 2002
                  • 14293

                  #9
                  Originally posted by levd
                  btw: i found a pretty advanced pop script that actually pops under also in Chrome, the ones i had always popped over in chrome.
                  It has a lot of settings, i dont understand all of them, willing to share it with you, if you could be so kind to look at it and look at the settings and let me know.
                  Can i contact you?
                  Sure, I will take a look. I won't promise anything. Email is sarettah at hatterasdesigns dot com. ICQ is 2155399

                  .
                  All cookies cleared!

                  Comment

                  Working...