Which Ad Code is Better: iframe or javascript?

by 4 replies
6
We all know that HTML is the best option, but what if an affiliate network only provides you with 2 options, iframe or javascript?

Which is better?

Many people have javascript turned off, and many people have anti-spyware that alerts/disables iframes, so...

If you had to choose between iframe or javascript code, which would you choose, and why?

.jrd
#ad networks (cpm/cpl, display) #code #iframe #javascript
  • I'd pick javascript because even if it doesn't work because someone has it disabled that's better than showing up as spyware or adware. Once that happens you can almost guarantee you lost a potential customer.
    • [ 1 ] Thanks
  • Thanks Liquification,

    I have been leaning towards JavaScript over the Iframe option for this specific reason...

    still curious to see what others think...
  • Why not run a check and if the JavaScript is disabled, display an iframe. Something like this I would think:

    $test = get_browser();
    if ($test["javascript"] == 0) {
    echo "iframe code but with " replaced by ' for it to work";
    }

    I'm not really a coder by the way just in case it don't work.

    -edit-

    Use else to echo Javascript.
  • I prefer to use php, but out of those 2 options I would use Javascript.

Next Topics on Trending Feed