Seperate page

liunx

Guest
Hi, I have been looking everywhere for this. I have a site that is gonna have lots of content, and I don't wanna update 100 menu bars every week, so is there a way I could make a seperate HTML file for my menu bar and include it in all my pages without using frames? I know it can be done with CSS, and JavaScript, but I can't find it for HTML.<br />
Can anyone out there help me?<!--content-->You could use an iFrame. Works just like a frame, but without frameset stuff. And, java menus can go over iFrame borders, unlike regular ones. Look at my test site to see, <!-- w --><a class="postlink" href="http://www.geocities.com/linksanime2003">www.geocities.com/linksanime2003</a><!-- w --> (<!-- m --><a class="postlink" href="http://www.geocities.com/linksanime2003">http://www.geocities.com/linksanime2003</a><!-- m -->) (my menu at the bottom goes over the iFrame which displays the text).<br />
<br />
Here is some example text:<br />
<br />
<iframe name="iFrame" src=http://www.htmlforums.com/archive/index.php/"NAME OF PAGE.htm"><br />
</iframe><br />
<br />
The src=http://www.htmlforums.com/archive/index.php/"" tells what page is to be opened.<!--content-->Dosen't work for me, just makes a big text box, I want it so that you can't tell the difference, I've been looking around some more, I've seen some php ones that I've tried, but they didn't work out too good either.<br />
<br />
Thanks anyway<!--content-->Use this:<br />
<br />
<iframe name="frameName" src=http://www.htmlforums.com/archive/index.php/"page.htm" frameborder="0" width="#" height="#" marginheight="0" marginwidth="0" scrolling="no/yes/auto"><br />
<br />
to get a borderless iFrame. Frameborder gets rid of any border and the marginheight/width="0" makes no margins within the frame. I believe that is the only way to do what you want to do in HTML.<!--content-->Thanks, it works, but I don't know how it'll hold up on the net, my host dosen't accept frames :(<!--content-->It should take iFrames. They are more of a text box than a frame set. I have found that they are much easy and better than actual frames.<br />
<br />
By the way, what is your host?<!--content-->everyhost should accept frames. If it doesn't that wouldn't make since at all.<!--content-->Yeah, why wouldn't a host allow frames? They are just an easier way to make a page layout.<!--content-->If your host allows PHP then the include function is great for what you want to do.<!--content-->Yes, first make a page with all the links you want then insert this code where you want it to show up:<br />
<!--webbot bot="Include" U-Include="Links URL" TAG="BODY" --><br />
Then when you want to add a link just add it to that one page. This is what I do for all of my webbies. ^_~<!--content-->>> <!--webbot bot="Include" U-Include="Links URL" TAG="BODY" --> <<<br />
<br />
That code is an internal Frontpage code that assembles HTML pages from fragments before you upload the pages. It requires that every time you change your site, that you re-upload all of the pages again.<br />
<br />
PHP allows the server to construct the page as it is served to the user. When you make content changes you only need to re-upload the very few parts that have changed.<!--content-->I've tried it, and it works. What happens with normal frames is because of the ad server that put the ads on the page, if we have frames, the frame will become ALL advertisements. But it wasn't the case with me ^_^<!--content-->One of them free hosts eh?<!--content-->Yeah, I have a good one though, unmetered space, bandwidth, all file types, and only 1 auto minimizing pop-up.<br />
I'm moving to another host soon though, due to the lack of a MySQL database.<!--content-->If it has mySQL then you will also get PHP access too.<br />
<br />
Go read all about the include function at <!-- m --><a class="postlink" href="http://php.net/">http://php.net/</a><!-- m --> and you will find it a lot better than iframes, simply because the webserver assembles the HTML page, not the browser: therefore your page will work on all browsers.<!--content-->Grrr. just after I totally update my entire site.<br />
But I have nothing else to do, so thanks.<!--content-->
 
Back
Top