I trying to find this solution but i found a dead end. Is there any way to make the ads (using external javascript,e.g: like adsense) loads after all my page loaded. I try to use innerhtml but it not work for javascript, only good for insert text. And please give detail example because i'm still learned. I know some programming but still new at web programming. Thanks in advance
Well, you can play with document.onload and display the ads with a function that execustes when the document loads. What have you tried? Any success? Here's what you can do if the ads use externel .js files: document.onload = loadAds; function loadAds() { var ads = document.createElement('script'); ads.type = 'text/javascript'; ads.src = 'ads_external_file.js'; document.head.appendChild(ads); } Code (markup): This creates a <script> tag, containing the 'ads_external_file.js' script. You can change the src property to the URI of your ads and this should work. The last line of code attaches the script to the <head>, which may not be appropriate for some ads. You can change it to attach the ads to another element, lets say a <div> that you've positioned where you want the ads to show. Try this and share the results, it shouldn't be that hard to accomplish what you want, but i still wonder why would you want to do it..
Ah, just see your reply. Ok, i will give it a try. I want to do it because there's an ads that loads very slow (vizu answer) and it is placed before my content. Hence, sometimes it will make the visitor annoyed because my content is showed after several seconds. And i can't find any other place for that ads (yes, i was wrong when design my layout, content should be on the left side of ads but it's too risky to change it now). Hope your solution can work. Thanks