Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Walidacja W3C, Czy ktoś może dopomoże w poprawieniu aby przechodziło walidację ?
remiq26
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 1.06.2005
Skąd: Jaworzno

Ostrzeżenie: (0%)
-----


Witam mam taki prosty skrypt w javascript oparty na div wszystko dział w nim ok ale mam problem z walidacją W3C czy kto może mi pomóc w tym aby to naprawić tak aby pomyślnie przechodził walidację ?
Siedzę już na tym prawie cały dzień ograniczyłem do 8 błędów i klapa.
  1. <meta http-equiv="Content-Language" content="pl">
  2. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
  3. <style type="text/css">
  4. <!--
  5.  
  6. #sz1D {
  7. DISPLAY: block; font-size:11px;font-family:Verdana,Tahoma,ArialCE,HelvaticaCE,Arial,Helvetica,sans-serif; cursor:hand
  8. }
  9. #sz2D {
  10. DISPLAY: none; font-size:11px;font-family:Verdana,Tahoma,ArialCE,HelvaticaCE,Arial,Helvetica,sans-serif; CURSOR: hand
  11. }
  12. #sz3D {
  13. DISPLAY: none; font-size:11px;font-family:Verdana,Tahoma,ArialCE,HelvaticaCE,Arial,Helvetica,sans-serif; CURSOR: hand
  14. }
  15. #sz4D {
  16. DISPLAY: none; font-size:11px;font-family:Verdana,Tahoma,ArialCE,HelvaticaCE,Arial,Helvetica,sans-serif; CURSOR: hand
  17. }
  18. #sz5D {
  19. DISPLAY: none; font-size:11px;font-family:Verdana,Tahoma,ArialCE,HelvaticaCE,Arial,Helvetica,sans-serif; CURSOR: hand
  20. }
  21. div { font-family: Tahoma; font-size: 10pt; CURSOR: hand
  22. }
  23. -->
  24.  
  25.  
  26.  
  27. <script language=JavaScript>
  28. var cF = "sz1";
  29. function showSea( nD ){
  30. if ( nD && nD.id ){
  31. var oF = document.getElementById( cF + "D" );
  32. var nF = document.getElementById( nD.id + "D" );
  33. if (oF && nF){
  34. cF = nD.id;
  35. oF.style.display = "none";
  36. nF.style.display = "block";
  37. }
  38. }
  39. }
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. <TABLE cellSpacing=0 cellPadding=0 border=0 width="500" align="left" >
  47. <TR>
  48. <TD align="left" vAlign=top bgcolor="#FFFFFF">
  49. <div align="left">
  50. <TABLE cellSpacing=0 cellPadding=0 border=0 >
  51. <TR>
  52. <TD height="22" colspan="2" align="center" valign="bottom" id=sz1>
  53. <div align="left">
  54. <table border="0" cellpadding="0" id="table1" cellspacing="0" width="500" height="23" bordercolor="#FFFFFF">
  55. <tr>
  56. <td align="center" width="100%" id=sz1 onclick=showSea(this) ><div style="width: 151px; height: 20px">
  57. 1</div></td>
  58. <td align="center" width="100%" id=sz2 onclick=showSea(this) ><div style="width: 151px; height: 20px">
  59. 2</div></td>
  60. <td align="center" width="100%" id=sz3 onclick=showSea(this) ><div style="width: 151px; height: 20px">
  61. 3</div></td>
  62. <td align="center" width="100%" id=sz4 onclick=showSea(this) ><div style="width: 151px; height: 20px">
  63. 4</div></td>
  64. <td align="center" width="100%" id=sz5 onclick=showSea(this)><div style="width: 151px; height: 20px">
  65. 5</div></td>
  66.  
  67. </tr>
  68. </table>
  69. </div>
  70. </TD>
  71. <TR>
  72. <TD width="155" align="center" valign="top" id=sz1 onclick=showSea(this)>
  73.  
  74. </TD>
  75. <TD align="center" valign="top" id=sz2 onclick=showSea(this)>
  76. </TD>
  77. </TABLE>
  78.  
  79. </div>
  80. <div align="center">
  81.  
  82. <TABLE id=sz1D cellSpacing=0 cellPadding=0 border=0 height="26" width="100%">
  83. <TR>
  84.  
  85. <TD width=500 height="50" valign="top">
  86. <div style="width: 500px; height: 50px; ">
  87.  
  88. 1</div>
  89. </TD>
  90. </TR>
  91. </TBODY></TABLE>
  92. </div>
  93. <TABLE id=sz2D cellSpacing=0 cellPadding=0 border=0 height="26" width="100%">
  94. <TR>
  95.  
  96. <TD width=500 height="50" valign="top">
  97. <div style="width: 500px; height: 50px; ">
  98.  
  99. 2</div>
  100. </TD>
  101. </TR>
  102. </TBODY></TABLE>
  103.  
  104. <TABLE id=sz3D cellSpacing=0 cellPadding=0 border=0 height="26" width="100%">
  105. <TR>
  106.  
  107. <TD width=500 height="50" valign="top">
  108. <div style="width: 500px; height: 50px; ">
  109.  
  110. 3</div>
  111. </TD>
  112. </TR>
  113. </TBODY></TABLE>
  114.  
  115. <TABLE id=sz4D cellSpacing=0 cellPadding=0 border=0 height="26" width="100%">
  116. <TR>
  117.  
  118. <TD width=500 height="50" valign="top">
  119. <div style="width: 500px; height: 50px; ">
  120.  
  121. 4</div>
  122. </TD>
  123. </TR>
  124. </TBODY></TABLE>
  125.  
  126. <TABLE id=sz5D cellSpacing=0 cellPadding=0 border=0 height="26" width="100%">
  127. <TR>
  128.  
  129. <TD width=500 height="50" valign="top">
  130. <div style="width: 500px; height: 50px; ">
  131. 5</div>
  132. </TD>
  133. </TR>
  134. </TBODY></TABLE>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 20:29