Board Logo

menu and include function
barabas - 9/23/2007 at 03:36 PM

Hello

I bought a Tigra menu for my website.
This one is actually builded with frames, but i want to transform it in php with a function like "include".

So, my question is: how to keep the menu and change the targeted pages dynamically without frames?
Someones tell me about "Ajax" but I have no idea how to integrate it with this menu.

Thanks in advance


barabas - 9/24/2007 at 11:11 PM

Je suis arrivA? A? un petit rA?sultat, pas encore trA?s satisfaisant, comme suit:
menu_items.js:
#
var MENU_ITEMS = [
['Menu', null, null,
['accueil', 'index.php?page=accueil.php'],
['news', 'index.php?page=news.php'],
]
];
#

index.php:
#
<?php
if($_GET[page]){
include($_GET['page']);
}
?>
#

est-ce correct?


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/