Robię taką stronkę właśnie, mam poprawnie działające górne menu, jednak chciałbym dodać jeszcze podkategorie do głównych działów, i mam właśnie z tym problem.
To jest kod mojej stronki:
Kod
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Untitled Document</title>
<style type="text/css">
body{
font-family:Arial, Helvetica, sans-serif;
color:#000033;
background:#360
}
.a1{
position:relative;
margin:auto;
width:701px;
border:1px solid #ccc;
}
.menu{
padding:5px;
margin:2px;
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
text-align:center;
}
.menu a{
padding:0px 20px;
color:#006699;
}
.tresc{
}
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('images/wcisniete_03.gif','images/wcisniete_04.gif','images/wcisniete_05.gif','images/wcisniete_06.jpg')">
<div class="a1">
<div><table id="Tabela_01" width="700" height="340" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6">
<img src="http://peb.pl/images/jkl_01.gif" width="700" height="274" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="http://peb.pl/images/jkl_02.gif" width="7" height="66" alt=""></td>
<td><a href="index.php?id=nowosci" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/wcisniete_03.gif',1)"><img src="http://peb.pl/images/jkl_03.gif" name="Image8" width="139" height="59" border="0" id="Image8" /></a></td>
<td><a href="index.php?id=galeria" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images/wcisniete_04.gif',1)"><img src="http://peb.pl/images/jkl_04.gif" name="Image9" width="167" height="59" border="0" id="Image9" /></a></td>
<td><a href="index.php?id=programy" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','images/wcisniete_05.gif',1)"><img src="http://peb.pl/images/jkl_05.gif" name="Image10" width="184" height="59" border="0" id="Image10" /></a></td>
<td><a href="index.php?id=ksiazki" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','images/wcisniete_06.jpg',1)"><img src="http://peb.pl/images/jkl_06.jpg" name="Image11" width="195" height="59" border="0" id="Image11" /></a></td>
<td rowspan="2">
<img src="http://peb.pl/images/jkl_07.gif" width="8" height="66" alt=""></td>
</tr>
<tr>
<td colspan="4">
<img src="http://peb.pl/images/jkl_08.gif" width="685" height="7" alt=""></td>
</tr>
</table>
</div>
<div class="tresc">
<!-- Tutaj jest wstawiana tre¶ć z plików zewnętrznych -->
<?php
if($_GET['id']=="nowosci"){
include("dane/nowosci.html");
}
if($_GET['id']=="galeria"){
include("dane/galeria.html");
}
if($_GET['id']=="programy"){
include("dane/programy.html");
}
if($_GET['id']=="ksiazki"){
include("dane/ksiazki.html");
}
?>
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Untitled Document</title>
<style type="text/css">
body{
font-family:Arial, Helvetica, sans-serif;
color:#000033;
background:#360
}
.a1{
position:relative;
margin:auto;
width:701px;
border:1px solid #ccc;
}
.menu{
padding:5px;
margin:2px;
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
text-align:center;
}
.menu a{
padding:0px 20px;
color:#006699;
}
.tresc{
}
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('images/wcisniete_03.gif','images/wcisniete_04.gif','images/wcisniete_05.gif','images/wcisniete_06.jpg')">
<div class="a1">
<div><table id="Tabela_01" width="700" height="340" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6">
<img src="http://peb.pl/images/jkl_01.gif" width="700" height="274" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="http://peb.pl/images/jkl_02.gif" width="7" height="66" alt=""></td>
<td><a href="index.php?id=nowosci" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/wcisniete_03.gif',1)"><img src="http://peb.pl/images/jkl_03.gif" name="Image8" width="139" height="59" border="0" id="Image8" /></a></td>
<td><a href="index.php?id=galeria" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images/wcisniete_04.gif',1)"><img src="http://peb.pl/images/jkl_04.gif" name="Image9" width="167" height="59" border="0" id="Image9" /></a></td>
<td><a href="index.php?id=programy" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','images/wcisniete_05.gif',1)"><img src="http://peb.pl/images/jkl_05.gif" name="Image10" width="184" height="59" border="0" id="Image10" /></a></td>
<td><a href="index.php?id=ksiazki" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','images/wcisniete_06.jpg',1)"><img src="http://peb.pl/images/jkl_06.jpg" name="Image11" width="195" height="59" border="0" id="Image11" /></a></td>
<td rowspan="2">
<img src="http://peb.pl/images/jkl_07.gif" width="8" height="66" alt=""></td>
</tr>
<tr>
<td colspan="4">
<img src="http://peb.pl/images/jkl_08.gif" width="685" height="7" alt=""></td>
</tr>
</table>
</div>
<div class="tresc">
<!-- Tutaj jest wstawiana tre¶ć z plików zewnętrznych -->
<?php
if($_GET['id']=="nowosci"){
include("dane/nowosci.html");
}
if($_GET['id']=="galeria"){
include("dane/galeria.html");
}
if($_GET['id']=="programy"){
include("dane/programy.html");
}
if($_GET['id']=="ksiazki"){
include("dane/ksiazki.html");
}
?>
</div>
</div>
</body>
</html>
Jednak tu wszystko działa, tylko jak pod spodem się wyświetlają stronki html , to chciałbym, aby w tych stronkach pojawiało się po lewo menu, z którego mozna bedzie wybierac kategorie i tresci wyswietlalyby sie w srodku, i jeszcze po lewo chcialbym taki pasek jak od prawego menu tylko np z jakimis tam reklamami czy shoutboxem jakas tam glupote dla urozmaicenia, ale na razie skupmy sie na tym menu po lewo i treścią w środku.
Tu moze umieszcze zrobiony na szybko szkic, aby zobrazowac o co mi chodzi dokladnie:

Oczywiscie nie prosze nikogo o zrobienie gotowej strony, tylko o pomoc jakies wskazowki, bo nie moge sobie dac z tym rady sam .
Moze ma ktos jakis ciekawy skrypt?
link do strony na ktorej na biezaco testuje dzialanie: http://www.specjalizacjasieci.yoyo.pl/
W kategorii "Galeria" w menu głównym właśnie umiescilem tez taki schemacik jak chce zeby to wygladalo. Wlasnie menu po lewo i tresc w srodku.
Oczywiście chce, aby to podmenu dzialalo na tej samej zasadzie co główne menu.
Prosze o pomoc=*
Pozdrawiam