how do you reference to a external .html file to place it into multiple pages?
just the same as .css files?
6 3220 Niheel 2,456
Recognized Expert Moderator Top Contributor
You can only reference external .html files by using iframes. - <IFRAME SRC="recipe.html" TITLE="The Famous Recipe">
-
-
</IFRAME>
@kub365
that didn't work,
what i am trying to place in an external .html file is this code... -
<!-- THE START OF THE BODY SECTION FOR NAVIGATION BAR CODE -->
-
-
<div class="chromestyle" id="chromemenu">
-
<ul>
-
<li><a href="index.html"><font size="3">Home</font></a></li>
-
<li><a href="completed_kitchens.html" rel="dropmenu1"><font size="3">Photo Gallery</font></a></li>
-
<li><a href="3d_photos.html"><font size="3">3D Picture Gallery</font></a></li>
-
<li><a href="links.html" rel="dropmenu2"><font size="3">Links</font></a></li>
-
<li><a href="contact_me.html"><font size="3">Contact Me</font></a></li>
-
</ul>
-
</div>
-
-
<!--1st drop down menu -->
-
<div id="dropmenu1" class="dropmenudiv">
-
<a href="kitchen_blacksmiths.html">Blacksmiths</a>
-
<a href="kitchen_dudley.html">Dudley</a>
-
<a href="kitchen_kahibah.html">Kahibah</a>
-
<a href="kitchen_merewether.html">Merewether</a>
-
<a href="kitchen_toronto.html">Toronto</a>
-
<a href="kitchen_willoughby.html">Willoughby</a>
-
</div>
-
-
-
<!--2nd drop down menu -->
-
<div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
-
<a href="http://www.edstein.com.au">Edstein</a>
-
<a href="http://www.wk.com.au">Quantum Quartz</a>
-
<a href="http://www.integralglass.com.au">Integral Glass</a>
-
<a href="http://www.lincolnsentry.com.au">Lincoln Sentry</a>
-
<a href="http://www.nover.com.au">Nover</a>
-
<a href="http://www.winningappliances.com.au">Winning Appliances</a>
-
<a href="http://www.polytec.com.au">Polytec</a>
-
<a href="http://www.form-tek.com.au">Form-Tek</a>
-
<a href="http://www.formica.com.au">Formica</a>
-
<a href="http://www.blum.com.au">Blum</a>
-
</div>
-
-
-
-
-
<script type="text/javascript">
-
-
cssdropdown.startchrome("chromemenu")
-
-
</script>
-
-
<!-- THE END OF THE BODY SECTION FOR THE TOP NAVIGATION BAR CODE -->
-
-
is it possible to do that the same as you would for a css layout?
sorry.
i just haven't been able to find out how.
thanks in advance
Niheel 2,456
Recognized Expert Moderator Top Contributor
Nope you can't, you'd have to use a serverside language like PHP.
Banfa 9,065
Recognized Expert Moderator Expert
Or if they are enabled you could use a server side include, but I have heard that php is quicker.
Ya if you have it php works wonderfully. - <?php include("filename.html"); ?>
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: SA Dev |
last post by:
Hi,
I just finished writing something to make a help file for a Pocket PC
device. The Pocket PC device allows not really showing the .HTM file as a
long single file, but instead uses a tag to suppress the file to only
display one topic at a time. It then uses bookmarks to jump around the
file. I realize that this could be done with multiple HTML files, but I was
hoping there was some way to do it in a single file somehow. Does anyone...
|
by: guitarromantic |
last post by:
Hey everyone.
Following advice found online, I figured out a basic way of splitting a
long article into several pages, by exploding out from a
<!--pagebreak--> code in my $content field.
http://www.scenepointblank.com/matt/dev/features/index.php?id=1&page=1
Sample above. The next/previous links were built with simple values:
|
by: Neo Geshel |
last post by:
I am seeking a method to load one JS file directly into another,
*without* having to dynamically write <scripttags.
Is there any method whereby I can call only one external JS file using a
single <scripttag, but have that external JS file insert into ITSELF
the contents of five others?
Something like:
/*start external.js*/
|
by: newlearner |
last post by:
hi,
Im new into Ajax and Javascript, I have a doubt...
I have a External javascript. and a couple of html files and I load These through ajax request and response.
The html pages contain a couple of image tag a check box and a input tag in order
on click i take the id of the check box ........ This works when i navigate through the page. but When i take the value of the corresponding checkbox ...... This dosent work when i navigate...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |