1.0.8 • Published 3 years ago

hyjssdk v1.0.8

Weekly downloads
9
License
ISC
Repository
-
Last release
3 years ago

广告SDK用法

script引入

引入

<script src="http://activity-share.growingsdk.com/assets/sdk/hyjssdk.js"></script> 

调用

 window.hyjssdk && window.hyjssdk._initHYadScenario({
        adslot_id: "1029077", //必填
        dom: document.querySelector(".test"), //或者document.getElementsByclassName('test')[0]  传入的类型必须是HTMLElement 必填
        top_bottom_padding: 12,
        left_right_padding: 12,
        single_image_type: 0,
        tripple_image_type: 1,
        img_width: 180,
        img_height: 90,
        text_image_indent: 10,
        text_color: "#999",
        fs: 15,
    });

参数含义

interface AdStyleParams {
    adslot_id: string //广告位id
    dom: HTMLElement, //dom节点
    fs?: number, //字体大小
    bg_color?: string, //背景色
    top_bottom_padding?: number, //上下边距
    left_right_padding?: number, //左右边距
    single_image_type?: number, // 单图: 0左图右文 1左文右图   
    tripple_image_type?: number, //大图: 0 上文下图  1 上图下文 
    img_width?: number, //图片宽度
    img_height?: number, //图片高度
    text_image_indent?: number, //图文间距
    text_color?: string //文字颜色 
}
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago