您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

javascript - 百度广告如何触发执行?

2024/3/5 20:13:26发布20次查看
我想根据滚动条滚动来加载百度广告,
但是百度的广告在文档载入完成后调用就会出问题。
有没有人做过类似的,有没有解决方法?
正常的百度广告代码:
(function() { var s = _ + math.random().tostring(36).slice(2); document.write('
'); (window.slotbydup=window.slotbydup || []).push({ id: '1232323', container: s, size: '728,90', display: 'inlay-fix' });})();

然而我想
$(function(){ function test() { var s = _ + math.random().tostring(36).slice(2); document.write('
'); (window.slotbydup=window.slotbydup || []).push({ id: '1232323', container: s, size: '728,90', display: 'inlay-fix' }); } test();//某个操作会调用test});

这样子调用就行,有没有办法解决的
回复内容: 我想根据滚动条滚动来加载百度广告,
但是百度的广告在文档载入完成后调用就会出问题。
有没有人做过类似的,有没有解决方法?
正常的百度广告代码:
(function() { var s = _ + math.random().tostring(36).slice(2); document.write('
'); (window.slotbydup=window.slotbydup || []).push({ id: '1232323', container: s, size: '728,90', display: 'inlay-fix' });})();

然而我想
$(function(){ function test() { var s = _ + math.random().tostring(36).slice(2); document.write('
'); (window.slotbydup=window.slotbydup || []).push({ id: '1232323', container: s, size: '728,90', display: 'inlay-fix' }); } test();//某个操作会调用test});

这样子调用就行,有没有办法解决的
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product