ich habe wieder mal ein Problem mit einem Script!
Ich hab es jetzt perfekt für Firefox geschrieben. (also Design)
Hier sind die Code:
common.php
PHP-Quellcode
- <?php
- function counter()
- {
- $ip = $_SERVER['REMOTE_ADDR'];
- $herkunft = $_SERVER['HTTP_REFERER'];
- $browser = $_SERVER['HTTP_USER_AGENT'];
- $time = time();
- $control = $db->query("SELECT * FROM `counter` WHERE ip = '$ip'");
- $num = $control->num_rows;
- if($num == 0)
- {
- $db->query("INSERT INTO counter (ip, herkunft, browser, time) VALUES('$ip', '".$db->real_escape_string($herkunft)."', '".$db->real_escape_string($browser)."', '$time')");
- }
- $abfrage = $db->query("SELECT * FROM `counter`");
- $besucher = $abfrage->num_rows;
- }
- function page_header()
- {
- $lang = $_GET['lang'];
- echo"
- <html>
- <head>
- <!-- Titel -->
- <title>Feuerwehr Diedersdorf</title>
- <!-- Stylesheets -->
- <link rel='stylesheet' href='css/main.css' type='text/css'>
- <link rel='shortcut icon' href='images/icon.ico'>
- </head>
- <body>
- <!-- Box beginnt -->
- <div id='box'>
- <!-- Headermenü Beginn -->
- <div id='header'>
- <!-- Headermenü links -->
- <div id='f_links'>
- <a href='geschichte.php' class='header'>Über uns </a>•
- <a href='http://forum.feuerwehr-diedersdorf.de/' class='header' target='_blank'>Forum</a> •
- <a href='impressum.php' class='header'>Impressum</a>
- </div>
- <!-- Headermenü rechts -->
- <div id='f_rechts'>
- <!a href='index.php?lang=en'><img src='images/design/en.jpg' width='22' height='16'></a>
- <!a href='index.php?lang=pl'><img src='images/design/pl.jpg' width='22' height='16'></a>
- </div>
- <!-- Headermenü Ende -->
- </div>
- <!-- Banner Beginn -->
- <div id='banner'>
- <img src='images/design/banner_jf.gif'>
- </div>
- <!-- Menü -->
- <div id='navi_top'>
- <a href='index.php' id='menu_top'>Home</a>
- <a href='aktuell.php' id='menu_top'>Aktuell</a>
- <a href='termine.php' id='menu_top'>Termine</a>
- <a href='einsatzabteilung.php' id='menu_top'>Einsatzabteilung</a>
- <a href='jugendfeuerwehr.php' id='menu_top'>Jugendfeuerwehr</a>
- <a href='foerderverein.php' id='menu_top'>Förderverein</a>
- <a href='fahrzeuge.php' id='menu_top'>Fahrzeuge</a>
- <a href='gallerie.php' id='menu_top'>Galerie</a>
- </div>
- <!-- Mainbereich Beginn -->
- <div id='main'>
- <div id='navi_left'><br>
- <a href='index.php' id='menu_left'>» Home</a>
- <a href='aktuell.php' id='menu_left'>» Aktuell</a>
- <a href='termine.php' id='menu_left'>» Termine</a>
- <a href='einsatzabteilung.php' id='menu_left'>» Einsatzabteilung</a>
- <a href='jugendfeuerwehr.php' id='menu_left'>» Jugendfeuerwehr</a>
- <a href='foerderverein.php' id='menu_left'>» Förderverein</a>
- <a href='fahrzeuge.php' id='menu_left'>» Fahrzeuge</a>
- <a href='gallerie.php' id='menu_left'>» Galerie</a>
- </div>
- <div id='main_text'>
- ";
- }
- function page_footer()
- {
- echo"
- <!-- Mainbereich Text Ende -->
- </div>
- <!-- Mainbereich Ende -->
- </div>
- <!-- Footer Beginn -->
- <div id='footer'>
- <!-- Footer Text -->
- <div id='footer_text'>
- Freiwillige Feuerwehr Diedersdorf • Dorfstraße 15i • 15831 Diedersdorf
- </div>
- <!-- Footer Ende -->
- </div>
- </body>
- </html>";
- }
- ?>
main.css
Quellcode
- body {
- background: #DFC783;
- }
- /* LINKS*/
- a:link { color:#ffffff; text-decoration:none; }
- a:hover { color: yellow; text-decoration:underline; }
- a:active { color: red; text-decoration:underline; }
- /*H3*/
- h3 {color: #ffffff;}
- /*Bilder*/
- img {border: 0px;}
- /*Kontakt- & Impressumleiste*/
- #header {
- width: 735px;
- height:20px;
- color: #ffffff;
- text-align: right;
- text-decoration: none;
- font-family: Verdana;
- font-size: 10px;
- margin-left: 15px;
- margin-right: 15px;
- float: center;
- }
- .header {
- color:#ffffff;
- text-decoration: none;
- font-family: Verdana;
- font-size: 10px;
- }
- #f_links { color: #ffffff;
- text-decoration: none;
- text-align:left;
- font-family: Verdana;
- font-size: 10px;
- float: left;
- }
- #f_rechts { color: #ffffff;
- text-decoration: none;
- text-align: right;
- font-family: Verdana;
- font-size: 10px;
- float: right;
- }
- /*Hauptdesign*/
- #box{ position: relative; width: 780px; margin: 10px auto; text-align: left;}
- /*Banner*/
- #banner {
- width: 780px;
- height: 180px;
- }
- /*Menü*/
- #navi_top {
- position: absolute; top: 170px; left: 146px;
- width: 780px;
- height: 27px;
- color: #ffffff;
- text-align:center;
- }
- #menu_top {
- display: block;
- width: auto;
- color:#f7f7f7;
- background-color: #303285;
- line-height: 30px;
- text-decoration:none ;
- font-size: 14px;
- font-family: arial, helvetica, tahoma ,verdana, sans-serif;
- padding-left: 6px; padding-right: 6px;padding-bottom: 0px; padding-top:0px;
- text-align:left;
- float: left;
- }
- #menu_top:hover {
- color:#ffffff;
- background: #2f2c2c;
- text-decoration:none ;
- font-size: 14px;
- font-family: arial, helvetica, tahoma ,verdana, sans-serif;
- padding-left: 6px; padding-right: 6px;padding-bottom: 0px; padding-top:0px;
- text-align:left;
- }
- #navi_left {
- width: 146px;
- height: 300px;
- color: #ffffff;
- background-color: #8f0000;
- line-height: 30px;
- text-align:left;
- float: left;
- }
- #menu_left {
- display: block;
- width: 133px;
- border-bottom: 1px solid #ffffff;
- color:#f7f7f7;
- background-color: #303285;
- line-height: 25px;
- text-decoration:none ;
- font-size: 14px;
- font-family: arial, helvetica, tahoma ,verdana, sans-serif;
- padding-left: 6px; padding-right: 6px;padding-bottom: 0px; padding-top:0px;
- text-align:left;
- }
- #menu_left:hover {
- color:#ffffff;
- background: #2f2c2c;
- text-decoration:none ;
- font-size: 14px;
- font-family: arial, helvetica, tahoma ,verdana, sans-serif;
- padding-left: 6px; padding-right: 6px;padding-bottom: 0px; padding-top:0px;
- text-align:left;
- }
- /*Inhaltteil*/
- #main {
- display: block;
- color: #ffffff;
- background-color: #ffffff;
- text-align:justify;
- width: 780px;
- height: auto;
- float: left;
- }
- #main_text {
- padding: 15px;
- line-height: 25px;
- float:left;
- }
- /*Footer*/
- #footer {
- margin-top: 5px;
- margin-bottom: 5px;
- }
- #footer_text {
- background: #8f0000;
- letter-spacing: 3px;
- color:#f7f7f7;
- text-decoration:none ;
- font-size: 11px;
- font-style: italic;
- font-family: helvetica, tahoma ,verdana, sans-serif;
- text-align:center;
- }
Ich hoffe ihr könnte helfen. Wie mache ich das Design Kompatible für IE & Firefox?
DANKE!
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von berliner93 ()