i want to execute an advertisement script after the page has been loaded. i know that i have to use something like this:
$(window).bind("load", function() {
$.getScript('http://anetwork.ir/showad/?adwidth=468&adheight=60&aduser=1341223032', function() {
// callback function
alert('external script loaded!');
});
});
but it's not working, although the alert loads. also there is no problem with
$(window).bind("load", function()
the problem must be from $.getScript . i also must add that the external script outputs something like this:
document.write('<iframe scrolling="no" width="468" height="60" frameborder="0" src="http://anetwork.ir/showad/c.php?adwidth=468&adheight=60&aduser=1341223032">
');