Web HTML for Links That Change Alot

Discussion in 'Web Design & Programming' started by m60dude5, Jun 30, 2008.

  1. m60dude5

    m60dude5 Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    Hi guys,
    I am currently setting up an Intranet at the place I work. I know HTML pretty well, but I can't find a solution to this problem. We have tons of files on the server. On a couple of pages on the Intranet their are links that people can click on which will download those files or open the folder. The problem is, the links change almost weekly. What I want to do is put a static link on the actual page that will link to another page where the link changes. This is hard to explain, but basically, I want to have one page with all the links that can be updated.
    For example:
    I have page: "worddocs.htm" and "exceldocs.htm"
    On those pages I have links to: file:\\\\\Server\file.doc, etc.
    What I want to do is:
    Code:
    <html>
    <a href="REFRENCE PAGE.htm">Click Me to download WORDDOC</a>
    
    on worddocs.htm

    and on REFERENCE PAGE.htm,
    I want something that can see that the user is trying to find WORDDOC and redirect them there.

    Not sure if you'll understand, but it's worth a shot.
    The main point of this is that I want to put in all the links now, and have ONE page that I have to continually update instead of 100.
    Thanks
     
  2. m60dude5

    m60dude5 Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    Alright, I've been trying some stuff out, and this is what I did. I'm not sure if it's the best option or not, but let me know.
    I made one page called reference.htm and made anchors like this:

    Code:
    <a name="#link1"><table....></a>
    
    Then on the main page, where I want the download link, I put:
    Code:
    <iframe src="reference.htm#link1"></iframe>
    
    I put all the downloads on there, but the page only shows that anchor as it should. It works, but let me know if there is a better way.
     
  3. Sniper

    Sniper Administrator Staff Member

    Likes Received:
    59
    Trophy Points:
    63

Share This Page