473,467 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
Create 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 3212
Niheel
2,460 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,460 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
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...
4
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. ...
38
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 ...
13
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.