Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Tło w tabeli
grzehotnik
post 14.02.2009, 22:58:18
Post #1





Grupa: Zarejestrowani
Postów: 76
Pomógł: 0
Dołączył: 8.01.2009

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


Witam mam zadeklarowane 2 funkcje 1 wyświetka mi nagłówki wraz z początkiem tabeli,
a druga koniec tabeli i stopke.
Chciałbym wstawić w jednej tabeli tło(w funkcji 1) i później pomiędzy wywołaniem pierwszej funkcji
i drugiej wyświetlać stronę w tej tabeli (na tle).
Wszystko mi chodzi z wyjątkiem zdjęcia.

Funkcja 1 -nagłówki + tabela(kilka tabel):
Kod
<div style="position: absolute; left: 50%; top: 50%; width: 780px; height: 500px; margin-left: -390px; margin-top: -280px;">

<table align="center" width="780" cellpadding="0" cellspacing="0" border="0" bgcolor="#000000" >

    <tr>
    <td width="398" height="54" bgcolor="#000000"></td>
    <td width="382" height="54" bgcolor="#000000" style=" background-image: url(image/logo.gif); valign="top" align="right"></td>
    </tr>
    
    <tr>
    <td colspan="2" style=" height: 3; valign: top; background-image: url(image/linia_top.gif); background-repeat:no-repeat">
    </td>
    </tr>
    
    <tr>
    <td colspan="2" width="780" height="7">

        <table cellpadding="3" cellspacing="0" border="0" bgcolor="#000000">
    
            <tr>
<?php
    for($i=0; $i<sizeof($kategorie); $i++)
    {
        echo '<td><a href="$kategorie.php"><font color="white">'.$kategorie[$i].'</a></font><td>';
    }
?>
            </tr>
    
        </table>

    </td>
    </tr>
</table>     


<table background="image/glownezdjecie.jpg" style=" height: 459; width: 780; valign: top">   <!--TUTAJ POWINNO WSTAWIĆ TŁO-->

</div>
<?php
}


Jest to część główna funkcji

I funkcja 2:
Kod
function wyswietl_stopke()
{
?>
</table>
<div style="position: absolute; left:50%; bottom: 20%; width: 780px; height: 500px; margin-left: -400px; margin-bottom: -660px;">
<table>        

    <tr>
    <td colspan="2" width="780" height="4"></td>
    </tr>
    <tr>
    <td colspan="2" style=" height: 4; valign: top; background-image: url(image/linia_bottom.gif); background-repeat:no-repeat;"></td>
    </tr>
    <tr>
    <td colspan="2" width="780" height="0"></td>
    </tr>
    <tr>
    <td colspan="2" width="780" height="21">

        <table align="left" cellpadding="0" cellspacing="0" border="0">
    
    
            <tr>
            <td width="30"></td>
            <td width="33" height="20"><img src="image/dom2.gif" alt="" border="0"></td>
            <td width="26"></td>
            <td width="43" height="20"><a href="galeria.php" onMouseOut="RestoreImg()" onMouseOver="SwitchImg

('document.galeria','document.galeria','image/galeria2.gif')"><img src="image/galeria.gif" name="galeria" alt="" border="0"></a></td>
            <td width="25"></td>
            <td width="34" height="20"><a href="bio.htm" onMouseOut="RestoreImg()" onMouseOver="SwitchImg

('document.bio','document.bio','image/bio2.gif')"><img src="image/bio.gif" name="bio" alt="" border="0"></a></td>
            <td width="17"></td>
            <td width="27" height="20"><a href="blog.php" onMouseOut="RestoreImg()" onMouseOver="SwitchImg

('document.blog','document.blog','image/blog2.gif')"><img src="image/blog.gif" name="blog" alt="" border="0"></a></td>
            <td width="30"></td>
            <td width="69" height="20"><a href="ksgosci.php" onMouseOut="RestoreImg()" onMouseOver="SwitchImg

('document.ksgosci','document.ksgosci','image/ksgosci2.gif')"><img src="image/ksgosci.gif" name="ksgosci" alt="" border="0"></a></td>
            <td width="28"></td>
            <td width="34" height="20"><a href="linki.htm" onMouseOut="RestoreImg()" onMouseOver="SwitchImg

('document.linki','document.linki','image/linki2.gif')"><img src="image/linki.gif" name="linki" alt="" border="0"></a></td>
            <td colspan="4" width="200" height="20"></td>
            <td colspan="4" width="900" height="20"><font style="font-family:courier new; font-size: 10px;

color:#666666;">&copy; All rights reserved. </font></td>
            </tr>
        </table>


    </td>
    </tr>
</table>

</div>

</body>
</html>
<?php
}
?>


Proszę o pomoc
Go to the top of the page
+Quote Post

Posty w temacie
- grzehotnik   Tło w tabeli   14.02.2009, 22:58:18
- - tmgryf   Nie wiem czy to jet jakoś wyciągnięte i nie widzęc...   15.02.2009, 10:17:55


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

 



RSS Wersja Lo-Fi Aktualny czas: 28.06.2025 - 15:59