![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 113 Pomógł: 0 Dołączył: 24.10.2008 Skąd: Częstochowa Ostrzeżenie: (0%) ![]() ![]() |
Siema,
mam problem. Validator zwraca mi błąd do prawie każdego diva: Kod document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag. Kolejnym problemem jest JS, na IE wywala błąd składni. Przy tym rozwalone są divy. Scren z opery (Tak ma być): ![]() Screen z ie 7 (Tu źle): ![]() Prosił bym was, żebyście mi wskazali jak rozwiązać ten błąd w xhtml i js Kod: Kod {include file="file:header.tpl"}
{literal} <script type="text/javascript"> $(document).ready(function(){ $(".accordion h3:first").addClass("active"); $(".accordion p").hide(); $(".accordion h3").click(function(){ $(this).next("p").slideToggle("slow") .siblings("p:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).siblings("h3").removeClass("active"); $.get("messages_option.php",{id:{/literal}{$received[i].0}{literal}}) }); }); </script> {/literal} <div id="content"> <div id="container"> <ul> <li><a href="messages/#odebrane"><span>Odebrane</span></a></li> <li><a href="messages/#wyslane"><span>Wysłane</span></a></li> </ul> <div id="odebrane"> <div style="width: 480px;"> <div class="accordion"> {if $received neq ''} {section name=i loop=$received} <div class="msg" style="float: left; margin-top: 0px; margin-bottom: 0px;"> <h3 onclick="{literal}$.get('messages_option.php',{id:{/literal}{$received[i].0}{literal}}){/literal}"> <div style="width: 40px; height: 30px; float: left;"> {if $received[i].6 eq 0} <img alt="" src="template/images/email.png" /> {else} <img alt="" src="template/images/email_un.png" /> {/if} </div> <div style="width: 300px; height: 30px; float: left;"> <span style="font-size: 11px;">{$received[i].1}</span><br /> <span style="font-weight: normal;">{$received[i].3}</span> <span style="font-weight: normal;">{$received[i].5}</span> </div> <div style="width: 50px; height: 30px; float: left;"> <a href="/alert/delete_message_r/{$received[i].0}/" rel="facebox"><img alt="" src="template/images/delete.png" style="border: 0px;" /></a> </div> </h3> <p style="width: 350px; margin-top: 20px;">{$received[i].2}<br /><br /></p> </div> {/section} {else}Brak wiadomości.{/if} </div> </div> </div> <div id="wyslane"> <div class="accordion"> {literal} <script type="text/javascript"> $(document).ready(function(){ $(".accordion h3:first").addClass("active"); $(".accordion p").hide(); $(".accordion h3").click(function(){ $(this).next("p").slideToggle("slow") .siblings("p:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).siblings("h3").removeClass("active"); }); }); </script> {/literal} {if $sent neq ''} {section name=i loop=$sent} <div class="msg" style="float: left; margin-top: 0px; margin-bottom: 0px;"> <h3> <div style="width: 40px; height: 30px; float: left;"> {if $sent[i].6 eq 0} <img alt="" src="template/images/email.png" /> {else}<img alt="" src="template/images/email_un.png" />{/if} </div> <div style="width: 300px; height: 30px; float: left;"> <span style="font-size: 11px;">{$sent[i].1}</span><br /> <span style="font-weight: normal;">{$sent[i].4}</span> <span style="font-weight: normal;">{$sent[i].5}</span> </div> <div style="width: 50px; height: 30px; float: left;"> <a style="cursor: default;" href="konto/ucp/poczta/usun/sender/{$sent[i].0}.html"><img alt="Usuń" src="template/images/delete.png" style="border: 0px;" /></a> </div> </h3> <p style="width: 350px;">{$sent[i].2}<br /><br /></p> </div> {/section} {else}Brak wysłanych wiadomości.{/if} </div> </div> </div> </div> {include file="file:footer.tpl"} -------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 10:25 |