HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How to load multiple html pages in .shtml ?
Post new topic   Reply to topic    HTML Help Forum -> SSI
View previous topic :: View next topic  
Author Message
srikrish_24



Joined: 25 Feb 2010
Posts: 1

PostPosted: Thu Feb 25, 2010 3:06 am     How to load multiple html pages in .shtml ? Reply with quote

Using .shtml, how can i load the multiple html pages.

I have four links in my webiste,intially the homepage contents get loaded in the index.shtml.

How to add the aboutus content in the content area.

I have four content files

home.html
about.html
service.html
contact.html


I dont want to copy the entire code and change the contents for each page.i just want to change the particular content depends upon the page.

My aim is,while clicking the menu item,i want to include the particular html file,is there anyway to add the particular file?

Is there any way?????

for ex:Given below is the source of my index.shtml
<html>
<head>
<title>sample demo</title>
</head>
<body>
<!--include file="navigation.html-->
<!--include file="home.html-->
<!--include file="footer.html-->
</body>
</html>
sticks464



Joined: 31 Dec 2006
Posts: 2625

PostPosted: Thu Feb 25, 2010 4:45 am     Reply with quote

You need four more files
about.shtml
service.shtml
contact.shtml

On each of these files, use the same structure as the index page

about.shtml
Code:
<html>
<head>
<title>sample demo</title>
</head>
<body>
<!--include file="navigation.html-->
<!--include file="about.html-->
<!--include file="footer.html-->
</body>
</html>


services.shtml
Code:
<html>
<head>
<title>sample demo</title>
</head>
<body>
<!--include file="navigation.html-->
<!--include file="services.html-->
<!--include file="footer.html-->
</body>
</html>


contact.shtml
Code:
<html>
<head>
<title>sample demo</title>
</head>
<body>
<!--include file="navigation.html-->
<!--include file="contact.html-->
<!--include file="footer.html-->
</body>
</html>


The navigation.html links should be to the shtml pages.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> SSI All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial