Witam, po zrobieniu menu, mam problem z przyciskami tzn, nie wiem co zrobić by po kliknięciu przycisku w menu i przejściu do innej stronny przycisk został na pozycji podświetlonej. Czytałem różne tematy i znalazłem:
http://forum.webhelp.pl/poczatkujacy-webmaster/css-i-aktywne-menu-t215883.html
dał by radę ten sposób, ale musiałbym wklejać menu do każdej strony, i jeżeli zaszła by potrzeba zmian w menu musiałbym każdą stronę edytować, dlatego menu mam w osobnym pliku.
moje pliki:
style: http://gildia-oriental.keed.pl/web/style.css
style nav: http://gildia-oriental.keed.pl/web/style_nav.css
było: wzór strony 7.html:
<?php include('headline.html'); ?>
<title>about us</title>
<style type="text/css">
body {
background-image: url("../background/o20.jpg"); <!-- 1280x1024 obrazek wymiary -->
background-repeat: no-repeat;
background-attachment: fixed;
}
</style>
</head>
<body>
<div id="container">
<div id="logo">
<?php include('logo.html'); ?>
</div>
<div id="nav">
<?php include('nav.html'); ?>
</div>
<div id="ad">
<?php include('ad.html'); ?>
</div>
<div id="content">
<center>
<table border="0" align="center" >
<tr>
<td align="Center" valign="top" ><img width="800" src="../other/o3c.png"><br> <!-- 927x193 obrazek wymiary -->
<table border="0" align="center">
<tr>
<td width="170" height="190" align="right" valign="bottom"><img src="../other/r0.gif"></td> <!-- 155x125 obrazek wymiary -->
<td align="center" valign="bottom"><img src="../other/r2.gif"></td> <!-- 379x330 obrazek wymiary -->
<td width="200" height="190" align="left" valign="middle" ><img src="../other/r1.gif"></td> <!-- 155x162 obrazek wymiary -->
</tr>
</table>
</tr>
</table>
</center>
</div>
<div id="footer">
<?php include('footer.html'); ?>
</div>
</div>
</body>
</html>
jest wzór strony 7.php:
<?php include('headline.php'); ?>
<title>about us</title>
</head>
<body class="background_o20">
<div id="container">
<div id="logo">
<?php include('logo.php'); ?>
</div>
<div id="nav">
<?php $webpage="7"; ?>
<?php include 'nav.php'; ?>
</div>
<div id="ad">
<?php include('ad.php'); ?>
</div>
<div id="content">
<table border="0" align="center" >
<tr>
<td align="Center" valign="top" ><img src="../../other/o3c_b.png"><br /> <!-- 780x162 obrazek wymiary -->
<table border="0" align="center">
<tr>
<td width="170" height="190" align="right" valign="bottom"><img src="../../other/r0.gif"></td> <!-- 155x125 obrazek wymiary -->
<td align="center" valign="bottom"><img src="../../other/r2.gif"></td> <!-- 379x330 obrazek wymiary -->
<td width="200" height="190" align="left" valign="middle" ><img src="../../other/r1.gif"></td> <!-- 155x162 obrazek wymiary -->
</tr>
</table>
</tr>
</table>
</div>
<div style="clear:both;"></div>
<div id="footer">
<?php include('footer.php'); ?>
</div>
</div>
</body>
</html>
headline: http://gildia-oriental.keed.pl/web/headline.php
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link href="../web/style.css" rel="stylesheet" type="text/css" />
<link href="../web/style_nav.css" rel="stylesheet" type="text/css" />
<link href="../../other/oriental.ico" rel="Shortcut icon"/>
<meta name="description" content="Strona gildii 'ORIENTAL'" />
<meta name="keywords" content="Strona, domowa, ORIENTAL, pl.gladiatus.gameforge.com" />
<meta name="author" content="Piotr1Wielki & Zawiszanka" />
Proszę o pomoc w rozwiązaniu tego problemu.