Banner richtig platzieren, php

Einklappen
Dieses Thema ist geschlossen.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Banner richtig platzieren, php

    Hallo,

    ich kenne mich leider nicht wirklich gut damit aus, deshalb hoffe ich auf eure Hilfe.

    Ich möchte 2 Banner in die Seite einfügen. Nur bei mir funktioniert es nicht, entweder sie sind völlig veschoben oder werden hinter der Seite geladen.

    es geht um http://www.nokya.de

    und so sollte die Seite mit den 2 Bannern aussehen:

    http://www.nokya-online.de/screen-nokya.jpg

    ö

    PHP-Code:
    <body style="padding:0Px; margin:0px; background-color:#000000 ">
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td style="width: 980px; background-color:#000000; height: 100%">        
            <div style="position: absolute; top: 0px; width: 980px; height: 220px; background-color:#000000">
            <?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl"'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?>
            </div>
                        <div style="position: absolute; top: 230px; width: 980px; height: 300px; background-color:#000000">
                <!--
                <div style="background-image:url(grafik/community_l.png); width: 162px; height: 128px; position:absolute; left: 18px; top: 0px; ">
                    &nbsp;
                </div>
                <div style="background-image:url(grafik/community_r.png); width: 56px; height: 128px; position:absolute; left: 180px; top: 0px; ">
                    &nbsp;
                </div>
                -->
                <?php if (! $this->_tpl_vars['forum']): ?>
                <table width="980px"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="160px">
                        <div style="position:absolute; left: 10px; top: 0px; width: 162px; height: 128px; background-image:url(grafik/community_l.jpg);">
                        <?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "community_login.tpl"'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?>
                        </div>
                        <div style="position:absolute; left: 172px; top: 0px; width: 56px; height: 128px; background-image:url(grafik/community_r.png); ">
                        &nbsp;
                        </div>
                        <div style="position:absolute; left: 10px; top: 138px; width: 166px; height: 34px; background-image:url(grafik/news_locations_t.png) ">
                        &nbsp;
                        </div>
                        <div style="position:absolute; left: 10px; top: 172px; width: 166px; height: 123px; background-image:url(grafik/news_locations.jpg) ">
                        <?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "news_locations.tpl"'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?>
                        </div>
                        <div style="position:absolute; left: 10px; top: 295px; width: 166px; height: 25px; background-image:url(grafik/news_pics_t.png) " align="left">
                                            <font size="1">
                        &nbsp;
    </font></div>
                        <div style="position:absolute; left: 10px; top: 320px; width: 166px; height: 128px; background-image:url(grafik/news_pics.jpg) " align="left">
                                            <font size="1"><?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "news_pics.tpl"'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?></font></div>                    
                    </td>
                    <td width="660">
                        <div class="main_t_l">
                        &nbsp;
                        </div>    
                        <div style="position:absolute; left: 261px; top: 0px; width: 458px; height: 139px; background-image:url(grafik/main_t_m.jpg) ">
                        &nbsp;
                        </div>
                        <div class="main_t_r">
                        &nbsp;
                        </div>
                        <!-- SHOW HIGHLIGHT -->
                        
                        <?php if ($this->_tpl_vars['events_high']): ?>
                        <div style="position:absolute; left: 260px; top: 10px; background-image:url(grafik/highlight_transparent.png); width: 444px; height: 50px; border: 2px solid #F7941D; padding: 5px; font-family:Arial, Helvetica, sans-serif; font-size:12px; ">
                                            <a href="index.php?section=events&amp;id=<?php echo $this->_tpl_vars['events_high']['id']; ?>
    ">
                            <strong><?php echo $this->_tpl_vars['events_high']['titel']; ?>
    </strong><br />
                            <?php echo $this->_tpl_vars['events_high']['beschreibung']; ?>

                            </a></div>
                                        <?php endif; ?><br>
                                        
                                        <div style="position:absolute; left: 194px; top: 139px; width: 571px; background-image:url(grafik/main_m.jpg); padding-left: 10px; padding-right: 10px;" align="center" >
                        <?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['inhalt']), 'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?>
                        </div>
                                    </td>
                    <td width="160px" valign="top">
                        <div style="background-image:url(grafik/forum_t.png); width: 220px; height: 33px; position:absolute; right: 10px; top: 0px;" align="left">
                                            <font size="1">&nbsp;</font></div>
                        <div style="background-image:url(grafik/forum_r.jpg); width: 162px; height: 97px; position:absolute; right: 10px; top: 33px;" align="left">
                                            <font size="1"><?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "forum_newtopics.tpl"'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?></font></div>
                        <div style="background-image:url(grafik/forum_l.png); width: 50px; height: 97px; position:absolute; right: 172px; top: 33px;" align="left">
                                            <font size="1">&nbsp;</font></div                                            
                        ><div style="background-image:url(grafik/events_kalender.png); width: 166px; height: 34px; position:absolute; left: 806px; top: 138px;" align="left">
                                            <font size="1">&nbsp;</font></div>
                        <div style="background-image:url(grafik/events_kalender_u.png); width: 166px; height: 114px; position:absolute; left: 806px; top: 172px;" align="left">
                                            <font size="1"><?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "event_kalender.tpl"'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?></font></div>
                        <div style="background-image:url(grafik/events_aktuell.png); width: 166px; height: 32px; position:absolute; left: 806px; top: 286px;" align="left">
                                            <font size="1">&nbsp;</font></div>
                                        <div style="background-image:url(grafik/events_aktuell_u.png); width: 166px; height: 127px; position:absolute; left: 806px; top: 318px;" align="left">
                                            <font size="1"><?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "event_uebersicht.tpl"'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?></font></div>
                                        <div style="background-image:url(grafik/events_aktuell_u.png); width: 166px; height: 127px; position:absolute; left: 806px; top: 318px;" align="left">
                                            <p><font size="1">
                                            </font></div>
                                    </td>    
                  </tr>
                            <tr height="76">
                                <td width="160px" height="76"><br>
                                        <br>
                                        <br>
                                    
                                            <br>
                                            <br>
                                            <br>
                                        <br>
                                    </td>
                                <td width="660" height="76"></td>
                                <td width="160px" height="76"><br>
                                    
                            </tr>
                                <tr>
                                    <td width="160px"><br>
                                </tr>
                            </table>
                            <?php else: ?>
                <?php $_smarty_tpl_vars $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['inhalt']), 'smarty_include_vars' => array()));
    $this->_tpl_vars $_smarty_tpl_vars;
    unset(
    $_smarty_tpl_vars);
     
    ?>
                <?php endif; ?>
            </div>
                    </td>
        <td>&nbsp;</td>
      </tr>
    </table>

    </body>
    </html>


    leider kann ich den quellcode nicht formatieren

  • #2
    Re: Banner richtig platzieren, php

    Ich glaube, zum Thema "ich kann nicht genug HTML, um meinen blöden Banner zu platzieren" hast du inzwischen mehr als genug Threads aufgemacht.

    Also beschäftige dich mit den Grundlagen von HTML, und soweit notwendig PHP - und verschone uns bitte davon, das Thema weiterhin im Abstand von ein paar Tagen immer wieder neu auf den Tisch zu bringen.

    *close*
    I don't believe in rebirth. Actually, I never did in my whole lives.

    Kommentar

    Lädt...
    X