miseleigh Posted August 1, 2006 Share Posted August 1, 2006 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 [code]<!--#include FILE="menu.inc" -->[/code] 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 [code]<script src="menu.js" type="text/javascript"> </script>[/code] 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! Quote Link to comment https://forums.phpfreaks.com/topic/16249-html-included-files/ Share on other sites More sharing options...
KittyKate Posted August 3, 2006 Share Posted August 3, 2006 Perhaps try:[code]<javascript> print myHTMLCode();</script>[/code]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? Quote Link to comment https://forums.phpfreaks.com/topic/16249-html-included-files/#findComment-68636 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.