tags:

views:

11

answers:

0

I'm working on a site (http://newscrud.com/) that puts warning label images over the top of badly written internet news articles.

I implement this with an iFrame with the warning labels on the outer frame, if the framed article wants to bust out of the frame, I let the user know so they can cancel it if they want.

This seems to work okay except for one situation I've found, occasionally when one particular advert shows up on the framed page and it then fills the entire screen with a stretched out version of itself. This is the page that occasionally has the problem: http://newscrud.appspot.com/warning?id=175200425

The ad seems to do this by rewriting the content of the page with javascript (forgive me for not posting the advert's javascript code, there is loads of it and I can't make head or tail of it). As it doesn't actually change the URL, I can't detect it, as it never triggers an onbeforeunload() event.

I'm pretty sure stretching the ad to the whole screen isn't their intention and is a side effect of something else they are doing, but I can't figure out what.

Does anyone have any ideas about how I can detect this? - (it only happens probably 1 time in 10 when that particular ad shows up) If I can tell it's happening, then as a back up I can provide the users with two links, one to the newspaper article, the other to the warning labels and further information.

Thanks for any ideas.

(By the way I can't post any more links or screenshots but they're the latest entries on the twitter stream - @newscrud)