At 17:20 -0500 on 04/04/2009, Wayne Wickson wrote about [css-d] CSS Menu Over Many Web Pages in a Site:
>I'm new to CSS, but a conceptual problem has occurred to me. If this is a >stupid question, please humour me. >Lets assume I am designing a web site of one hundred pages. I design a >horizontal dropdown menu which links to each of the one hundred pages. So >each page is available from each of the other pages. I need to add a new >page or several pages. Is there a way, using only CSS, to easily change the >menu on each of the one hundred pages on the site without actually using an >editor and modifying the one hundred lists one list at a time? Thanks for >any help I receive. If you are willing to require that your users are not paranoid enough to cripple their Browser's JavaScript support, you can do this by just generating the navigation menu with a JavaScript (you update the script with the new links and they get inserted as the page loads). This method will also allow the link to the current page to have its own CSS Definition so it will display differently to indicate that it is the link for the current page (this is done by assigning a different class if the page-id matches the href link - it can also cause that link to just have the link text without the A tag). If you use a design tool like BBEdit, GoLive, Dreamweaver, etc., it can insert the menu from a separate file that is inserted into each page. When you update that file, all the pages are automatically rewritten (and then just need to be re-uploaded to your site). -- Bob Rosenberg RockMUG Webmaster [email protected] www.RockMUG.org ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
