dvsDave
Well-known member
So, XF defines presets width's for responsive layouts that users CSS display:none; to hide elements when the browser page gets too narrow.
I would like to set an iframe's width based on the active preset being used.
If I can pull this off, I use javascript to grab the width of the iframe (using this code) , and use that width to pull the correct size ad from adzerk. (adzerk responsive code)
I have to feed that code through a convoluted iframe because we reload the iframe automatically every 9 seconds. (our ads are contract only, we don't use adsense or any other networks)
So, any ideas of how I can set the iFrame's width based on the active responsive preset being used?
I would like to set an iframe's width based on the active preset being used.
If I can pull this off, I use javascript to grab the width of the iframe (using this code) , and use that width to pull the correct size ad from adzerk. (adzerk responsive code)
I have to feed that code through a convoluted iframe because we reload the iframe automatically every 9 seconds. (our ads are contract only, we don't use adsense or any other networks)
So, any ideas of how I can set the iFrame's width based on the active responsive preset being used?