Forum Moderators: open
Turn your PC into a web server so that the ASP executes properly (the background will look correct and everything else will work). The quick way to do this is with Personal Web Manager or IIS - your PC should already have one or the other, but they'll need activating or installing from the Windows CD or something like that. There are help pages and web tutorials that give step-by-step instructions.
Once you've got it working, you'll be able to examine the ASP code to see why the pages do what they do. This is a great opportunity to teach yourself a server-side language!
Let me also point out before I get into the ASP, that the background may not come from ASP at all. It can also be entered through an external cascading stylesheet or otherwise, CSS. I will explain that below too for you.
If the web server where the web site needs to be supports ASP, then you can simply go to View Source in Internet Explorer and look at the HTML which was generated by the ASP on the web server.
Now, you can copy the HTML from the page source. Since the background is generated by ASP, you will of course need to make small adjustments to the HTML and manually code the background attribute of the HTML.
Just keep in mind that ASP can execute plain HTML if it is outside of the ASP identication code which is <% and %> - The percent mark and the opening or closing HTML brackets is the symbol that lets the web server know it is dealing with ASP and not HTML. Anything outside of the percent marks is plain HTML. This is how an ASP programmers tells the server to process ASP or HTML.
Since the background is not showing up, the previous designer probably had something like
<% response.write "<body background=WHATEVER.GIF>" %>
If that is the case, then you can change the URL of the background to whatever you want.
You can simply right click on the live web page and get the URL of the background image and code yout HTML manually with it.
Also, check to see that there is not an external style sheet by looking in the <HEAD> tags of the HTML. You may have to download the external cascading stylesheet if there is a <LINK rel="stylesheet"> tag.
Well, this should get you going in the right direction. Let me know if you need further help.
If this is the case, then you can modify the javascript. I do this all my web sites, because it allows you to make one change and replicate the HTML onto all pages without editing more than one file.
If the nav bar is in an external .txt file, it could be called in with the ASP, because ASP can read and write external text files. So, look in the ASP code for the name of that .txt file. Then, all you really need to do is change the txt file.
Probably not much help, but I'm an ASP beginner myself.
Shadows Papa
<!-- #include file="includes/menu.inc" -->
Now as far as i am aware that is just a comment in html, but does the # sign mean something in asp, I have looked though all the pages and this comment is in the code on every page in place of the menu, there are no Script tags on the pages at all. So i guess what looks like a html comment to me must mean something in asp.
You mentioned being able to call a table into a page with javascript, think this might be getting a bit side tracked but right now on my other site i have to edit the menu on 15 pages everytime i add or change a page, but I'll find out more about that once i work out how this site i have inherited works.
Thanks again Ian
<!-- #include file="includes/menu.inc" -->
bingo! that's the SSI (server side include) call which grabs a file called menu.inc which is in the includes subdirectory and inserts it into every page.
It's not javascript, nor is it vbScript but it is where the ASP comes in.
if you want to convert the site back to HTML you will have to take the code in the file named menu.inc and paste it back into every page before saving it as .htm..
but if I can help persuade you instead of the time it's take you to all these pastes if you use that time to learn about SSI and that if all you ever do is have an asp site for the reason that you can use includes (and therefore templates) then do it.. it'll be worth it
you can build a very simple templated site (no need to rebuild your existing site) just by using includes and without the need to learn any scripting language just yet..
Suzy
You mentioned the HTML comments, but those comments are only for older web browsers who do not understand what #include is.
Like Papa Shadow said above, the #Include is to call in external ASP files. If you edit it, you may be able to change the nav bar. Also, make sure your directory struture is the same as the one on your web server or you may not see the files. Like Papa S. said above, it cannot be intact.
Cheers Ian
Also can someone give me a step by step guide in any format on how to call the navigation menu onto a page to save me altering every page when I make alterations to it.
Final question, learning about asp and ssi sounds like the next step for me, can anyone give me a good site from which to learn with tutorials ect, or even good books to buy for a total beginner or does anyone know of good college courses, I am in the uk.
Thanks again Ian
Shadows Papa
so what about this, i have been doing some homework and have read this, to call the navigation table onto the page i out this code where i want it to appear
<--#includes file="myfilename.htm"-->
and so that the server knows the page contains an ssi i just need to give it the extension .shtml
Well this is new to me and i have not tried it yet but if it is this simple will it work on Rehat Linux and FreeBSD operating systems.
Cheers Ian