NameSilo

Help, how is this done? A navigation Question

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch
Impact
0
Ok, Here is the link. CLICK ME
Now, this is what I need looked at.
The whole page is written in a table, yeah ok, now when you use the navigation on the left the content page changes, but the navigation stays there. Did they place that navigation "HTML" on every page? I dont want to use I frames to create this effect they suck, yet I dont want to have to copy and paste the entier "Navigation Table HTML" on every page. This confused me because the navigation scrolls with the rest of the page so its not spereate.
I hope there is enough info here to allow some help.
Thanks in advance
VA
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Yes, they have included that code on ever page. The reason it seems to stay there is because when you click on the next page that code/images are already in your cache and appear to stay there because they do not need to be re-downloaded. If you are not wanting to copy the same code on each page just use PHP and do something using the include file where you can have one file i.e.) nav.inc.php and include that file on each page where the navigation goes.
 
0
•••
0
•••
vector_anomaly said:
Ok, I have a php inclued on a test page, but i am getting an error message when i view it. http://liquiddeceptions.com/test.php

can you show us the code you are using? because if you are just using an include simply use this if this is all you are doing

Code:
<? include('filename.ext') ; >
 
0
•••
Yup, that is the way to go.
 
0
•••
0
•••
Lol, I remember something like 2-3 years ago when I first got into designing web pages, I said to myself "there has got to be a way to include one file into another file so you dont have to go and change it on every page," and then someone showed me something amazing - server side includes! So I know exactly where this guy is coming from...
 
0
•••
With html page, you can use javascript.
Code:
document.writeln('<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="125" bgcolor="#FF0000">');
document.writeln('    <tr>');
document.writeln('      <td height="0" bgcolor="#008000">');
document.writeln('      <p align="center"><img border="0" src="_borders/genericfest-150h.jpg" width="107" height="150"></td>');
document.writeln('    </tr>');
document.writeln('</table>');
Save it as nav.js

then include it on every pages like
Code:
<script language="javascript" src="nav.js"></script>

I hope it helps~
 
0
•••
And I would stick with either FULTREE's idea, or php. Try to stay away from ASP (In my own opinion) because you do not see such a big support (in terms of web hosting) for them.
 
0
•••
Olitt — high-converting AI websites, only from $1/moOlitt — high-converting AI websites, only from $1/mo

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back