Created
September 5, 2013 14:57
-
-
Save tairov/6451305 to your computer and use it in GitHub Desktop.
sandbox javascript iframe banner loading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe id="bannerTopWide" src="about:blank" width="100%" height="100%" marginwidth=0 marginheight=0 scrolling=no frameborder=0> | |
</iframe> | |
<script type="text/javascript"> | |
$(function() { | |
var content = '<sc' + 'ript charset="UTF-8" src="//cdn.rollad.ru/rollad.js"' + '></' + 'script>' | |
+'<div><sc' + 'ript type="text/javascript">RRoller.load(10102030491929384);' + '</sc' + 'ript></div>'; | |
var frDoc = $('#bannerTopWide')[0].contentWindow.document; | |
frDoc.write(content); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment