table help needed

liunx

Guest
The thing i want to do is to have a link in one cell that will show in another. how do i accomplish this?<br />
is there any way of doing it in dreamweaver or do i hav?to do it in notepad?<br />
<br />
I have a sample site up at<br />
<!-- m --><a class="postlink" href="http://www10.brinkster.com/ostav666/gg/Untitled-1.htm">http://www10.brinkster.com/ostav666/gg/Untitled-1.htm</a><!-- m --><br />
<br />
and basically i want the links to be like this:<br />
about me - ab.htm<br />
pictures - pics.htm<br />
music - music.htm<br />
stuff - stuff.htm<br />
contact - contact.htm<br />
<br />
i havent done any of these pages yet, i just want to clear out the link thing first<br />
<br />
and, i know it isnt a very beautiful site but I am working on alot of other sites and want to make my own quickly<br />
<br />
any suggestions of improvement are welcome<!--content-->do you want to have it open over top of that head or what?<br />
<br />
if thats the case i suggest just using frames...thats pretty easy<!--content-->You can do this but not in a way that you would expect frames to cover that task. You would have to do this in ASP useing a server side include. Can you run ASP on your server. If you can I will help you out, but it will take a bit of my time. So let me know, and I will see what I can do.<!--content-->according to brinkster they have ASP so there you go.<br />
<br />
thanks for the help<!--content-->1: Design your page in dreamweaver if you wish, fill all the main tables etc out but the main one you want to fill in with your targeted link. Leave the target table empty. Any links on the page, I would write them out in full for ease of use when you start to get a big dir structure. I.E<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.mysite.com/ab.asp>about me</a><br />
<br />
You will notice that the extension is .asp, do this now, explained later.<br />
<br />
1a: Above the <HTML> tag at the very top, include the following line.<br />
<%@ LANGUAGE="VBSCRIPT" %><br />
<br />
2: Lets call the table area where you want the content to appear "main box" so I can write this easier and hopefully palm it of on you a little better.<br />
<br />
3: So you have your page designed, except for "main box" which is empty. In this box insert the text "this where it goes" Don't format it anyway, it will be deleted in a moment.<br />
<br />
4: Save this document with the extension .ASP, for example "main_template.asp".<br />
<br />
5: Close this document, you won't need it for a while.<br />
<br />
6: Now you need to design the content for this "main box"<br />
about me - ab.htm <br />
pictures - pics.htm <br />
music - music.htm <br />
stuff - stuff.htm <br />
contact - contact.htm<br />
You have to design the content to fit the restrictions of "main box" in the index file (or what ever you called it.). Do this in dreamweaver if you wish, design them all and save them.<br />
<br />
7: You now have to edit these files in notepad or other text editor. Hopefully you know some HTML and will understand this... cut out everything that isn't needed if you were to cut and paste this text into the first doc we created, the main_template.asp file. This means the <html>, <head>, </head>, <body>, </body>, </html>, etc. <br />
<br />
8: You should just have the bare bones HTML that would line your "main box" and nothing else. You won't be able to view these files as they are missing the required tags.<br />
<br />
9: Save these files in your text editor BUT IMPORTANTLY with the extension .txt.<br />
<br />
10: You now should have the following files.<br />
<br />
main_template.asp<br />
<br />
about me - ab.txt <br />
pictures - pics.txt <br />
music - music.txt<br />
stuff - stuff.txt <br />
contact - contact.txt<br />
<br />
main.txt - main content (I suggest you create this one for your entry page.)<br />
<br />
11: open your main_templete.asp file in a text editor. Do not delete this file you will use it more than once. Goto the section where we included the text "this is where it goes" It should look like this:<br />
<br />
<td><br />
this is where it goes<br />
</td><br />
<br />
Replace it so it looks like this:<br />
<br />
<td><br />
<!--#include virtual="../ab.txt"--><br />
</td><br />
<br />
Save this file as "ab.asp" and do this to the rest so you have:<br />
main_template.asp (keep this for future use)<br />
<br />
about me - ab.asp<br />
pictures - pics.asp<br />
music - music.asp<br />
stuff - stuff.asp <br />
contact - contact.asp<br />
main - main.asp<br />
<br />
12: Load all your files to your server and test them out. Including the txt files to the correct folder that you have linked them to in step 11. You will have difficulty running them from your computer unless you know how to set up your windows setting, I suggest you don't till you learn more about asp.<br />
<br />
All things being equal it should work. This seems long winded. Bare with it. It can cut your work load right down. For example you can save all your head section, the meta tag etc and then use this method to include them on your doc's. So if you have 100 ASP doc's and want to change the Meta Keywords, you only have to do this once in the single text file.<br />
<br />
I hope that makes some sense, if you have any other questions let me know.<br />
<br />
Also if anyone thinks I have missed somthing here let me know. It is worth learning even if you don't use it, but I am sure you will use this technique one day.<!--content-->i dunno what I am doing wrong really<br />
<br />
i have made and uploaded the whole stack of files.<br />
and when i check em out in dreamweaver i can see the asp files but when i go to the site, and click on a link it appears in a new window and it says the page cannot be displayed. I am quite sure I have done as you said.<br />
<br />
<br />
also, i removed the background for now so i can fix around with it a bit.<!--content-->can you upload the files to here so I can read them. I cant read them online as reading online won't show me the code.<!--content-->forgive me for being slow but do you mean the .asp files?<br />
<br />
cause my asp files only contain text and no code, since that was how i thought it should be. or is that wrong?<!--content-->Try this, in step 11 change the include to look like this.<br />
<br />
<!--#include file="somefile.txt"--> <br />
<br />
Still stuck check out this addie.<br />
<br />
<!-- m --><a class="postlink" href="http://www.4guysfromrolla.com/webtech/faq/Intermediate/faq7.shtml">http://www.4guysfromrolla.com/webtech/f ... faq7.shtml</a><!-- m --><!--content-->thanks, it worked when i changed that.<br />
<br />
<br />
just one small thing. if i want to add code to the pages, how should i write then? html?<!--content-->I am glad that worked for you, not sure if I explained all that well... but if you got it up and running I musta done something right.<br />
<br />
As for writeing in HTML... You can write all your pages in HTML and label them as .asp, ASP obviously is used for stronger design purposes. You would do well by reading about some more ASP. <br />
<br />
But now you know how to do a server side include bare in mind you can create your page with various includes... your meta tags, navigation, common content etc etc etc.<!--content-->
 
Back
Top