1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Clicking an image, and my iFrame pops up

Discussion in 'Blogging' started by Fadi946, Feb 3, 2012.

  1. Fadi946

    Fadi946 Power Member

    Joined:
    Mar 25, 2009
    Messages:
    526
    Likes Received:
    77
    Location:
    With my parents :(
    Hmm I'm not very good at explaining... but try to understand me.

    I'm trying to make an HTML code that after someone clicks my image, my CPA offer will pop up (But my iFramed one).. Hmm..

    I'll try to explain again:

    Image-->Click-->My iFramed CPA offer OVER my image.

    Can anyone tell me how to do it?

    I hope you understood me well >.<

    Thanks!
     
  2. Dumper

    Dumper Supreme Member

    Joined:
    Mar 20, 2009
    Messages:
    1,392
    Likes Received:
    486
    Location:
    Perdido Key
  3. webblackart

    webblackart Registered Member

    Joined:
    May 13, 2009
    Messages:
    60
    Likes Received:
    9
    first, what you like is not possible with html, you would need some javascript and css.
    you can use the onclick event to call a js to change your img element to an iframe with the same size and position. or try the zindex property.
     
  4. Fadi946

    Fadi946 Power Member

    Joined:
    Mar 25, 2009
    Messages:
    526
    Likes Received:
    77
    Location:
    With my parents :(
    @Dumper not really :S

    Is there any simple way? Just to POP UP a window with my offer after clicking an image...

    I never worked with JS and all of this mess so...
     
  5. cacoleman1983

    cacoleman1983 Newbie

    Joined:
    Aug 16, 2009
    Messages:
    17
    Likes Received:
    1
    Occupation:
    College Instructor / Math Tutor and Inspiring Inte
    Location:
    United States
    This is something that I thought about doing myself. I am currently brainstorming the idea but I found something that may help you.


    The following code would be a good example if you wanted to use a mouse over function. I was thinking of hovering over a picture to make them see your Iframe automatically. The parent location would need to be your page with the iframe on it to work.

    <A HREF="website"
    onMouseOver="parent.location='dude.html'";>HTML Goodies</A>