½Ò´©ÕæÏà
±¾À´ÒÔΪ»áÊÇÁîÈËÁ³ºì¶ú³à£¬¼¤ÇéËÄÒçµÄ²øÃà»Ã棬¿ÉÊÂʵÉÏÈ´ÊÇ£¬Á½¸öÈ˽£°ÎåóÕÅ£¬¾À½á²ø´òµ½ÁËÒ»Æð¡£ÏæÒÔÄÒ§×ÅËûµÄÊÖ±Û²»·Å£¬ÄϹ¬º®ÔòÆþ×ÅËýµÄ²±×Ó£¬ÕâÄÄÏñÒ»¶Ô³Õ³Õ²ø²øµÄÁµÈË£¬·ÖÃ÷ÊÇÓÐѪº£Éî³ðµÄ³ðÈË¡£
ÏæÒÔÄɨÊÓµ½Ò¦ÃÀÄÈ£¬Á¢¼´ËÉ¿ªÁË×죬ֻÔÚËûµÄÊÖÍóÉÏÒ§³öÁ½ÅÅdzdzÑÀÓ¡£¬ÄϹ¬º®Æþ×ÅËý²±×ÓµÄÊÖҲûÓÐÓÃÁ¦¡£Ëý×ì½ÇÑïÆð²ÓÀõÄЦÈÝ£¬ÅÄÁËÅÄÅ¿ÔÚËýÉíÉϵÄÄϹ¬º®£¬Ìù½üËû¶ú¶äÇáÉù˵µÀ£º¡°¿´£¡Õâ´ÎÄãÊäµÃÐÄ·þ¿Ú·þÁË°É£¿¡±ÏæÒÔÄÕâ´ÎÑÝÉÏñ«ÁË£¬¹Ê×÷¾ª»Åʧ´ë£¬îªÄ¿½áÉàµØ¿´×ÅËý£¬¡°Äã¡¡ÄãÔõô»áÔÚÕâÀ¡±
¡°Äã¾ÓÈ»¸ÒÔÚÕâÀï͵ÄÐÈË£¬¼òÖ±²»Ïë»îÁË£¡¡±Ò¦ÃÀÄÈÖº¸ßÆøÑïµØÒ¡ÁËÒ¡ÊÖ»ú£¬¡°ÄãµÄ×ïÖ¤ÎÒÒѾÅÄÏÂÁË£¬Äã˵º®¸ç¸ç¿´ÁË»áÔõÑù£¿¡±
ÏæÒÔÄÕ£ÁËÕ£²ÓÈôÐdz½µÄÑÛ¾¦£¬ÌìÕæÎÞаµØ¿´×ÅËý£¬¡°ÄãÏëÖªµÀ´ð°¸Âð£¿Ö±½ÓÎÊËûºÃÁË£¡¡±
ÄϹ¬º®Á³É«³ÁÓô£¬µÍÍ·½«Ëý³¨¿ªµÄÁì¿ÚÀºÃ£¬»ºÂýµØת¹ýÍ·£¬¿ñáúµÄÑÛíø±ÅÉä³öÁèÀ÷µÄ·æ⣬·Â·ð¿ÉÒÔ´Ì´©µØÓü°ãÒõÀä¡£
ËäÈ»ËûÒ»¸ö×Ö¶¼Ã»ÓÐ˵£¬µ«Ò¦ÃÀÄÈÒѾÏŵÃÀ亹ä¹ä¹£¬ÊÖÒ»¶¶£¬ÊÖ»úµôÂäµ½Á˵ØÉÏ¡£ËýÖªµÀ£¬ÄϹ¬º®×îÍ´ºÞµÄ¾ÍÊÇÆÛÆ£¬¶øËýһƣ¬¾ÍÆÁËËûÊ®¼¸Äê¡£Ò¦ÃÀÄÈõÔõĵغóÍËÁ˼¸²½£¬µø×øÔÚµØÉÏ¡£
¡°Äãʲôʱºò¿ÉÒÔÕ¾ÆðÀ´µÄ£¿¡±ÄϹ¬º®»ôÈ»ÆðÉí´Ó¹àľ´Ôºó×ßÁ˳öÀ´£¬Àäíþ×ÅËý£¬ÉîåäµÄÑÛ¾¦ÀïÒþÒþÈ»ÓÐÒ»ÍÅÅ»ðÔÚÌø¶¯¡£
Ò¦ÃÀÄÈÕúÕúã¶ã¶µØ¿´×ÅËû£¬×°³öÒ»Á³ÎÞ¹¼µÄ´¿ÕæÑù£¬¡°ÎÒ¿ÉÒÔÕ¾ÁËÂð£¿ÎÒ¸Õ¸ÕÕ¾ÆðÀ´ÁËÂ𣿡±
º®¹¬º®³°·íµØÇáЦһÉù£¬¡°Ã»Ïëµ½ÄãÑݼ¼Èç´Ë³öÖÚ£¬ÎÒ±»ÄãÆÁËÕâô¾Ã£¡¡±
¡°ÎÒ¡¡ÎÒûÓÐÆÄ㣬º®¸ç¸ç£¬ÄãÏàÐÅÎÒ¡¡¡±Ò¦ÃÀÄÈɪɪËõËõµØ¿´×ÅËû£¬ÑÛ½ÇÇß³ö±ùÁ¹µÄÀỨ£¬À×ÅËûµÄÒÂÐä¿à¿à°§ÇóËû¡£
ÄϹ¬º®Ö±½Ó˦¿ªËýµÄÊÖ£¬¡°µ½ÏÖÔÚÄ㻹ÏëËÀ²»³ÐÈÏ£¿ÄÇÀïÓмà¿Ø¼Ïñ£¬ÄãÈç¹ûÔÝʱʧÒäÁË£¬²»¼ÇµÃ¸Õ¸ÕÔõôվÆðÀ´µÄ£¬ÎÒ¿ÉÒÔ´øÄãÈ¥»Øζ»Øζ£¡¡±
¡°º®¸ç¸ç£¬ÎÒÖ»ÏëÏëÒ»±²×ÓÅãÔÚÄãµÄÉí±ß£¬²Å»á³ö´Ëϲߣ¬ÄѵÀÎÒÏëµ±¸ö±»ÈËà¨Æü³°Ð¦µÄ·ÏÈËÂð£¿ÄѵÀÎÒÒ»Ö±×øÂÖÒÎÊæ·þÂð£¿ÎªÁËÄÜÁôÔÚÄãÉí±ß£¬ÎÒÕâЩ¶¼¿ÉÒÔÈÌ£¡¡±
¡°Äã²»Ó¦¸ÃÀûÓÃÎÒµÄͬÇ飡¡±
<div id="ads1" style="position:relative; width:320px; height:48px;">
<script type="text/javascript" src="">
<style>
/*
* css class for Baidu ad
*/
._bdsTitle{color:blue; text-decoration: underline; margin-left: 10px;}
._bdsDesc{color:blue; text-decoration: underline; margin-left: 25px;}
._bdsImg{height:38px;}
._bdsIcon{width:22px;}
</style>
<script type="text/javascript">
function baidu_ads_show(){
/*
* JS SDK Demo 2.0
*
* ²ÎÊýÏêÇéÇë²Î¿´<SDK_PATH>/js_manual.doc
* <SDK_PATH>ÊÇSDKµÄ½Ó½âѹ·¾¶
*
*/
_$BDS({
cid:ads1, //[±ØÑ¡]£¬ÈÝÆ÷ID
appsid:bed4f744, //[±ØÑ¡]
appsec:bed4f744, //[±ØÑ¡]£¬¼Æ·ÑÃû
pack: , //App±êʶ£»AndroidÖÐΪApp°üÃû£¬iOSÖÐΪBundle Identifier
// bfn: adBuilders[adType],//UI¹¹Ô캯Êý£¬ ĬÈÏʹÓÃÄÚÖú¯Êý
w:320, //ÈÝÆ÷¿í¶È£¬ÉèÖÃ<meta name="viewport" />ºó£¬´ó²¿·Öä¯ÀÀÆ÷¾ßÓÐ320px¿í¶ÈµÄ´°¿Ú
h:48, //ÈÝÆ÷¸ß¶È£¬²Î¿¼Öµ£ºh = w * 0.15
os: 0, //É豸²Ù×÷ϵͳÀàÐÍ£¬0:auto£¬1:Android£¬2:iOS
sn:, //É豸´®ºÅ£¬ÊÖ»úΪIMEI£¬Æ½°å¿É´«MAC
isp:, //Òƶ¯Í¨ÐÅÔËÓªÉ̱àºÅ
imsi:, //IMSI
AP:false,
//cell:[[, 6318, 0], [, 6319, 0]], //»ùÕ¾¶¨Î»ÐÅÏ¢
//gps:[, 127., 31.], //GPS¶¨Î»ÐÅÏ¢
//wifi:[[c417fe0, 45], [17fe0c, 65]], //WIFI¶¨Î»ÐÅÏ¢
listener: DEFAULT_LISTENER
});
}
//Íƹ㹹ÔìÆ÷
var adType = 2; //ÍƹãÀàÐÍ,1:Îı¾ÀàÐÍ£¬2£ºÍ¼Æ¬ÀàÐÍ
var adBuilders = {
//textÀàÐÍÍƹ㹹ÔìÆ÷
1: function(ad){
//adÓÐ4¸öÊôÐÔ£ºtitle¡¢desc¡¢img¡¢icon
return ad.title +
+ ad.desc;
},
//imageÀàÐÍÍƹ㹹ÔìÆ÷
2: function(ad){
//adÓÐ2¸öÊôÐÔ£ºimg¡¢icon£¬ titleºÍdescΪ¿Õ
return ad.img;
}
}
var TAG = [Dev] JsSdk
var DEFAULT_LISTENER = {
onAdShow: function(){//Íƹã³É¹¦Õ¹Ê¾Ê¼þ
console.log(TAG, onAdShow
},
onAdClick: function(){//Íƹ㱻µã»÷ʼþ
console.log(TAG, onAdClick
},
onAdFailed: function(){//ÍƹãÎÞ·¨¼ÌÐøչʾ£»onReceiveFail¿ÉÄܼÌÐøչʾÍƹã
console.log(TAG, onAdFailed
},
onAdSwitch: function(){//ÍƹãÂÖתʼþ
console.log(TAG, onAdSwitch
},
onReceiveSuccess: function(){//´Ó·þÎñÆ÷³É¹¦½ÓÊÕµ½ÍƹãµÄʼþ
console.log(TAG, onReceiveSuccess
},
onReceiveFail: function(reason){//´Ó·þÎñÆ÷½ÓÊÕÍƹãʧ°ÜµÄʼþ£¬ÍøÂçÒì³£µÈ¿ÉÄÜ´¥·¢¸Ãʼþ
console.log(TAG, onReceiveFail, reason);
}
}
if( !is_pc){
// Demo Entry
baidu_ads_show();
}
//setTimeout(demo, 4000);
<script type="text/javascript">
if( is_pc){
$_("ads1").style.display="none