Ik heb het al eerder gevraagd...

Hoe kan je een aparte pagina weer automatisch in een frameset zetten?
En wat kreeg je toen voor antwoord?
Want ik snap niet wat je wil...
Het tegenovergestelde van:

if (parent.frames.length > 0)
{
parent.location.href = location.href;
}

<script language="javascript">
<!--
if (self.location.href == top.window.location.href)
{ top.window.location.href = "index.php?page=<?=paginafunctie()?>" }
//--></script>


Pagina functie bevat een code om te achterhalen welke pagina de huidige is. In je index.php zorg je dat je page weer kan weergeven als frame. Hoop dat het een beetje duidelijk is...
kan dit:
<SCRIPT LANGUAGE="JavaScript">
if (self.location.href == top.window.location.href)
{
top.window.location.href = "index.php?page=<? echo $_SERVER['PHP_SELF']; ?>"
}
//-->
</script>

Geheel met PHP function?
weet iemand dat hoe die "paginafunctie()" er uit moet komen te zien:S?

Reageren