Het PHP werkt maar het javascript niet zo te merken.....
hmmm ik d8 dat het daarstraks toen ik het javascript testte wel werkte....
*gaat wat anders verzinnen
<hr />andere oplossing:
[syntax="php"]<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Test index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="description" content="">
<meta http-equiv="keywords" content="Autocad">
<meta http-equiv="generator" content="mps htmlgate free">
<meta http-equiv="author" content="julien">
<?
if ($_GET["p"]=="mezelf")
{
$page="mezelf.html";
$menu="Diverse";
}
else if ($_GET["p"]=="test")
{
$page="test.html";
$menu="Diverse";
}
else if ($_GET["p"]=="pagina_2")
{
$page="pagina_2.htm";
$menu="Diverse";
}
else
{
$page="test.html";
$menu="geen";
}
?>
<script type="text/javascript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_findObj(n, d) { //v4.0
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 && document.getElementById) x=document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Layer1" style="position:absolute; left:91px; top:8px; width:563px; height:26px; z-index:1; visibility: visible"><a href="../index.html">startpagina</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','show','block','','hide','Lisp','','hide','Applicaties','','hide','contact','','hide','Diverse','','hide')">Cursus</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','show','Lisp','','hide','Applicaties','','hide','contact','','hide','Diverse','','hide')">blocks</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','show','Applicaties','','hide','contact','','hide','Diverse','','hide')">lisp</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','hide','Applicaties','','show','contact','','hide','Diverse','','hide')">Applicaties</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','hide','Applicaties','','hide','contact','','show','Diverse','','hide')">Contact</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','hide','Applicaties','','hide','contact','','hide','Diverse','','show')">Diverse</a></div>
<div id="Cursus" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Cursus") { echo"visible"; } else { echo"hidden"; } ?>">
<p>CURSUS<br>
Tips en trucks<br>
lessen<br>
links</p>
</div>
<div id="block" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Blocks") { echo"visible"; } else { echo"hidden"; } ?>">
<p>BLOCKS<br>
Wat zijn blocks?<br>
download<br>
links</p>
</div>
<div id="Lisp" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="lisp") { echo"visible"; } else { echo"hidden"; } ?>">
<p>LISP<br>
Wat is lisp<br>
download<br>
links</p>
</div>
<div id="Applicaties" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Applicatieslisp") { echo"visible"; } else { echo"hidden"; } ?>">
<p>APPLICATIES<br>
Wat zijn dat?<br>
download<br>
links</p>
</div>
<div id="contact" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Contact") { echo"visible"; } else { echo"hidden"; } ?>">
<p>CONTACT<br>
Hoe contacteren?<br>
Formulier<br>
Adverteer<br>
Breng een tip aan<br>
Gastenboek<br>
<a href="http://forum.cadsite.be">Forum</a><br>
</p>
</div>
<div id="Diverse" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Diverse") { echo"visible"; } else { echo"hidden"; } ?>">
<p>DIVERSE<br>
<a href="index.php?p=mezelf">linkje 2</a><br>
<a href="index.php?p=test">test</a><br>
Uw link suggestie<br>
Lengte omzetten<br>
Oppervlakte omzetten<br>
Hoe helpen<br>
<a href="index.php?p=biertje">Biertje?</a><br>
<a href="index.php?p=pagina_2">linkje 2</a><br>
</p>
</div>
<div id="Inhoud" style="position:absolute; left:110px; top:50px; width:600px; height:500px; z-index:2; visibility: visible">
<?
include('inhoud/'.$page);
?>
</div>
</body>
</html>[/syntax]