leeutalkin2me Posted April 10, 2006 Share Posted April 10, 2006 Im designing a Travel website and want to get the homepage completed and tidied before i move onto the other pages.I created a Menu using PHP and used the Include feature.How do I determine where the actual Menu will open/load. This is what the menu looks like on its own.[a href=\"http://www.troublefreetraveladvisor.com/testingmenu.php\" target=\"_blank\"]http://www.troublefreetraveladvisor.com/testingmenu.php[/a]I want it to open on this page, somewhere on the Left hand side of the page. the table is labelled - id=navigation[a href=\"http://www.troublefreetraveladvisor.com/try5.html\" target=\"_blank\"]http://www.troublefreetraveladvisor.com/try5.html[/a] I know the html of the menu itself is very poor, thats something I am trying to work out how to change, as im using dreamweaver, when i open up the testingmenu.php page, in design view i cannot change anything. even the actual menu file,only the Coding view is accessibleAny help to get me moving? Quote Link to comment Share on other sites More sharing options...
freakus_maximus Posted April 10, 2006 Share Posted April 10, 2006 If your table layout has a cell on the very left where you would like your navigation menu to be then just put your include inside the empty cell.[code]<? include ('navigation.php'); ?>[/code] Quote Link to comment Share on other sites More sharing options...
leeutalkin2me Posted April 10, 2006 Author Share Posted April 10, 2006 [!--quoteo(post=363388:date=Apr 10 2006, 07:41 PM:name=freakus_maximus)--][div class=\'quotetop\']QUOTE(freakus_maximus @ Apr 10 2006, 07:41 PM) [snapback]363388[/snapback][/div][div class=\'quotemain\'][!--quotec--]If your table layout has a cell on the very left where you would like your navigation menu to be then just put your include inside the empty cell.[code]<? include ('navigation.php'); ?>[/code][/quote]so in my try5.html page, there is a table cell <td width="149" class="pageName">Â </td>do i put this in there - <? include ('navigation.php'); ?>I dont have a file called navigation.php thats whats confused me. Quote Link to comment Share on other sites More sharing options...
freakus_maximus Posted April 10, 2006 Share Posted April 10, 2006 I do not know what you named your navigation or menu file that your calling. I was using "navigation.php" as an example. Take a look at this, should help:If your table is something like this: (this is what I do so I can be sure to place things where I want that are common across all pages).[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </head> <body> <TABLE id="Table1" style="WIDTH: 750px; HEIGHT: 584px" cellSpacing="1" cellPadding="1" width="750" border="1"> <TR> <TD colSpan="3"> <P align="center">This is where I put my logo or whatever I want on the top of each page.</P> </TD> </TR> <TR> <TD style="WIDTH: 60px; HEIGHT: 506px">put navigation include here</TD> <TD style="HEIGHT: 506px" width="400" colSpan="2">This is the body or where information for each specific page would be.</TD> </TR> <TR> <TD colSpan="3"> <P align="center">This is where I put my copyrights or whatever I want on the bottom of each page.</P> </TD> </TR> </TABLE> </body></html>[/code]You can replace the 'dummy text' with your actual includes like this:[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </head> <body> <TABLE id="Table1" style="WIDTH: 750px; HEIGHT: 584px" cellSpacing="1" cellPadding="1" width="750" border="1"> <TR> <TD colSpan="3"> <P align="center"><? include ('top.php'); ?> page.</P> </TD> </TR> <TR> <TD style="WIDTH: 60px; HEIGHT: 506px"><? include ('menu.php'); ?></TD> <TD style="HEIGHT: 506px" width="400" colSpan="2">This is the body or where information for each specific page would be.</TD> </TR> <TR> <TD colSpan="3"> <P align="center">T<? include ('bottom.php'); ?></P> </TD> </TR> </TABLE> </body></html>[/code]If your still having a problem post your code for us so we can get a little more specific with what you have. Quote Link to comment Share on other sites More sharing options...
leeutalkin2me Posted April 10, 2006 Author Share Posted April 10, 2006 I tried this but no luck. just adding the line about include menu. [code]<tr> <td width="149" height="881" valign="top" bgcolor="#E6F3FF"><table width="149" border="0" cellpadding="0" cellspacing="0" class="pageName" id="navigation"> <tr> <td width="149" class="pageName"><? include ('menu.php'); ?></td> </tr> <tr class="pageName"> <td width="149" class="pageName">Â </td> </tr> <tr> <td width="149" class="pageName">Â </td> </tr> <tr> <td width="149" class="pageName">Â </td> </tr> <tr> <td width="149" class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> <tr> <td class="pageName">Â </td> </tr> </table>[/code] Quote Link to comment Share on other sites More sharing options...
freakus_maximus Posted April 11, 2006 Share Posted April 11, 2006 [!--quoteo(post=363431:date=Apr 10 2006, 04:29 PM:name=leeutalkin2me)--][div class=\'quotetop\']QUOTE(leeutalkin2me @ Apr 10 2006, 04:29 PM) [snapback]363431[/snapback][/div][div class=\'quotemain\'][!--quotec--]I tried this but no luck. just adding the line about include menu. [code]<td width="149" class="pageName"><? include ('menu.php'); ?></td>[/code][/quote]Is 'menu.php' the name of your menu file? Is it at the same location as your index page?What happens when you run this, do you get get an error? Does anything display? Quote Link to comment Share on other sites More sharing options...
Yesideez Posted April 11, 2006 Share Posted April 11, 2006 Howdy, just been reading through and I know what you're trying to achieve. Have your menu called something like menu.php and be something like this:[code]<table cellspacing="0" cellpadding="0" border="0"><tr><td><a href="file1.php">Option 1</a></td></tr><tr><td><a href="file2.php">Option 2</a></td></tr><tr><td><a href="file3.php">Option 3</a></td></tr></table>[/code]Each file that you want to have the menu will have to be a PHP file and be something like this:[code]<body><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><?php include("menu.php"); ?></td><td valign="top">blah blah blah</td></tr></table>[/code]The "blah blah blah" bit would be the contents of each page. Basically this is making a table inside a table. The valign tags make sure the menu and each page appear at the top. If you ever get stuck, turn one or both of the borders on (set to 1) in the "table" tags to see where the boundaries are.Each file "file1.php", "file2.php", file3.php" and so-on would have the second piece of code in to add the menu its just the "blah blah blah" bit that would be different for each page. Quote Link to comment Share on other sites More sharing options...
leeutalkin2me Posted April 11, 2006 Author Share Posted April 11, 2006 yey it was a simple thing, i hadnt renamed one page .php. so did that and some tweaking and its at least opening in the right place and i made it match the current table size[a href=\"http://www.troublefreetraveladvisor.com/try5.php\" target=\"_blank\"]http://www.troublefreetraveladvisor.com/try5.php[/a]Viewing thru firefox the links etc is smallWhere do i need to code to be able to change the Font/Size etc of the Link?in the menu.inc , try5.php I deleted the size inthe .css file as it was making everything in a TD code change size.How do i change the size?As now I want to work on the Design of the Menu? Quote Link to comment Share on other sites More sharing options...
leeutalkin2me Posted April 13, 2006 Author Share Posted April 13, 2006 any ideas? Quote Link to comment Share on other sites More sharing options...
jcbarr Posted April 14, 2006 Share Posted April 14, 2006 Start with your HTML coding problems.[a href=\"http://validator.w3.org/check?uri=http%3A%2F%2Fwww.troublefreetraveladvisor.com%2Ftry5.php\" target=\"_blank\"]http://validator.w3.org/check?uri=http%3A%....com%2Ftry5.php[/a]This should probably be moved to the HTML help. The PHP side of things are finished, not its just learing HTML that is hanging you up. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.