ºÃÏ·ÉÏÑÝ
ҹĻËĺϣ¬ÔÂÉ«ëüëÊ£¬¼¸µã²ÐÐÇÉÁ˸׏¼ŵĵ¹â¡£ÅçȪÇãÈ÷×ÅäòäÙË®¹â£¬ÁÖ¼äÝÓÈÆ×ÅÒ»²ãµµµÄÎíö°£¬Â·µÆ»è»Æ°µµ£¬È÷Âä°ß²µµÄÊ÷Ó°¡£
ÏæÒÔĹí¹íËîËîµØ¶ãÔÚÎÝÍâµÄǽ½Ç´¦£¬Ê±²»Ê±Ì½³öÍ·£¬ÍµÍµÕÅÍû£¬¶Ô×ÅÊÖ»ú±§Ô¹£¬¡°ËýÔõô»¹Ã»³öÏÖ£¿¡±
¡°ÎÒÔõô֪µÀ£¿¡±ÊÖ»úÀï´«À´ÄϹ¬º®ÆøÃƵÄÉùÒô¡£
¡°²»ÊÇÓÉÄ㸺ÔðÒýÉß³ö¶´µÄÂ¡±
¡°ÎÒÊÇÈÃËý¶À×ÔÒ»ÈËÀ´ºÍÎÒ¼ûÃæ¡¡¡±
ͻȻ£¬µØÃæÉϳöÏÖÒ»Ìõ°µÓ°£¬Ò¦ÃÀÄȳöÏÖÔÚÓÄ»ÆÉ«µÄ·µÆÏ£¬Ëý¾«ÐÄ´ò°çÁËÒ»·¬£¬²»Î·ÁÝÙýµÄº®·ç£¬´©×ŵ¥±¡µÄÁ¬Ò¶Ìȹ£¬Í··¢Å̳ÉÁ˾«ÖµĻ¨ÐΣ¬¼¸ç¸·¢Ë¿´¹ÔÚ¶úÅÏ£¬Ëæן®·ç·÷¶¯¡£¿ÉÄÜҪαװ³öã¾ã²µÄÉñ̬£¬Á³É«ËÀ°×£¬²»ÖªµÀÍ¿Á˼¸½ï·Û¡£ÔÚ´óÍíÉϵģ¬Õ§Ò»¿´£¬À÷¹í°ã¿Ö²À¡£
Óã¶ùÉϹ³£¬ºÃÏ·ÉÏÑÝ£¡
ÏæÒÔÄÑ۽Ǻ¬Ð¦£¬×ª¹ýÉí£¬àÇÉùàÇÆøµØ˵µÀ£º¡°Ç×°®µÄ£¬Õâô¶àÌìû¼û£¬È˼ҺÃÏëºÃÏëÄãŶ£¡Ïëʲô£¿µ±È»Ïë¸úÄãÄǸöÄǸöÀ²£¡¡£¡±Èç´Ë½¿Èá×ö×÷µÄÉùÒô£¬¹À¼ÆÊÖ»úÄÇÍ·µÄÄϹ¬º®ÌýµÃë¹Çã¤È»¡¢¶ñÐÄÏëÍ¡£
ÉîÅÂÒ¦ÃÀÄÈÌý²»¼û£¬Ëý¹ÊÒâÌá¸ßɤÃÅ£º¡°Ê²Ã´£¿ÄãÀ´ÕâÀïÕÒÎÒÁË£¿²»Ðв»ÐУ¬ÍòÒ»±»ÎÒÕÉ·ò·¢ÏÖÁËÔõô°ì£¿ÄãÒѾÁï½øÀ´ÁË£¿ÄÇÄã²ØÔÚÄÄÀÎÒÂíÉÏÈ¥ÕÒÄ㣡¡±ÏæÒÔÄõÚÆð½Å¼â£¬Å²×ÅСËé²½£¬ÅÜÏòÅԱߵÄÊ÷´Ô£¬ËýÄܸоõµ½±³ºóÉäÀ´Ò¦ÃÀÄÈ×Æ×ƵÄÐ׺ÝÄ¿¹â¡£ÄÜץסÏæÒÔĵİѱú£¬Ëý²Å²»»á´í¹ýÕâ´Î»ú»á¡£
»¨Ì³Éî´¦£¬²Ýľ´ÔÉú£¬¹âÏß°µµ£¬ÒþÔ¼Ò»¸öñý³¤µÄ°µÓ°ØùÁ¢ÔÚ¹àľ´Ôºó¡£
ÏæÒÔÄÐ˷ܵØÆȲ»¼°´ýµØÆËÈëËûµÄ»³À½¿µÎµÎµØ˵µÀ£º¡°Ç×°®µÄ£¬ÄãÔõôÀ´ÁË£¬ÍòÒ»±»·¢ÏÖÁËÔõô°ì£¿ÎÒ²»ÏëÄãÓÐÊ¡£¡±
ÄϹ¬º®ÃÆÃƵصÍà¨Ò»Éù£¬¡°ÄãÄÜÕý³£½²»°Â𣿡±
ÏæÒÔÄĥĥÑÀ£¬Ñ¹µÍÉùÒô½ÌѵËû£¬¡°´íÁË£¡²ÊÅŵÄʱºò²»ÊǸæËß¹ýÄ㣬Ӧ¸Ã˵£º±¦±´ÎÒÌ«ÏëÄãÁË£¬ÎªÁËÄãÎÒ¿ÉÒÔÉϵ¶É½£¬Ï»𺣡£ÎªÁ˼ûÄ㣬ÔÙ´óµÄΣÏÕÎÒÒ²²»Å¡£¸øÎÒ³¤µã¼ÇÐÔ£¡Õâô¼òµ¥µÄÁ½¾ä»°¶¼²»»á£¡¡±°¦£¬ÓÖÊÇÒ»¸ö±»°Ëµãµµ·ÊÔí¾çݱ¶¾µÄÍÞ£¬Õâô¶ñÐĵĻ°ÈÃÄϹ¬º®Ôõô˵µÃ³ö¿Ú¡£
ËûÃòÁËÃò×죬¹ÊÒâѹסɤ×Ó£¬ÉùÒô±äµÃ´ÖÑÆÐÛºñ£¬¡°ÎҺò»ÈÝÒ×À´Ò»ÌË£¬ÈÃÎҺúó¢³¢ÄãµÄζµÀ£¡¡±ËûÅõÆðÏæÒÔĵÄÁ³£¬Ã͵ØÎÇÁËÏÂÈ¥¡£
<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