PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   七嘴八舌異言堂 (https://www.pcdvd.com.tw/forumdisplay.php?f=12)
-   -   google 非同步廣告代碼 在 JS 腳本裡面怎麼寫? (https://www.pcdvd.com.tw/showthread.php?t=1149565)

Goemon 2018-07-20 03:48 PM

google 非同步廣告代碼 在 JS 腳本裡面怎麼寫?
 
HTML 代碼
代碼:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-70+i-gg+ee+12j" data-ad-client="ca-pub-5853818035217866" data-ad-slot="5433895984"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</br>


JS 腳本
代碼:
var gads1_data = 
function gads1(gads1_data){
    page.includeJs("http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js")
}
page.open(url, function(status) {
    gads1(gads1_data)
});


這段寫這樣對嗎 :confused:
新的非同步代碼 多了 INS
gads1_data (script 內容) 參數要怎麼寫進去 :confused:


所有的時間均為GMT +8。 現在的時間是08:58 AM.

vBulletin Version 3.0.1
powered_by_vbulletin 2025。