hello someone showed me this code and they also gave me a code that would make a new menu appear where my main menu is but I forget that part and I haven't talked to the person for a long time. I also dont remember his email. Anyway what this code does is it lets me have my layout on my index.php page and for my content to appear all I have to do is just add the content without having to add my whole layout in the page again. But my problem is I dont know how I can have a new menu with more links appear on top of my main menu of links.
Code:
<?
$val = $_GET['bleach'];
$val .= ".php";
$dirty = array("..");
$clean = array("");
$val = str_replace($dirty, $clean, $val);
if (isset($_GET['bleach'])) {
if (file_exists($val)) {
include "$val";
}
else {
include "index.php";
}
}
else {
$number = "3";
include "bnews/show_news.php";
}
?>
so what I'm looking for to make it more clear is I want a new menu with links to appear over top of my main menu of links when I click on lets say final fantasy 7. So my example would look like this
Code:
------ New Table with links -----------
<div class=head><b>Information</b></div>
<div align="left" class=cont>
<li><a rel="nofollow" href="?bleach=characters">Characters</a>
<li><a rel="nofollow" href="?bleach=weapons">Weapons</a>
<li><a rel="nofollow" href="?bleach=materia">Materia</a>
<li><a rel="nofollow" href="?bleach=access">Accessories</a>
</div>
<br>
--------------Main Table with links---------------
<div class=head><b>Information</b></div>
<div align="left" class=cont>
<li><a rel="nofollow" href="?bleach=ff7">Final Fantasy 7</a>
<li><a rel="nofollow" href="?bleach=ff8">Final Fantasy 8</a>
<li><a rel="nofollow" href="?bleach=ff9">Final Fantasy 9</a>
<li><a rel="nofollow" href="?bleach=ff10">Final Fantasy 10</a>
<li><a rel="nofollow" href="?bleach=ff11">Final Fantasy 11</a>
<li><a rel="nofollow" href="?bleach=ff12">Final Fantasy 12</a>
</div>
<br>
Last edited by squalls_dreams; 02-25-2008 at 10:42 AM..
Reason: font is small
|