barabas
Junior Member
Posts: 2
Registered: 9/23/2007
Member Is Offline
|
| posted on 9/23/2007 at 03:36 PM |
|
|
menu and include function
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
Junior Member
Posts: 2
Registered: 9/23/2007
Member Is Offline
|
| posted on 9/24/2007 at 11:11 PM |
|
|
Je suis arrivé à un petit résultat, pas encore trè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?
|
|
|
|