次のコードがあります。他のすべてがロードされた後にコンテンツをロードしたい。しかし、 javascriptではなくhtmlしかロードできないようです:
$(document).ready(function () {
$("#twitter_left").html("<p><img align='left' alt='Twitter Bird' src='/sites/all/themes/helixTheme/images/twitter-bird.png' /><strong> Follow Us On Twitter</strong></p><p> </p><p><script charset='utf-8' src='http://widgets.twimg.com/j/2/widget.js'></script><script>new TWTR.Widget({version: 2,type: 'profile',rpp: 7,interval: 30000,width: 'auto',height: 800,theme: {shell: {background: '#dbe5ff',color: '#333333'},tweets: {background: '#ffffff',color: '#999999',links: '#f26422'}},features: {scrollbar: false,loop: true,live: false,behavior: 'default'}}).render().setUser('helixwebsites').start();</script></p>");});
したがって、私の次の計画は、コンテンツを html ファイルに入れて.load
ハンドラーを使用することでしたが、すべてのページがロードされた後にロードする必要があります。