codecamp

MIP ad-qwang 全网推荐

全网推荐

支持布局

  • fixed-height
  • fixed

示例

基本使用

<mip-ad 
    type="ad-qwang" 
    cpro_psid="u2619809" 
    cpro_pswidth="auto" 
    cpro_psheight="230">
</mip-ad>

fixed 布局

<mip-ad 
    layout="fixed" 
    width="414" 
    height="80" 
    type="ad-qwang" 
    cpro_psid="u2619809" 
    cpro_pswidth="auto" 
    cpro_psheight="230">
</mip-ad>

属性

type

说明:广告类型
必选项:是
类型:字符串
取值:ad-qwang 默认值:无

cpro_psid

说明:广告投放id
必选项:是
类型:字符串
默认值:无

cpro_pswidth

说明:宽度
必选项:否
类型:数字
默认值:auto

cpro_psheight

说明:宽度
必选项:否
类型:数字
默认值:230

MIP ad-comm 通用广告
MIP FAQ
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

MIP 帮助

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }