Jump to content


Menu


3 replies to this topic

#1 Jamie

    Young Padawan

  • Members
  • Pip
  • 38 posts
  • Location:Niagara Falls, Canada

Posted 07 December 2004 - 07:44 PM

Ok how would I go about making a navigation bag liek the one at the top of this site? I have never tried so what do i need to do?

#2 PillowMint

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 16 December 2004 - 07:42 PM

Jamie, on Dec 8 2004, 12:44 AM, said:

Ok how would I go about making a navigation bag liek the one at the top of this site? I have never tried so what do i need to do?
Do you mean php navigation? If you do this it, you put this in your main content box.

<?php

switch ($id) {
default:
include ("news.php");
break; case "link1":
include ("dls.php");
break; case "link2":
include ("page2.php");
}
?>
of course you would change link1 to wat u want to name them and dls.php and page2.php to the names of the actual pages.

Linking would go like this:
<a href="?id=link1">Link1</a>
And of course again both link1's would be changed to what you actually named them.

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 18 December 2004 - 12:05 AM

PillowMint, on Dec 16 2004, 05:42 PM, said:

<?php

switch ($id) {
default:
include ("news.php");
break; case "link1":
include ("dls.php");
break; case "link2":
include ("page2.php");
}
?>
of course you would change link1 to wat u want to name them and dls.php and page2.php to the names of the actual pages.

Linking would go like this:
<a href="?id=link1">Link1</a>
And of course again both link1's would be changed to what you actually named them.
you could simply save a TON of code and do this

<?
if($id == "MAIN_PAGE"){
include('MAIN_PAGE.PHP");
}else{
include($id);
}
?>

keep the same link, but just change the capital letters in the code to what ever the first page you want to load is

but i think he's talking about the html and drop-down parts of the menu, if that's the case, then try www.pagetutor.com for the basics of html that you'll need to know

#4 xsionic

    Young Padawan

  • Members
  • Pip
  • 21 posts

Posted 03 January 2005 - 03:40 PM

Do u mean the "Resource Central", Interactice etc?

If so, I believe you can make that with DHTML

Thats all I know cuz Im newb in Javascript





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users