Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

HTML managing static website with 100 or more pages, and no CMS

views
     
nyem
post Dec 17 2010, 06:04 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Jan 2007


Javascript-only solution might not work well across all browsers and search engines.

IMHO find-and-replace is the easiest solution for static contents. Much easier if your editor can do regular expression

Find all
CODE
< ! -- MENU START -->.*?< !-- MENU END -->

Replace with
CODE
< !-- MENU START -->
<div id=menu>
 <a href="">..</a>
 <a href="">..</a>
</div>
< !-- MENU END -->




 

Change to:
| Lo-Fi Version
0.0152sec    0.23    6 queries    GZIP Disabled
Time is now: 27th November 2025 - 07:33 PM