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

Banner Ad Rotator Script - How to include an iframe banner?

Discussion in 'HTML & JavaScript' started by Joline86, Jun 15, 2011.

  1. Joline86

    Joline86 Newbie

    Joined:
    May 10, 2010
    Messages:
    43
    Likes Received:
    7
    Home Page:
    I cannot post the code here. I need a javascript banner ad rotator. I used devdude[dot]c0m/tools/js/adrotator/ to create a banner rotator so if you are familiar with that site you will know what the code looks like. My first ad works fine because it is set up with a link, image and alt tag. My second ad does not work because it is in the form of an iframe and I am not sure how to change the script to use the iframe ad. I tried adding the iframe script in ("") after

    if (number == 1) {
    document.write

    but the ad shows up as text with a broken image link in a box instead of the clickable flash image.

    I am using banner ads supplied to me by my affiliate programs so I am not sure that I can change the iframe to a different format or if that will mess with tracking my sales. I hope this makes sense, I don't know much about javascript. Thanks for any advice!
     
  2. Joline86

    Joline86 Newbie

    Joined:
    May 10, 2010
    Messages:
    43
    Likes Received:
    7
    Home Page:
    OK I figured out how to include an iframe banner in the rotator. Now if I could just figure out how to get the link in the iframe to open in a new window.