发布网友 发布时间:2022-05-04 12:27
共1个回答
热心网友 时间:2022-04-24 17:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml" > <head> <title>Advertising</title> <style type="text/css"> body,td,div,input{font-size:12px;} ul,li{list-style:none;} ul,li,body,td,form{margin:0px;padding:0px;} a{color:#1b4784;text-decoration:none;} a:visited{font-weight:normal;color:#5c7a03;text-decoration:underline} a:hover {font-weight:normal;color:#f00;text-decoration: underline} a,a:visited,a:hover{font-size:14px;} .content{width:958px;height:88px;overflow:hidden;border:#b2cfdd 1px solid;background:url(images/90.80_blue.gif) repeat-x 0 100%;} .content .b{width:1200px;margin-left:5px;} .frm_so{width:172px;margin:22px 0 0 10px;} .frm_so td{width:172px;text-align:center;} .frm_so .logo img{width:70px;height:23px;} .frm_so .input input{width:80px;} .frm_so .button{text-align:left;} .adlist{margin-top:0px;width:850px;float:left} .adlist li{float:left;width:135px;line-height:29px;height:29px;overflow:hidden;} .adlist li a{display:inline-block;margin-left:0px;} #hidList{display:none;} form{float:left;} </style> <script type="text/javascript" src="script/google_ad.js"></script> </head> <body> <div class="content"> <div class="b"> <form action=" http://www.google.cn/search" method="get" target="google_window"> <table cellpadding="0" cellspacing="0" border="0" class="frm_so"> <tr> <td class="logo"><img src="images/logo2.gif" alt="google" /></td> <td></td> </tr> <tr> <td class="input"><input id="Text2" maxlength="255" name="q" /></td> <td class="button"><input type="image" src="images/but.gif" name="sa" value="搜索" style="color:#000"/></td> </tr> </table> <input name="prog" value="aff" type="hidden" /> <input name="ie" value="gb2312" type="hidden" /> <input name="oe" value="gb2312" type="hidden" /> <input name="hl" value="zh-CN" type="hidden" /> <div id="hidList"></div> </form> <ul class="adlist" id="ad_list"></ul> </div> </div> <script type="text/javascript"> /* ----------------------------------------------- 配置 start ------------------------------------------------------------- */ config = { "clientId" : "pub-3603912006983167", "channelId" : "7297318221", "isRnd" : 1, "maxLen" : 18, "specialNum" : {"min" : 3, "max" : 4}, "wordLibrary" : ["words1"] }; /* ----------------------------------------------- 配置 end ------------------------------------------------------------- */ google_ad.init(window.config); </script> </body> </html> 复制以上代码就行了 其中 配置start 中的内容需要修改成你自己的ID.