Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   Подшаманить html-код.... (http://forum.typo3.ru/showthread.php?t=2333)

srsvet 26.12.2006 00:54

Подшаманить html-код....
 
Может я не прав в том чего прошу, но тем не менее.
Я уже долгое время бьюсь, хочу заставить html-шаблон "приклеиться" к типо3, Может найдётся тот, кому сходу несложно подредактировать код моего шаблона, так что бы типо адекватно его воспринимала...
Код HTML:

<title>Base template, header, menu, content and footer.</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style type="text/css" id="internalStyle">
    /*<![CDATA[*/
    BODY (margin: 0 0 0 0; background-color: white; )
    /*]]>
*/
    </style>
    <link href="templates/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
        <table width="698" style="height:10px" border="0" cellspacing="0" cellpadding="0" align="center"><br>
       
        <!-- General picture: -->
      <tr>
            <td width="698" style="background-image: url(templates/images/fl.jpg); background-repeat: no-repeat; background-position:;height:361px"  valign="top">

                        <div style="margin-left:509px; margin-top:40px;margin-bottom:px">

                                <table width="160" style="height:38px"  border="0" cellspacing="0" cellpadding="0">
                                 
        <!-- Top menu: -->
    <tr>
                                        <td width="59" style="height:px" valign="top"><div align="left" class="_text" style="margin-top:0px; margin-left:0px"><img  alt=""src="templates/images/p-h.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:0px; margin-top:0px"><a href="#" class="links_text">About</a></div></td>
                                        <td width="56" style="height:px" valign="top"><div align="left" class="_text" style="margin-top:0px; margin-left:0px"><img  alt=""src="templates/images/p-log.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:0px; margin-top:0px"><a href="#" class="links_text">Map</a></div></td>
                                        <td width="45" style="height:px" valign="top"><div align="left" class="_text" style="margin-top:0px; margin-left:0px"><img  alt=""src="templates/images/p-lupa.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:0px; margin-top:0px"><a href="#" class="links_text">Find</a></div></td>
                                  </tr>
                                  </tr>
                                </table>
                        </div>
        <!-- Left dynamic menu: -->
                        <div style="margin-left:33px; margin-top:px;"><img alt="" src="templates/images/bus.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:49px"><a href="#"><img alt="" src="templates/images/l1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:2px"></a><a href="#"><img alt="" src="templates/images/l2.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:2px"></a><a href="#"><img alt="" src="templates/images/l3.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:2px"></a><a href="#"><img alt="" src="templates/images/l4.jpg" hspace="0" vspace="0" border="0"></a></div>
                        <div style="margin-left:52px; margin-top:5px;"><img alt="" src="templates/images/commer.jpg"></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text" ><strong>11111</strong></a></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text"><strong>22222</strong></a></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text"><strong>33333</strong></a></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text"><strong>44444</strong></a></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text"><strong>55555</strong></a></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text"><strong>66666</strong></a></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text"><strong>77777</strong></a></div>
                        <div align="left" style="margin-top:8px; margin-left:55px"><img  alt=""src="images/arrow1.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:4px"><a href="#" class="list_text"><strong>88888</strong></a></div>
</td>       
        </td>
          </tr>
          <tr>
                <td width="698" style="height:267px"  valign="top">
                        <table width="698" style="height:267px" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                                <td width="33" style="height:267px" valign="top"></td>
                                <td width="635" style="height:267px" valign="top">
                                        <table width="635" style="height:267px" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                                <td width="635" style="height:7px" valign="top"></td>
                                          </tr>
                                          <tr>
                                                <td width="635" style="height:100%" valign="top">
                                                        <table width="635" style="height:100%" border="0" cellspacing="0" cellpadding="0">
                                                          <tr>
                                                                <td class="main_text" width="208" style="height:100%" valign="top">
                                                                <p class="bodytext">
                                                                            <div style="margin-left:1px; margin-top:3px; margin-right:21px; margin-bottom:px">
                                                                               
                                                                                Контент слева, возможно новости
                                                                               
                                                                    </div>
                                                                </td></p>
                                                                <td class="main_text" width="427" style="background-image: url(templates/images/p-dr.jpg); background-repeat: repeat-y; background-position:;height:100%" valign="top">
                                                                        <table width="427" style="height:100%" border="0" cellspacing="0" cellpadding="0">
                                                                          <tr>
                                                                                <td class="main_text" width="427" style="height:100%" valign="top">
                                                                                        <div style="margin-left:8px; margin-top:4px; margin-right:px; margin-bottom:px">
                                                                                <h1>
                                                                                <strong class="header_text">Уважаемый Посетитель, добро пожаловать на наш сайт !</strong><br>
                                                                                </h1>
                                                                                <div align="left" class="_text" style="margin-left:1px; margin-top:5px; margin-right:px">
                                                                                <p class="bodytext"><div align="justify">Здесь основной контент. Здесь основной контент. Здесь основной контент. </div></p>
                                                                                </div>
                                                                                </div>
                                                                                </td>
                                                                          </tr>
                                                                        </table>       
                                                                </td>
                                                          </tr>
                                                        </table>
                                                </td>
                                          </tr>
                                          <tr>
                                                <td width="635" style="height:12px" valign="top"></td>
                                          </tr>
                                        </table>
                                </td>                               
                                <td width="30" style="height:267px" valign="top"></td>
                          </tr>
                        </table>
                </td>
          </tr>
          <tr>
                <td width="698" style="background-image: url(templates/images/b.jpg); background-repeat: no-repeat; background-position:;height:77px"  valign="top">
                        <table width="698" style="height:77px" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                                <td width="249" style="height:77px" valign="top">
                                        <div align="left" class="copyright_text" style="margin-left:40px; margin-top:4px;"> &copy;2006 MySite.RU & SRS WebSt</div>
                                </td>
                                <td width="449" style="height:77px" valign="top">
                                        <div align="left" class="copyright_text" style="margin-left:px; margin-top:4px;"> <a href="#" class="text">About</a> | <a href="#" class="text">News</a> | <a href="#" class="text">Mission</a> | <a href="#l" class="text">Forum</a> | <a href="#" class="text">Contacts</a></div>
                                </td>
                          </tr>
                        </table>
                </td>
          </tr>         
        </table>
</body>


Помоги другому и тогда помогут Тебе!
Сайт я задумал некоммерческий, потому денег не предлагаю, по крайней мере больших....

Tod 26.12.2006 04:50

строка 27 - лишний </tr> , если ты об этом)

