5568 sujets

Sémantique web et HTML

Hello,

j'ai quasiment terminé la refonte de mon site et je m'attaque à la validation cependant les pubs de Google me pose problème :

J'ai une pub à droite de la page et une en bas et j'ai 2 x donc 33 erreurs +1 avertissement Smiley fache

Bref pas glop.

Quelqu'un a t'il une solution pour passer la validation avec un code foireux comme celui ci ?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><style>a:link,a:visited,a:hover,a:active{color:#660000;cursor:pointer;}body,table,div,ul,li{font-size:10px;margin:0px;padding:0px}body{background-color:transparent;font-family:arial,sans-serif;height:100%}#aus{height:600px;width:120px}#ads{left:1px;position:absolute;top:19px;width:118px}#ads ul{list-style:none;}#ads ul li{clear:both;float:left;height:145px;margin:0px 4px 0px 4px;overflow:hidden;width:110px}.ad{margin:0px 0px}.adt{font-size:13px;font-weight:bold;line-height:15px;}.adb{color:#000000;display:block;font-size:13px;line-height:16px;}.adu{color:#0000ff;font-size:10px;line-height:12px;overflow:hidden;white-space:nowrap}.adus{cursor:pointer;}.adc{height:145px;overflow:hidden;table-layout:fixed;width:100%}#att{left:1px;position:absolute;top:1px}#att ul{height:18px;list-style:none;width:92px}#att ul li{float:right}#abgf{background-color:#660000;height:18px;width:74px}#abgt{height:18px;position:relative;width:18px}#abgi{left:2px;position:absolute;top:2px}#aubg{background-color:#fdffca;border:1px solid #660000;height:598px;width:118px}#load{height:145px}#load table{height:100%;width:100%}#load td{color:#000000;font-size:13px;text-align:center;vertical-align:middle}#ads ul.auma{}#ads ul li.adma{height:145px;margin:0px 4px 0px 4px;width:110px}.adma .adc{height:145px}.adma .adt{font-size:13px;}.adma .adb{font-size:13px;}#smac{display:none;left:89px;list-style:none;overflow:hidden;position:absolute;top:3px;width:28px}#smac div{background-image:url(http://pagead2.googlesyndication.com/pagead/sma.png);height:13px;position:relative;width:13px}#smap{background-position:-13px -13px;float:left}#sman{background-position:0px -13px;float:right}</style><script>function ss(w,id) {window.status = w;a = document.getElementById(id);if (a) {bi = a.href.indexOf("&nm="); if (bi < 1) {a.href += "&nm=1";return true;}c = a.href.substring(0, bi+4); d = a.href.substring(bi+4, a.href.length);ei = d.indexOf("&");if (ei < 0) {f = d;r = '';} else {f = d.substring(0, ei);r = d.substring(ei, d.length); }var g = parseInt(f);  g++;a.href= c+g+r; }return true;}function st(a) {return true;}function cs(){window.status='';} function jcc(a) {pha=document.getElementById(a); nc=pha.href.indexOf('&jca='); if(nc>=1) return; jca=(6976)-(811)-(137); if (a=='aw0') {jca+=(1117);} else if (a=='aw1') {jca+=(1942);} else if (a=='aw2') {jca+=(-5128);} else if (a=='aw3') {jca+=(-3436);} else {jca=0;} phb=pha.href+'&jca='+jca; pha.href=phb;} function ha(a){  var pha=document.getElementById(a);var nhi=pha.href.indexOf("&nh=");if(nhi < 1) {pha.href+="&nh=1";} jcc(a); }function ca(a) {  var pha=document.getElementById(a);var nci=pha.href.indexOf("&nc=");if(nci < 1) {pha.href+="&nc=1";} jcc(a); top.location.href=document.getElementById(a).href;}function ga(o,e) {if (document.getElementById) {a=o.id.substring(1);p="";r="";g=e.target;if (g) {t=g.id;f=g.parentNode;if (f) {p=f.id;h=f.parentNode;if (h)r=h.id;}} else {h=e.srcElement;f=h.parentNode;if (f)p=f.id;t=h.id;}if (t==a||p==a||r==a)return true;var pha=document.getElementById(a);var nbi=pha.href.indexOf("&nb=");if(nbi < 1) {pha.href+="&nb=1";} jcc(a); top.location.href=document.getElementById(a).href;}}</script></head><body><div id=aus><div id=aubg></div><div id=ads><ul id=load style="display:none"><li style="width:100%"><table><tr><td>Loading...</td></tr></table></li></ul><ul id=ads0><li  id=taw0  onfocus="ss('','aw0')"  onmouseover="ss('','aw0')" ><div class=ad><table class=adc cellpadding=0 cellspacing=0 border=0><tr><td valign=middle><a class=adt href=/pagead/iclk?sa=l&ai=Bf1kWvOarSbbDMpn_-Aam4onKBIzCmBL8_uvQAsCNtwGwzAsQARgBINyahgQoBDgAUPKOiv39_____wFg-_n8gogKoAG5p7T_A7IBCTEyNy4wLjAuMboBCjEyMHg2MDBfYXPIAQHaATNodHRwOi8vMTI3LjAuMC4xL0FfZ2FyZGVyL2FkbWluaXN0cmF0aW9uX2NvbmZpZy5waHCAAgHIArqOnwmoAwHIAwfoA9oC6AO3AugD4AX1AwAAAASYBAA&num=1&adurl=http://manageengine.adventnet.com/products/device-expert/index.html%3FCampaignID%3D605&client=ca-pub-1018159795257146 id=aw0 onclick="ha('aw0')" onfocus="ss('','aw0')" onmousedown="st('aw0')" onmouseover="return ss('','aw0')" target=_top><span>Cisco Configuration tool</span></a><div class=adb>Free Configuration Management tool for Cisco Routers Switches Firewall </div><div class=adu><span class=adus id=uaw0 onclick=ga(this,event) onmousedown=st(this.id.substr(1))>deviceexpert.com/cisco-config</span></div></td></tr></table></div></li><li  id=taw1  onfocus="ss('','aw1')"  onmouseover="ss('','aw1')" ><div class=ad><table class=adc cellpadding=0 cellspacing=0 border=0><tr><td valign=middle><a class=adt href=/pagead/iclk?sa=l&ai=BqvaPvOarSbbDMpn_-Aam4onKBOKU02jq7InVDMCNtwGQoQ8QAhgCINyahgQoBDgAUMKZsdD-_____wFg-_n8gogKoAGsybD1A7IBCTEyNy4wLjAuMboBCjEyMHg2MDBfYXPIAQHaATNodHRwOi8vMTI3LjAuMC4xL0FfZ2FyZGVyL2FkbWluaXN0cmF0aW9uX2NvbmZpZy5waHCAAgHIAoqdpgeoAwHIAwfoA9oC6AO3AugD4AX1AwAAAASYBAA&num=2&adurl=http://www.koenig-solutions.com/training/ciscoe.asp&client=ca-pub-1018159795257146 id=aw1 onclick="ha('aw1')" onfocus="ss('','aw1')" onmousedown="st('aw1')" onmouseover="return ss('','aw1')" target=_top><span>Official Cisco Training</span></a><div class=adb>CCNA / CCDA / CCNP / CCSP CCVP, CCIP, CCDP, CCIE </div><div class=adu><span class=adus id=uaw1 onclick=ga(this,event) onmousedown=st(this.id.substr(1))>www.koenig-solutions.com</span></div></td></tr></table></div></li><li  id=taw2  onfocus="ss('','aw2')"  onmouseover="ss('','aw2')" ><div class=ad><table class=adc cellpadding=0 cellspacing=0 border=0><tr><td valign=middle><a class=adt href=/pagead/iclk?sa=l&ai=BOoxtvOarSbbDMpn_-Aam4onKBLqArYQBhoDm6gvAjbcB0I4qEAMYAyDcmoYEKAQ4AFCS6_7b_f____8BYPv5_IKICqABjI6q_AOyAQkxMjcuMC4wLjG6AQoxMjB4NjAwX2FzyAEB2gEzaHR0cDovLzEyNy4wLjAuMS9BX2dhcmRlci9hZG1pbmlzdHJhdGlvbl9jb25maWcucGhwgAIBqAMByAMH6APaAugDtwLoA-AF9QMAAAAEmAQA&num=3&adurl=http://www.howtonetwork.net/public/989.cfm&client=ca-pub-1018159795257146 id=aw2 onclick="ha('aw2')" onfocus="ss('','aw2')" onmousedown="st('aw2')" onmouseover="return ss('','aw2')" target=_top><span>Cisco CCNA Training Site</span></a><div class=adb>Free Video Tour Join from $9.97 Per Month Risk Free </div><div class=adu><span class=adus id=uaw2 onclick=ga(this,event) onmousedown=st(this.id.substr(1))>www.howtonetwork.net</span></div></td></tr></table></div></li><li  id=taw3  onfocus="ss('','aw3')"  onmouseover="ss('','aw3')" ><div class=ad><table class=adc cellpadding=0 cellspacing=0 border=0><tr><td valign=middle><a class=adt href=/pagead/iclk?sa=l&ai=BTHiMvOarSbbDMpn_-Aam4onKBJPUqyWT9dujDcCNtwHQ6AwQBBgEINyahgQoBDgAUICHv_z-_____wFg-_n8gogKoAGex7f_A7IBCTEyNy4wLjAuMboBCjEyMHg2MDBfYXPIAQHaATNodHRwOi8vMTI3LjAuMC4xL0FfZ2FyZGVyL2FkbWluaXN0cmF0aW9uX2NvbmZpZy5waHCAAgGoAwHIAwfoA9oC6AO3AugD4AX1AwAAAASYBAA&num=4&adurl=http://www.cbtnuggets.com/gocisco%3F_kk%3Dcisco%26_kt%3D10445509-9ffa-463c-ad61-3a13ca7b4dd9&client=ca-pub-1018159795257146 id=aw3 onclick="ha('aw3')" onfocus="ss('','aw3')" onmousedown="st('aw3')" onmouseover="return ss('','aw3')" target=_top><span>Cisco Training Videos</span></a><div class=adb>Pass CCNA, CCNP, CCDA, CCDP, CCSP &amp; CCIE Exams. Order Training Videos! </div><div class=adu><span class=adus id=uaw3 onclick=ga(this,event) onmousedown=st(this.id.substr(1))>www.CBTnuggets.com</span></div></td></tr></table></div></li></ul></div><div id=att><ul><li id=abgt></li><li id=abgf></li></ul></div><script>var sc=['abgt',18,18,'#660000',true,true];</script><script src="http://pagead2.googlesyndication.com/pagead/js/graphics.js"></script><div id=smac><div id=smap></div><div id=sman></div></div><div id=abgi><a href=http://www.google.com/url?ct=abg&q=http%3A//services.google.com/feedback/abg%3Furl%3Dhttp%3A//127.0.0.1/A_garder/administration_config.php%26hl%3Den%26client%3Dca-pub-1018159795257146%26adU%3Ddeviceexpert.com/cisco-config%26adT%3DCisco%2BConfiguration%2Btool%26adU%3Dwww.koenig-solutions.com%26adT%3DOfficial%2BCisco%2BTraining%26adU%3Dwww.howtonetwork.net%26adT%3DCisco%2BCCNA%2BTraining%2BSite%26adU%3Dwww.CBTnuggets.com%26adT%3DCisco%2BTraining%2BVideos%26done%3D1%26gl%3DFR target=_blank><img alt="Ads by Google" border=0 height=16 src=http://pagead2.googlesyndication.com/pagead/abglogo/abg-en-100c-ffffff.png  width=78></a></div></div><script>function smaRenderAds(page,ads){var ul=document.createElement("ul");ul.id="ads"+page;ul.setAttribute("class","auma");var h=[];for (var i=0;i<ads.length;++i){h.push(smaRenderSingleAd(ads[i]));}ul.innerHTML=h.join("");return ul;}function smaRenderSingleAd(ad){var h=[];var ss="ss('','aw"+ad.id+"')";h.push("<li class=adma");if(false){h.push(" dir=rtl");}h.push(" id=taw"+ad.id+" onfocus="+ss+" onmouseover="+ss+" >");h.push("<div class=ad>");if(1){h.push("<table border=0 cellpadding=0 cellspacing=0 class=adc>"+"<tbody><tr><td valign=middle>");}h.push("<a class=adt href="+ad.url+" id=aw"+ad.id+" onclick=ha('aw"+ad.id+"') onfocus="+ss+" onmousedown=st('aw"+ad.id+"') onmouseover="+ss+" target=_top>");h.push("<span>"+ad.title+"</span></a>");if(ad.hasCheckoutBadge){h.push("&nbsp;<img alt=\"\" border=0 height=10 src="+"http://pagead2.googlesyndication.com/pagead/badge/checkout_000000.gif "+" title=\"This site accepts Google Checkout\" "+"width=19>");}h.push("<div class=adb>"+ad.text+"</div>");h.push("<div class=adu><span class=adus id=uaw"+ad.id+" onclick=ga(this,event) onmousedown=st(this.id.substr(1))>"+ad.visibleUrl+"</span></div>");if(1){h.push("</td></tr></tbody></table>");}h.push("</div></li>");return h.join("");}function smaGetNextAdRequestUrl(p){u='http://pagead2.googlesyndication.com/pagead/ads?client\x3dca-pub-1018159795257146\x26dt\x3d1236002492739\x26lmt\x3d1236002492\x26output\x3dhtml\x26slotname\x3d1995545761\x26correlator\x3d1236002492739\x26dblk\x3d1\x26url\x3dhttp%3A%2F%2F127.0.0.1%2FA_garder%2Fadministration_config.php\x26ref\x3dhttp%3A%2F%2F127.0.0.1%2FA_garder%2Fadministration_config.php\x26frm\x3d0\x26ga_vid\x3d1744985005.1236002493\x26ga_sid\x3d1236002493\x26ga_hid\x3d88420371\x26flash\x3d10.0.12\x26u_h\x3d1024\x26u_w\x3d1280\x26u_ah\x3d996\x26u_aw\x3d1280\x26u_cd\x3d32\x26u_tz\x3d60\x26u_his\x3d44\x26u_java\x3dtrue\x26u_nplug\x3d16\x26u_nmime\x3d87\x26dtd\x3d33\x26w\x3d120\x26h\x3d600\x26xpc\x3dDwmdBsQxaj\x26p\x3dhttp%3A//127.0.0.1\x26color_bg\x3dFDFFCA\x26color_border\x3d660000\x26color_link\x3d660000\x26color_text\x3d000000\x26color_url\x3d0000FF\x26rl_rc\x3dtrue\x26format\x3d120x600_as\x26adsense_enabled\x3dtrue\x26ad_type\x3dtext_image\x26height\x3d600\x26width\x3d120'||document.location.href;qp=splitQueryParams(u.split('?')[1]);qp.ad_type='text';qp.format='sma-'+qp.format;qp.num_ads='4';qp.output='smajs';qp.targeting='content';qp.tok=p.requestToken;delete qp['prev_fmts'];delete qp['prev_slotnames'];delete qp['deb'];delete qp['dfp_req'];a1=(u.indexOf('/adsone?')>0);if(a1&&qp.slotname.match(/^slot\d+$/))delete qp.slotname;return 'http://pagead2.googlesyndication.com/pagead/ads?'+joinQueryParams(qp);}function splitQueryParams(qs){qp=new Object();qa=qs.split('&');for(i=0;i<qa.length;++i){pn=qa[i].split('=');if(pn.length<2)continue;qp[pn[0]]=pn[1];}return qp;}function joinQueryParams(qp){u=[];for(i in qp)u.push(i+'='+qp[i]);return u.join('&');}var sma={adsContainer:document.getElementById('ads'),nextAdIndex:4,linksContainer:document.getElementById('smac'),previousLink:document.getElementById('smap'),nextLink:document.getElementById('sman'),pages:[document.getElementById('ads0')],linkArrowColor:'#fdffca',linkActiveBgColor:'#660000',linkInactiveBgColor:'#c8a583',linkActiveCursor:'pointer',linkInactiveCursor:'',loading:document.getElementById('load'),requestToken:'NQfsr0Cz3FMKEwi2kZuMtISZAhWZP94KHSZxQkkQARgCIJfUDiDgs_IJIMTUjgMgirQLKAAwAUIKCAAQARgAIAEoAQ',renderAds:smaRenderAds,getNextAdRequestUrl:smaGetNextAdRequestUrl};</script><script src="http://pagead2.googlesyndication.com/pagead/sma6.js"></script></body></html>


Merci d'avance.

Sachant qu'à la base le code ressemble à ça et que l'ai mis dans un script javascript pour plus de facilité.
google_ad_client = "pub-xxxxx";
/* PubBas 468x60 */
google_ad_slot = "5470061834";
google_ad_width = 468;
google_ad_height = 60;


Ps : l'italique et les balise de fermeture ne sont pas de moi, j'imagine que le code Google fait tout foirer ici aussi Smiley lol [/i][/i][/i]
Modifié par Bilgor Le Rouge (02 Mar 2009 - 15:30)
Bonjour,

Le code HTML sur une seule ligne c'est illisible... Smiley ohwell

Sinon en général le problème avec google Ads (et beaucoups d'autres trucs du genre) c'est les caractères & non "encodés". Remplace les par "& amp;" (sans l'espace).
Voir l'edit ^^

Le code sur une seule ligne n'est pas de moi mais de Google Smiley decu

En gros ma pub est appelée comme ça :

echo"<script type='text/javascript' src='javascripts/pubbasgoogle.js'></script>
<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>";

Modifié par Bilgor Le Rouge (02 Mar 2009 - 15:32)