Html Help

Discussion in 'Gaming' started by slacker, Nov 27, 2005.

  1. slacker

    slacker Well-Known Member

    Posts:
    307
    Likes Received:
    0
    Joined:
    Oct 15, 2005
    guys i know i post a ton of help topics but im new to this and its the only way im gonna learn. ok heres the problem. on my main site page the links for the buttons go
    [​IMG]</TD> the "renders": part just gets added to my main link whihc is gfxheaven.org. but when im on the renders page and need to go to the home page or w/e it still adds home or renders to gfxheaven.org/renders so it looks like this gfxheaven.org/renders/home. how do i fix this?
     
  2. alianman

    alianman Well-Known Member

    Age:
    37
    Posts:
    160
    Likes Received:
    0
    Joined:
    May 5, 2005
    You kind of lost me but I'll try to help. Where are you trying to link to? If your trying to make the browser show a renders page, then you need to add a .html tag after the renders in the <a> tag.

    Thats only if your page you are trying to access is called renders.html. Basically just put the page name and extension in there. Hope this helps.
     
  3. slacker

    slacker Well-Known Member

    Posts:
    307
    Likes Received:
    0
    Joined:
    Oct 15, 2005
    wut happened is whenever i put renders between the "" it gos to gfxheaven.org/renders. but when im on the renders page and go to the templates page or forums page it adds forums or templates to gfcheaven.org/renders so it looks like this www.gfxheaven.org/renders/forums . i know their a way to fix that
     
  4. Lucas-

    Lucas- Well-Known Member

    Age:
    119
    Posts:
    1,558
    Likes Received:
    0
    Joined:
    Jun 18, 2005
    Location:
    Canada
    affirmative...*^^^^^^^^^^


    addd .html or w.e the rag is after "renders"
     
  5. MockingMonkey

    MockingMonkey Well-Known Member

    Posts:
    312
    Likes Received:
    0
    Joined:
    Oct 29, 2005
    Okay okay....
    Watch

    TEXT OR IMAGE there... that might help...
    IMAGE

    There pwned all n00bs

    OMG hes advertising lol
     
  6. slacker

    slacker Well-Known Member

    Posts:
    307
    Likes Received:
    0
    Joined:
    Oct 15, 2005
    nope still dont work :(
     
  7. Equivalent Exchange

    Equivalent Exchange Well-Known Member

    Posts:
    1,466
    Likes Received:
    0
    Joined:
    Nov 9, 2005
    I know whats wrong, if I'm understanding you. Your using reelative links, but remember, the link is always relative to the current page, not the root directory. SO therefore...

    You are on the main file, you go to relatiivl directory "renders", so your at root dir/renders. Then you click templates on that site, and the link, being just "templates" is relative to root dir/renders, making it rot dir/renders/templates.

    Remember, when you put a href without any extension, it basically means "in the folder your in, go to this folder". So href=templates would mean "in this folder, open directory 'templates' "

    To fix this, you want to add "../" in front of some of those links that arnt in the root directory.

    So in root dir/renders, to get to template, you want to link to "../templates" which means basically "one directory back, and then into templates"
     
  8. Underdog.

    Underdog. Senior Member

    Age:
    36
    Posts:
    1,332
    Likes Received:
    0
    Joined:
    Apr 9, 2005
    Location:
    Hiram, Georgia
    ...try putting the / before it..."/page.html"

    EDIT:

    or, maybe even make it redirect home and then follow the link
     
  9. SwAT

    SwAT Well-Known Member

    Posts:
    2,689
    Likes Received:
    0
    Joined:
    May 9, 2005
    Location:
    Connecticut, USA
    i really didn't quite get what you were saying, but you can just use absolute linking by just putting the exact location of what you are going to be linking to instead of the relative location.

    For example:
    im not sure if that is the page that you want the link to, but you can change that with anything else
     

Share This Page