IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

Attribute "rel" exists, but can not be used for this element


Sujet :

HTML

  1. #1
    Membre éclairé
    Inscrit en
    Octobre 2008
    Messages
    329
    Détails du profil
    Informations forums :
    Inscription : Octobre 2008
    Messages : 329
    Par défaut Lightbox attribute "rel" exists, but can not be used for this element
    Bonjour,

    suite à mon précédent post http://www.developpez.net/forums/d81...zone-reactive/

    J'ai un souci de validation W3C avec ce message :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    Line 365, Column 5: Attribute "rel" exists, but can not be used
    for this element.
     
    rel="lightbox[chambre]" alt="Photo 1 chambre"/>
     
    You have used the attribute named above in your document,
    but the document type you are using does not support
    that attribute for this element. This error is often caused
    by incorrect use of the "Strict" document type with
    a document that uses frames (e.g. you must use
    the "Transitional" document type to get
    the "target" attribute), or by using vendor proprietary
    extensions such as "marginheight" (this is usually fixed
    by using CSS to achieve the desired effect instead).
     
    This error may also result if the element itself is not
    supported in the document type you are using, as
    an undefined element will have no supported
    attributes; in this case, see the element-undefined
    error message for further information.
     
    How to fix: check the spelling and case of the
    element and attribute, (Remember XHTML is all
    lower-case) and/or check that they are both
    allowed in the chosen document type, and/or
    use CSS instead of this attribute. If you received
    this error when using the <embed> element to
    incorporate flash media in a Web page, see the
    FAQ item on valid flash.

    Voici le code de la page :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
       1.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
       3. <head>
       4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       5. <link href="styles.css" media="all" rel="stylesheet" type="text/css" />
       6. <meta name="description" content="Site officiel de l’hôtel Ellington. Notre hôtel à Nice offre une situation idéale avec des prestations d’un établissement 4 étoiles. Relaxez-vous dans l’ambiance intime et chaleureuse de notre hôtel de luxe à Nice, l’hôtel Ellington."/>
       7. <meta name="keywords" content="Hôtel Ellington, Ellington hôtel, Ellington Nice, Hôtel Ellington Nice, Nice Hôtel Ellington, hôtel 4 étoiles Nice, le meilleur hôtel Nice, boutique hôtel Nice, hôtel confortable Nice, hôtel élégant Nice, hôtel 4 étoiles Nice, hôtel à Nice, Hôtel à Nice en France, hôtel Nice"/>
       8. <title>Hôtel Ellington Nice : Hôtel de luxe Nice – hôtel 4 étoiles Nice</title>
       9. <script language='javascript' type='text/javascript' src='fbparam.js'></script>
      10. <script language='javascript' type='text/javascript' src='fblib.js'></script>
      11. <script type="text/javascript" src="js/prototype.js"></script>
      12. <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
      13. <script type="text/javascript" src="js/lightbox.js"></script>
      14. <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
      15.
      16. <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
      17. <script type="text/javascript">
      18. <!--
      19. function MM_preloadImages() { //v3.0
      20. var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
      21. var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
      22. if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
      23. }
      24.
      25. function MM_findObj(n, d) { //v4.01
      26. var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
      27. d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      28. if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      29. for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      30. if(!x && d.getElementById) x=d.getElementById(n); return x;
      31. }
      32.
      33. function MM_nbGroup(event, grpName) { //v6.0
      34. var i,img,nbArr,args=MM_nbGroup.arguments;
      35. if (event == "init" && args.length > 2) {
      36. if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      37. img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      38. if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      39. nbArr[nbArr.length] = img;
      40. for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      41. if (!img.MM_up) img.MM_up = img.src;
      42. img.src = img.MM_dn = args[i+1];
      43. nbArr[nbArr.length] = img;
      44. } }
      45. } else if (event == "over") {
      46. document.MM_nbOver = nbArr = new Array();
      47. for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      48. if (!img.MM_up) img.MM_up = img.src;
      49. img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      50. nbArr[nbArr.length] = img;
      51. }
      52. } else if (event == "out" ) {
      53. for (i=0; i < document.MM_nbOver.length; i++) {
      54. img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      55. } else if (event == "down") {
      56. nbArr = document[grpName];
      57. if (nbArr)
      58. for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
      59. document[grpName] = nbArr = new Array();
      60. for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      61. if (!img.MM_up) img.MM_up = img.src;
      62. img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      63. nbArr[nbArr.length] = img;
      64. } }
      65. }
      66. function MM_swapImgRestore() { //v3.0
      67. var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
      68. }
      69. function MM_swapImage() { //v3.0
      70. var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
      71. if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
      72. }
      73. function MM_openBrWindow(theURL,winName,features) { //v2.0
      74. window.open(theURL,winName,features);
      75. }
      76. //-->
      77. </script>
      78. </head>
      79.
      80. <body onload="start();
      81. MM_preloadImages('images/nav_over_01.gif','images/nav_over_02.gif','images/nav_over_03.gif','images/nav_over_04.gif','images/nav_over_05.gif','images/nav_over_06.gif','images/nav_over_07.gif','images/nav_over_08.gif','images/nav_over_09.gif','images/nav_over_10.gif','gallery/lobbyover.jpg','gallery/patioover.jpg','gallery/extover.jpg','gallery/barover.jpg')">
      82. <table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
      83. <tr>
      84. <td width="141"><img src="images/bandeau1.gif" width="141" height="20" alt="hôtel Ellington" /></td>
      85. <td width="759" align="right"><a href="photos.eng.htm"><img src="images/eng.png" class="photosansbordure" width="28" height="20" alt="English" /></a></td>
      86. </tr>
      87. <tr>
      88. <td colspan="2" align="right"><img src="images/logo.gif" width="240" height="80" alt="Hôtel 4 étoiles Nice" /></td>
      89. </tr>
      90. <tr>
      91. <td colspan="2"><table border="0" cellpadding="0" cellspacing="0">
      92. <tr>
      93. <td><a href="index.htm" target="_top" onclick="MM_nbGroup('down','group1','accueil','images/nav_over_01.gif',1)" onmouseover="MM_nbGroup('over','accueil','images/nav_over_01.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_01.gif" alt="Accueil" name="accueil" border="0" id="accueil" /></a></td>
      94. <td><a href="chambres.htm" target="_top" onclick="MM_nbGroup('down','group1','chambres','images/nav_over_02.gif',1)" onmouseover="MM_nbGroup('over','chambres','images/nav_over_02.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_02.gif" alt="Chambres" name="chambres" border="0" id="chambres" /></a></td>
      95. <td><a href="services.htm" target="_top" onclick="MM_nbGroup('down','group1','services','images/nav_over_03.gif',1)" onmouseover="MM_nbGroup('over','services','images/nav_over_03.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_03.gif" alt="Services" name="services" border="0" id="services" /></a></td>
      96. <td><a href="bar.htm" target="_top" onclick="MM_nbGroup('down','group1','bar','images/nav_over_04.gif',1)" onmouseover="MM_nbGroup('over','bar','images/nav_over_04.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_04.gif" alt="Bar" name="bar" border="0" id="bar"/></a></td>
      97. <td><a href="business.htm" target="_top" onclick="MM_nbGroup('down','group1','business','images/nav_over_05.gif',1)" onmouseover="MM_nbGroup('over','business','images/nav_over_05.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_05.gif" alt="Business" name="business" border="0" id="business" /></a></td>
      98. <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','photos','images/nav_over_06.gif',1)" onmouseover="MM_nbGroup('over','photos','images/nav_over_06.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_over_06.gif" alt="Photos" name="photos" border="0" id="photos" /></a></td>
      99. <td><a href="offres.htm" target="_top" onclick="MM_nbGroup('down','group1','offres','images/nav_over_07.gif',1)" onmouseover="MM_nbGroup('over','offres','images/nav_over_07.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_07.gif" alt="Offres spéciales" name="offres" border="0" id="offres" /></a></td>
     100. <td><a href="destination.htm" target="_top" onclick="MM_nbGroup('down','group1','destination','images/nav_over_08.gif',1)" onmouseover="MM_nbGroup('over','destination','images/nav_over_08.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_08.gif" alt="Destination" name="destination" border="0" id="situation" /></a></td>
     101. <td><a href="acces.htm" target="_top" onclick="MM_nbGroup('down','group1','acces','images/nav_over_09.gif',1)" onmouseover="MM_nbGroup('over','acces','images/nav_over_09.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_09.gif" alt="Accès" name="acces" border="0" id="acces" /></a></td>
     102. <td><a href="contact.htm" target="_top" onclick="MM_nbGroup('down','group1','contact','images/nav_over_10.gif',1)" onmouseover="MM_nbGroup('over','contact','images/nav_over_10.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_10.gif" alt="Contact" name="contact" border="0" id="contact" /></a></td>
     103. </tr>
     104. </table></td>
     105. </tr>
     106. <tr>
     107. <td colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="229" align="top" id="FlashID">
     108. <param name="movie" value="images/photos.swf" />
     109. <param name="quality" value="high" />
     110. <param name="wmode" value="opaque" />
     111. <param name="swfversion" value="9.0.45.0" />
     112. <!-- Cette balise <param> invite les utilisateurs de Flash Player en version 6.0 r65 et ultérieure à télécharger la version la plus récente de Flash Player. Supprimez-la si vous ne voulez pas que cette invite soit visible. -->
     113. <param name="expressinstall" value="Scripts/expressInstall.swf" />
     114. <!-- La balise <object> suivante est destinée aux navigateurs autres qu'IE. Supprimez-la d'IE à l'aide d'IECC. -->
     115. <!--[if !IE]>-->
     116. <object data="images/photos.swf" type="application/x-shockwave-flash" width="900" height="229" align="top">
     117. <!--<![endif]-->
     118. <param name="quality" value="high" />
     119. <param name="wmode" value="opaque" />
     120. <param name="swfversion" value="9.0.45.0" />
     121. <param name="expressinstall" value="Scripts/expressInstall.swf" />
     122. <!-- Le navigateur affichera le contenu alternatif suivant pour les utilisateurs d'un lecteur Flash de version 6.0 ou de versions plus anciennes. -->
     123. <div>
     124. <h4>Le contenu de cette page nécessite une version plus récente d’Adobe Flash Player.</h4>
     125. <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtenir le lecteur Adobe Flash" width="112" height="33" /></a></p>
     126. </div>
     127. <!--[if !IE]>-->
     128. </object>
     129. <!--<![endif]-->
     130. </object></td>
     131. </tr>
     132. <tr>
     133. <td colspan="2" align="right"><img src="images/bandeau2.gif" width="727" height="20" alt="Bandeau" /></td>
     134. </tr>
     135. <tr>
     136. <td colspan="2" align="right"><form name="idForm" target="dispoprice" id="idForm" action="">
     137. <table width="727" border="0" cellspacing="0" cellpadding="0" class="Style3">
     138. <tr>
     139. <td width="38"><strong>Date&nbsp;&nbsp;</strong></td>
     140. <td width="69"><select name='frommonth'>
     141. <option value='1'>Jan</option>
     142. <option value='2'>Fév</option>
     143. <option value='3'>Mar</option>
     144. <option value='4'>Avr</option>
     145. <option value='5'>Mai</option>
     146. <option value='6'>Juin</option>
     147. <option value='7'>Juill</option>
     148. <option value='8'>Août</option>
     149. <option value='9'>Sept</option>
     150. <option value='10'>Oct</option>
     151. <option value='11'>Nov</option>
     152. <option value='12'>Déc</option>
     153. </select></td>
     154. <td width="57"><select name='fromday'>
     155. <option value='1'>1</option>
     156. <option value='2'>2</option>
     157. <option value='3'>3</option>
     158. <option value='4'>4</option>
     159. <option value='5'>5</option>
     160. <option value='6'>6</option>
     161. <option value='7'>7</option>
     162. <option value='8'>8</option>
     163. <option value='9'>9</option>
     164. <option value='10'>10</option>
     165. <option value='11'>11</option>
     166. <option value='12'>12</option>
     167. <option value='13'>13</option>
     168. <option value='14'>14</option>
     169. <option value='15'>15</option>
     170. <option value='16'>16</option>
     171. <option value='17'>17</option>
     172. <option value='18'>18</option>
     173. <option value='19'>19</option>
     174. <option value='20'>20</option>
     175. <option value='21'>21</option>
     176. <option value='22'>22</option>
     177. <option value='23'>23</option>
     178. <option value='24'>24</option>
     179. <option value='25'>25</option>
     180. <option value='26'>26</option>
     181. <option value='27'>27</option>
     182. <option value='28'>28</option>
     183. <option value='29'>29</option>
     184. <option value='30'>30</option>
     185. <option value='31'>31</option>
     186. </select></td>
     187. <td width="69"><select name='fromyear' onchange='update_departure();'>
     188. <option value="0"></option></select></td>
     189. <td width="41"><strong>Nuits</strong></td>
     190. <td width="52"><select
     191. name='nbdays'>
     192. <option value='1' selected="selected">1</option>
     193. <option value='2' >2</option>
     194. <option value='3' >3</option>
     195. <option value='4' >4</option>
     196. <option value='5' >5</option>
     197. <option value='6' >6</option>
     198. <option value='7' >7</option>
     199. <option value='8' >8</option>
     200. <option value='9' >9</option>
     201. <option value='10' >10</option>
     202. <option value='11' >11</option>
     203. <option value='12' >12</option>
     204. <option value='13' >13</option>
     205. <option value='14' >14</option>
     206. <option value='15' >15</option>
     207. <option value='16' >16</option>
     208. <option value='17' >17</option>
     209. <option value='18' >18</option>
     210. <option value='19' >19</option>
     211. <option value='20' >20</option>
     212. <option value='21' >21</option>
     213. <option value='22' >22</option>
     214. <option value='23' >23</option>
     215. <option value='24' >24</option>
     216. <option value='25' >25</option>
     217. <option value='26' >26</option>
     218. <option value='27' >27</option>
     219. <option value='28' >28</option>
     220. <option value='29' >29</option>
     221. <option value='30' >30</option>
     222. <option value='31' >31</option>
     223. </select></td>
     224. <td width="57"><strong>Adultes</strong></td>
     225. <td width="48"><select name='adulteresa'>
     226. <option value='1' selected="selected">1</option>
     227. <option value='2' >2</option>
     228. <option value='3' >3</option>
     229. <option value='4' >4</option>
     230. </select></td>
     231. <td width="57"><strong>Enfants</strong></td>
     232. <td width="45"><select name='enfantresa'>
     233. <option value='0' selected="selected">0</option>
     234. <option value='1' >1</option>
     235. <option value='2' >2</option>
     236. </select></td>
     237. <td width="65"><input name="submit" type="image" src="images/go.gif" alt="Go"
     238. value="check availability" onclick="hhotelDispoprice(this.form)" /></td>
     239. <td width="63" align="right"><a href="javascript:;"
     240. onclick='hhotelSearch(&quot;FRNCHTLEllington&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;,
     241. &quot;&quot;, &quot;&quot;, &quot;&amp;FSTBKNGTrackLink=&quot;);'><strong>Langues</strong></a></td>
     242. <td width="66" align="right"> <a href="javascript:;" onclick="hhotelcancel('FRNCHTLEllington','');">
     243. <strong>Annuler</strong></a></td>
     244. </tr>
     245. <tr>
     246. <td colspan="4"><input type='hidden' name='showPromotions' value='1' />
     247. <input type='hidden' name='langue' value='' />
     248. <input type='hidden' name='Clusternames' value='FRNCHTLEllington' />
     249. <input type='hidden' name='Hotelnames' value='FRNCHTLEllington' /></td>
     250. <td>&nbsp;</td>
     251. <td>&nbsp;</td>
     252. <td>&nbsp;</td>
     253. <td>&nbsp;</td>
     254. <td>&nbsp;</td>
     255. <td>&nbsp;</td>
     256. <td>&nbsp;</td>
     257. <td align="right">&nbsp;</td>
     258. <td align="right">&nbsp;</td>
     259. </tr>
     260. </table></form></td>
     261. </tr>
     262. <tr>
     263. <td colspan="2" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
     264. <tr>
     265. <td>&nbsp;</td>
     266. <td class="Style4">&nbsp;</td>
     267. <td class="Style4">&nbsp;</td>
     268. <td>&nbsp;</td>
     269. <td>&nbsp;</td>
     270. <td>&nbsp;</td>
     271. <td>&nbsp;</td>
     272. <td>&nbsp;</td>
     273. <td>&nbsp;</td>
     274. <td>&nbsp;</td>
     275. <td>&nbsp;</td>
     276. </tr>
     277. <tr>
     278. <td width="173" height="23">&nbsp;</td>
     279. <td valign="top" class="Style6">Galerie photos</td>
     280. <td class="Style4">&nbsp;</td>
     281. <td width="100">&nbsp;</td>
     282. <td width="30">&nbsp;</td>
     283. <td width="100">&nbsp;</td>
     284. <td width="30">&nbsp;</td>
     285. <td width="100">&nbsp;</td>
     286. <td width="30">&nbsp;</td>
     287. <td width="100">&nbsp;</td>
     288. <td width="107">&nbsp;</td>
     289. </tr>
     290. <tr>
     291. <td>&nbsp;</td>
     292. <td width="100"><img src="gallery/chambresover.jpg" width="100" height="120" alt="Chambres"/></td>
     293. <td width="30">&nbsp;</td>
     294. <td><a href="gallerie-bar.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Bar','','gallery/barover.jpg',1)"><img src="gallery/bar.jpg" alt="Bar" name="Bar" width="100" height="120" border="0" id="Bar" /></a></td>
     295. <td>&nbsp;</td>
     296. <td><a href="gallerie-lobby.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('lobby','','gallery/lobbyover.jpg',1)"><img src="gallery/lobby.jpg" name="lobby" width="100" height="120" border="0" id="lobby" alt="Lobby" /></a></td>
     297. <td>&nbsp;</td>
     298. <td><a href="gallerie-patio.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Patio','','gallery/patioover.jpg',1)"><img src="gallery/patio.jpg" name="Patio" width="100" height="120" border="0" id="Patio" alt="Patio" /></a></td>
     299. <td>&nbsp;</td>
     300. <td><a href="gallerie-ext.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Extérieurs','','gallery/extover.jpg',1)"><img src="gallery/ext.jpg" name="Extérieurs" width="100" height="120" border="0" id="Extérieurs" alt="Extérieurs" /></a></td>
     301. <td>&nbsp;</td>
     302. </tr>
     303. <tr>
     304. <td>&nbsp;</td>
     305. <td>&nbsp;</td>
     306. <td>&nbsp;</td>
     307. <td>&nbsp;</td>
     308. <td>&nbsp;</td>
     309. <td>&nbsp;</td>
     310. <td>&nbsp;</td>
     311. <td>&nbsp;</td>
     312. <td>&nbsp;</td>
     313. <td>&nbsp;</td>
     314. <td>&nbsp;</td>
     315. </tr>
     316. <tr>
     317. <td>&nbsp;</td>
     318. <td>&nbsp;</td>
     319. <td>&nbsp;</td>
     320. <td>&nbsp;</td>
     321. <td>&nbsp;</td>
     322. <td>&nbsp;</td>
     323. <td>&nbsp;</td>
     324. <td>&nbsp;</td>
     325. <td>&nbsp;</td>
     326. <td>&nbsp;</td>
     327. <td>&nbsp;</td>
     328. </tr>
     329. <tr>
     330. <td>&nbsp;</td>
     331. <td>&nbsp;</td>
     332. <td>&nbsp;</td>
     333. <td>&nbsp;</td>
     334. <td>&nbsp;</td>
     335. <td>&nbsp;</td>
     336. <td>&nbsp;</td>
     337. <td>&nbsp;</td>
     338. <td>&nbsp;</td>
     339. <td>&nbsp;</td>
     340. <td>&nbsp;</td>
     341. </tr>
     342. <tr>
     343. <td>&nbsp;</td>
     344. <td colspan="9"><img src="gallery/galchambres.jpg" width="620" height="408" border="0" usemap="#Map" alt=
     345. "Chambres" /></td>
     346. <td>&nbsp;</td>
     347. </tr>
     348. </table></td>
     349. </tr>
     350. <tr>
     351. <td height="20" colspan="2" class="Style4">&nbsp;</td>
     352. </tr>
     353. <tr>
     354. <td height="20" colspan="2" class="Style4">&nbsp;</td>
     355. </tr>
     356. <tr>
     357. <td height="20" colspan="2" align="center"><span class="Style4">© Hôtel Ellington | <a href="index.htm" >Accueil</a> | <a href="chambres.htm" >Chambres</a> | <a href="services.htm" >Services</a> | <a href="bar.htm" >Bar &amp; Lounge</a> | <a href="business.htm" >Business</a> | Photos | <a href="offres.htm" >Offres spéciales</a> <a href="destination.htm" >| Destination</a> | <a href="acces.htm" >Accès</a> | <a href="contact.htm" >Contact</a> | <a href="legals.htm" >Légales</a></span></td>
     358. </tr>
     359. <tr>
     360. <td height="100" colspan="2" align="center">&nbsp;</td>
     361. </tr>
     362. </table>
     363. <map name="Map" id="Map">
     364. <area shape="poly" coords="44,3,102,4,106,94,74,95,72,120,42,117" href="gallery/popchambre1.jpg"
     365. rel="lightbox[chambre]" alt="Photo 1 chambre"/>
     366. <area shape="poly" coords="164,2,224,2,224,94,194,95,194,117,162,118" href="gallery/popchambre2.jpg"
     367. rel="lightbox[chambre]" alt="Photo 2 chambre"/>
     368. <area shape="poly" coords="281,2,341,3,343,93,314,95,312,116,280,115" href="gallery/popchambre3.jpg"
     369. rel="lightbox[chambre]" alt="Photo 3 chambre"/>
     370. <area shape="poly" coords="398,3,460,3,461,94,430,94,430,118,398,118" href="gallery/popchambre4.jpg"
     371. rel="lightbox[chambre]" alt="Photo 4 chambre"/>
     372. <area shape="poly" coords="517,3,578,2,578,93,549,95,549,117,515,117" href="gallery/popchambre5.jpg"
     373. rel="lightbox[chambre]" alt="Photo 5 chambre"/>
     374. <area shape="poly" coords="45,143,107,142,106,236,76,236,74,264,43,263" href="gallery/popchambre6.jpg"
     375. rel="lightbox[chambre]" alt="Photo 6 chambre"/>
     376. <area shape="poly" coords="146,158,241,158,241,220,193,221,193,261,170,260,167,221,145,221"
     377. href="gallery/popchambre7.jpg" rel="lightbox[chambre]" alt="Photo 7 chambre"/>
     378. <area shape="poly" coords="265,157,359,157,359,221,311,220,310,261,288,261,288,221,264,221"
     379. href="gallery/popchambre8.jpg" rel="lightbox[chambre]" alt="Photo 8 chambre"/>
     380. <area shape="poly" coords="397,142,461,142,462,235,429,236,429,263,398,263"
     381. href="gallery/popchambre9.jpg" rel="lightbox[chambre]" alt="Photo 9 chambre"/>
     382. <area shape="poly" coords="519,143,583,142,584,235,548,237,548,262,513,262"
     383. href="gallery/popchambre10.jpg" rel="lightbox[chambre]" alt="Photo 10 chambre"/>
     384. <area shape="poly" coords="30,297,122,297,123,365,74,366,75,403,52,403,51,367,28,366"
     385. href="gallery/popchambre11.jpg" rel="lightbox[chambre]" alt="Photo 11 chambre"/>
     386. <area shape="rect" coords="78,97,107,122" href="gallery/chambre1.zip" title="Télécharger" alt="Télécharger" />
     387. <area shape="rect" coords="197,97,225,119" href="gallery/chambre2.zip" title="Télécharger" alt="Télécharger" />
     388. <area shape="rect" coords="316,96,345,119" href="gallery/chambre3.zip" title="Télécharger" alt="Télécharger" />
     389. <area shape="rect" coords="431,96,463,119" href="gallery/chambre4.zip" title="Télécharger" alt="Télécharger" />
     390. <area shape="rect" coords="551,95,578,119" href="gallery/chambre5.zip" title="Télécharger" alt="Télécharger" />
     391. <area shape="rect" coords="79,239,107,266" href="gallery/chambre6.zip" title="Télécharger" alt="Télécharger" />
     392. <area shape="rect" coords="195,232,228,264" href="gallery/chambre7.zip" title="Télécharger" alt="Télécharger" />
     393. <area shape="rect" coords="314,238,351,263" href="gallery/chambre8.zip" title="Télécharger" alt="Télécharger" />
     394. <area shape="rect" coords="431,237,464,266" href="gallery/chambre9.zip" title="Télécharger" alt="Télécharger" />
     395. <area shape="rect" coords="550,239,584,264" href="gallery/chambre10.zip" title="Télécharger" alt="Télécharger" />
     396. <area shape="rect" coords="77,377,112,404" href="gallery/chambre11.zip" title="Télécharger" alt="Télécharger" />
     397. </map>
     398. <script type="text/javascript">
     399. <!--
     400. swfobject.registerObject("FlashID");
     401. //-->
     402. </script>
     403. <script type='text/javascript' src='fbfulltrack.js'></script>
     404. </body>
     405. </html>
    Je ne sais pas comment corriger cette erreur...

    Merci de votre aide

  2. #2
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par défaut
    Salut,
    qu'est-ce que tu veux qu'on te donne comme réponse ?
    rel n'est pas un attribut autorisé pour une balise area, c'est comme ça.
    Ensuite demande-toi si le plus important est la validation par le W3C ou la lightbox et fais ton choix.
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  3. #3
    Membre éclairé
    Inscrit en
    Octobre 2008
    Messages
    329
    Détails du profil
    Informations forums :
    Inscription : Octobre 2008
    Messages : 329
    Par défaut Une réponse...
    Merci pour cette réponse...

    Je ne mets toutefois pas le post en "résolu", car je sais que l'on peut quelquefois contourner ce genre d'erreur.

    Donc, si quelqu'un a une astuce à proposer ce serait sympa...!

    Merci d'avance

  4. #4
    Membre Expert Avatar de nosferapti
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    1 157
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2009
    Messages : 1 157
    Par défaut
    Citation Envoyé par Bovino Voir le message
    Ensuite demande-toi si le plus important est la validation par le W3C ou la lightbox et fais ton choix.
    comme l'a dit un grand philosophe, "seule la vie est importante"

    j'ai mis en pièce jointe le fichier "lightbox.js" modifié qui permet de ne pas utiliser l'attribut "rel" mais "class" et d'avoir comme ça une page valide XHTML 1.0

    pour ceux qui veulent vérifier que je n'ai pas mis de pièges, j'ai pris le fichier de la version 2.04 de Lightbox et j'ai modifié les lignes 191, 216 et 222
    Fichiers attachés Fichiers attachés

  5. #5
    Membre éclairé
    Inscrit en
    Octobre 2008
    Messages
    329
    Détails du profil
    Informations forums :
    Inscription : Octobre 2008
    Messages : 329
    Par défaut Ca marche !
    Merci nosferapti !

    Ton astuce fonctionne parfaitement !

    Le site est maintenant valide W3C !

    Pour les super débutants je précise qu'il faut remplacer les instructions dans le fichier HTML : les
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    rel="lightbox[chambre]"
    deviennent :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    class="lightbox[chambre]"
    Je joins mon lightbox.js car je l'ai modifié : la lightbox fonctionne maintenant aussi sur les zones réactives ! (le fichier d'origine ne le permet pas)

    Bovino j'ai fait mon choix : la validation W3C ET la lightbox !
    Fichiers attachés Fichiers attachés

  6. #6
    Invité de passage
    Inscrit en
    Février 2010
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Février 2010
    Messages : 1
    Par défaut
    Merci pour l'info

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 1
    Dernier message: 25/04/2012, 22h03
  2. Réponses: 2
    Dernier message: 11/10/2011, 17h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo