473,657 Members | 2,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do you reference to a external .html file to place it into multiple pages?

MusoFreak200
96 New Member
how do you reference to a external .html file to place it into multiple pages?

just the same as .css files?
May 26 '10 #1
6 3220
Niheel
2,456 Recognized Expert Moderator Top Contributor
You can only reference external .html files by using iframes.

Expand|Select|Wrap|Line Numbers
  1. <IFRAME SRC="recipe.html" TITLE="The Famous Recipe">
  2.  
  3. </IFRAME>
May 26 '10 #2
MusoFreak200
96 New Member
@kub365
that didn't work,

what i am trying to place in an external .html file is this code...

Expand|Select|Wrap|Line Numbers
  1. <!-- THE START OF THE BODY SECTION FOR NAVIGATION BAR CODE -->
  2.  
  3. <div class="chromestyle" id="chromemenu">
  4. <ul>
  5. <li><a href="index.html"><font size="3">Home</font></a></li>
  6. <li><a href="completed_kitchens.html" rel="dropmenu1"><font size="3">Photo Gallery</font></a></li>
  7. <li><a href="3d_photos.html"><font size="3">3D Picture Gallery</font></a></li>
  8. <li><a href="links.html" rel="dropmenu2"><font size="3">Links</font></a></li>
  9. <li><a href="contact_me.html"><font size="3">Contact Me</font></a></li>    
  10. </ul>
  11. </div>
  12.  
  13. <!--1st drop down menu -->                                                   
  14. <div id="dropmenu1" class="dropmenudiv">
  15. <a href="kitchen_blacksmiths.html">Blacksmiths</a>
  16. <a href="kitchen_dudley.html">Dudley</a>
  17. <a href="kitchen_kahibah.html">Kahibah</a>
  18. <a href="kitchen_merewether.html">Merewether</a>
  19. <a href="kitchen_toronto.html">Toronto</a>
  20. <a href="kitchen_willoughby.html">Willoughby</a>
  21. </div>
  22.  
  23.  
  24. <!--2nd drop down menu -->                                                
  25. <div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
  26. <a href="http://www.edstein.com.au">Edstein</a>
  27. <a href="http://www.wk.com.au">Quantum Quartz</a>
  28. <a href="http://www.integralglass.com.au">Integral Glass</a>
  29. <a href="http://www.lincolnsentry.com.au">Lincoln Sentry</a>
  30. <a href="http://www.nover.com.au">Nover</a>
  31. <a href="http://www.winningappliances.com.au">Winning Appliances</a>
  32. <a href="http://www.polytec.com.au">Polytec</a>
  33. <a href="http://www.form-tek.com.au">Form-Tek</a>
  34. <a href="http://www.formica.com.au">Formica</a>
  35. <a href="http://www.blum.com.au">Blum</a>
  36. </div>
  37.  
  38.  
  39.  
  40.  
  41. <script type="text/javascript">
  42.  
  43. cssdropdown.startchrome("chromemenu")
  44.  
  45. </script>
  46.  
  47. <!-- THE END OF THE BODY SECTION FOR THE TOP NAVIGATION BAR CODE -->
  48.  
  49.  
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
May 27 '10 #3
Niheel
2,456 Recognized Expert Moderator Top Contributor
Nope you can't, you'd have to use a serverside language like PHP.
May 27 '10 #4
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.
May 27 '10 #5
jamwil
13 New Member
Ya if you have it php works wonderfully.

Expand|Select|Wrap|Line Numbers
  1. <?php include("filename.html"); ?>
May 28 '10 #6
MusoFreak200
96 New Member
@jamwil
thanks jamwil..
Jun 28 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2834
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...
4
2698
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:
38
4007
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*/
13
2032
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...
0
8397
marktang
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...
0
8827
Oralloy
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...
0
8732
jinu1996
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...
1
8503
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,...
0
8605
tracyyun
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...
0
5632
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();...
0
4158
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...
1
2731
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
2
1620
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.