How to automatically change all menus?

  • Indulge
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Sep 09, 2004
  • Posts: 53
  • Loc: Germany
  • Status: Offline

Post October 5th, 2004, 2:22 am

What about css? Would only work on graphic menu buttons, as I think, but you would just have to replace the graphic in the css-file and there you go...
Or is that a stupid suggestion...you pros out there?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 5th, 2004, 2:22 am

  • ctompkins
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 29, 2004
  • Posts: 32
  • Status: Offline

Post October 5th, 2004, 7:24 am

Try this, it is an Iframe (javascript) which is not as icky as html frames.

Code: [ Select ]
<html>
<head><title>myTitle</title></head>
<body>

<iframe name="FRAME1" src="myMenuPage.htm" width="800" height="50" frameborder="0" scrolling="no"></iframe>
<br>

The rest of my page goes here

</body>
</html>
  1. <html>
  2. <head><title>myTitle</title></head>
  3. <body>
  4. <iframe name="FRAME1" src="myMenuPage.htm" width="800" height="50" frameborder="0" scrolling="no"></iframe>
  5. <br>
  6. The rest of my page goes here
  7. </body>
  8. </html>
  • Mr Smith
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 29, 2004
  • Posts: 150
  • Loc: Birmingham, England
  • Status: Offline

Post October 5th, 2004, 9:12 am

sonnyrizo wrote:
</table>
<table height="26">
<? include('menu.htm') ?>
</table>



you've missed out the ending ; after the end )

change it to

<?php include('menu.htm'); ?>

it could also be that your file is in the wrong place.....could you tell us what error message you are getting?
  • criserb
  • Student
  • Student
  • User avatar
  • Joined: Oct 05, 2004
  • Posts: 70
  • Loc: Romania
  • Status: Offline

Post October 5th, 2004, 10:13 am

hmm also you can use any editor you want and which knows to replace in multiple files. Like EditPlus - this is what I use, or Macromedia DW.

Take the menu that you want to change in all the page and put it in the 'find' field, after that, take the new menu and put it in the 'replace' field and click replace all.

But this is not a solution... the best solution is include method, (php or SSI) you can change the menu anytime you need without any headake

:)
  • 613flavah
  • battlestar
  • Web Master
  • User avatar
  • Joined: Sep 08, 2004
  • Posts: 3291
  • Loc: Hurricane...
  • Status: Offline

Post October 5th, 2004, 11:38 am

Before you start using PHP make sure your hosting company SUPPORTS php. If it doesn't support that it should support the MS version which is ASP. The last thing you wanna do is create a site in either ASP/PHP and find out that your hosting company doesn't support it.
"bless us and love us so we can dance and truly be free"
- Anonymous
  • ctompkins
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 29, 2004
  • Posts: 32
  • Status: Offline

Post October 5th, 2004, 11:41 am

What? Nobody likes my idea? :)

613flavah wrote:
Before you start using PHP make sure your hosting company SUPPORTS php. If it doesn't support that it should support the MS version which is ASP. The last thing you wanna do is create a site in either ASP/PHP and find out that your hosting company doesn't support it.
  • sonnyrizo
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 10, 2004
  • Posts: 159
  • Status: Offline

Post October 5th, 2004, 12:55 pm

Quote:
PostPosted: Tue Oct 05, 2004 10:41 am Post subject:
What? Nobody likes my idea?


Actually, your iframe tags are the only thing that worked for me. Everything that was suggested, in terms of PHP, didn't work. The iFrame thing did work, but I am afraid there will be problems in the future.

Quote:
you've missed out the ending ; after the end )

change it to

<?php include('menu.htm'); ?>


Did that. Didn't work either. I am not getting any error messages. It just doesn't show up.

Quote:
it could also be that your file is in the wrong place


That's not it. All files are in the same directory.
  • ctompkins
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 29, 2004
  • Posts: 32
  • Status: Offline

Post October 5th, 2004, 12:59 pm

What kinds of problems? The only valid argument I've heard against IFrames is that they are not supported in Netscape. But that's versions <= 4 so you're ok with everybody except those running windows 3.11 and below, sorry.


Quote:
Actually, your iframe tags are the only thing that worked for me. Everything that was suggested, in terms of PHP, didn't work. The iFrame thing did work, but I am afraid there will be problems in the future.
  • sonnyrizo
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 10, 2004
  • Posts: 159
  • Status: Offline

Post October 5th, 2004, 1:40 pm

Quote:
What kinds of problems?


I am afraid it will work like frames meaning that it will show up as frames, but work like it. What I hate about frames is that when you link to a website, you only link to the MAIN frame (or whichever frame you're in), not the whole page. That completely messes up things, because you have to hand out different URLs just for people to get to your website, or a link to the Index page.
  • ctompkins
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 29, 2004
  • Posts: 32
  • Status: Offline

Post October 6th, 2004, 6:37 am

The IFrame is closer to an "include" statement. The nice thing is you don't need an html page just for frame declarations like html frames. It's a lot neater.

sonnyrizo wrote:
Quote:
What kinds of problems?


I am afraid it will work like frames meaning that it will show up as frames, but work like it. What I hate about frames is that when you link to a website, you only link to the MAIN frame (or whichever frame you're in), not the whole page. That completely messes up things, because you have to hand out different URLs just for people to get to your website, or a link to the Index page.
  • dirkplug
  • Novice
  • Novice
  • User avatar
  • Joined: Oct 11, 2004
  • Posts: 17
  • Loc: The Netherlands
  • Status: Offline

Post October 11th, 2004, 5:49 am

Ok, using Frontpage this is easy to solve:

make one page with just the menu, menu.htm

then put this line in every page you want to display the menu.

<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->

Now you only have to maintain one html page for the menu, each time you change something in menu.htm the changes are also saved in the other pages.

REMINDER: if you change menu.htm, you still have do upload all pages with this specific line to your web site.

This line is only used by Frontpage...

Good Luck

Post Information

  • Total Posts in this topic: 26 posts
  • Users browsing this forum: No registered users and 65 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.