filippoff 26.12.2006 15:23

а что значит "приклеиться"? :о)
и вообще - попробуйте templavoila, уберите стили из кода, и будет вам счастье

srsvet 28.12.2006 01:29

Цитата:

Сообщение от filippoff (Сообщение 8797)
а что значит "приклеиться"? :о)
и вообще - попробуйте templavoila, уберите стили из кода, и будет вам счастье

Ну "приклеиться" я имею ввиду что TV криво воспринимает этот шаблон.
Я так понимаю потому как он не совсем стандартно для TV сделан...
А вообще я конечно не совсем понимаю что конкретно надо убирать, потому прошу, мош кто подшаманит...

srsvet 28.12.2006 01:34

Цитата:

Сообщение от Tod (Сообщение 8791)
строка 27 - лишний </tr> , если ты об этом)

Я вооще вцелом, чудится мне что код кривой...
В браузере как статический шаблон он отображается нормально, а вот когда начинаешь скрещивать его с типо3 через TV? отображается всякая фигня: т.е. картинка вместо того что бы быть вверху отображается внизу какието элементы уплывают вмето своего места совсем в другую часть экрана... Мне кажется что беда с тегами.... Я этот шаблон перекроил из стандартного шаблона типа под себя, клеил в дримвивере, подогнал вроде всё, а как начал делать импорт, дело всей моей жизни не захотело импортится...

Tod 28.12.2006 03:05

Если в коде ошибка, то и через ТV будет отображаться всякая гадость, даже если просто так запускается... Я вон когда-то не закрыл <tr> - отрываешь файл все нормально, а в ТV блоки посьезжали...
Посему всегда когда такое вижу, понятно - в шаблоне ошибки!

marco 28.12.2006 12:05

PHP код:

<td class="main_text" width="208" style="height:100%" valign="top">
  <
class="bodytext">
    <
div style="margin-left:1px; margin-top:3px; margin-right:21px; margin-bottom:px">Контент слевавозможно новости</div>
  </
td>
</
p

Вложенность кривая....
TV очень не любит такого.

srsvet 02.01.2007 02:51

Ребят, а сколь может стоить сделать этот код читаемым под TV?


Часовой пояс GMT +4, время: 22:38.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot