PageSourceSearch

https://www.cnwnews.com/static/js/aliad.mod.js

js cnwnews.com collected 2026-09-25 04:08:47 UTC 1,244 bytes, 53 lines download raw bytes

1/**
2 * 页面中的广告,以频道为单位,即各频道可以不同
3 * 广告位命名规则:所有广告位须有ads类名,便于统一管理
4 */
5
6//为兼容非框架页面的广告投放
7if(typeof define == 'function') { // 有框架的情况
8    define(['adIaxLib'], function(_adIax_init) {
9        _adIax_init = window._adIax_init;
10        runad_fun();
11    });
12}else{ // 无框架的情况
13    runad_fun();
14};
15
16// 两种执行广告代码的方法
17function runad_fun(){
18    if(!window._adIax_init) {
19        $.getScript('static/js/iAX2.js', function() {
20            run_ad();
21        });
22    }else{
23        run_ad();
24    };
25};
26
27function run_ad() {
28	//时政-首-顶通一
29	if($("#ad_index_top_full_01").length > 0) {
30		$("#ad_index_top_full_01").html('');
31		_adIax_init({
32			pubid:120,
33			unitid:1115,
34			w:1000,
35			h:60,
36			adConId:"ad_index_top_full_01"
37		})
38	}
39	//时政-首-顶通二
40	if($("#ad_index_top_full_02").length > 0) {
41		$("#ad_index_top_full_02").html('');
42		_adIax_init({
43			pubid:120,
44			unitid:1116,
45			w:1000,
46			h:60,
47			adConId:"ad_index_top_full_02"
48		})
49	}
50	//不显示直投广告
51	$("#ad_con_right_full_01").remove();
52	$("#ad_con_right_02").remove();
53}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.