Jump to content


HTML included files

  • Please log in to reply
1 reply to this topic

#1 miseleigh

  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 01 August 2006 - 09:09 PM

I'm trying to create included files for my navigation bar on my website, since I'm changing it often.  I don't have access to the server to configure it, and server-side html includes don't seem to work at all.  I tried using
<!--#include FILE="menu.inc" -->
in my main page with the menu bar in b.inc with no results.  I also tried turning it into a .js file with print statements and adding
<script src="menu.js" type="text/javascript"> </script>
to my main page, again with no results.  My external stylesheet is working perfectly, and I have some javascript tooltips on the page that also work.  Any advice on what the problem might be and how to fix it?  Thanks!

#2 KittyKate

  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 03 August 2006 - 04:13 PM

Perhaps try:
<javascript> print myHTMLCode();</script>
in the body of your html file where you'd like it to be.

Or, you may simply need to add a trigger to run the javascript. Do you have an onLoad event set to run it?
PHP Version 4.3.2
MySQL version unknown (greater or equal to 3.23)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users