Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Senior Member krazy's Avatar
    Join Date
    Apr 2003
    Location
    California
    Posts
    543
    Member #
    1078
    i dunno if u guyz knew dis(probably did ) but when you type //google.com in something like this:

    <a href="//google.com">Google.com</a>

    it will take the //google.com as http://google.com

    not much of an improvement, but came across it while messing around with codes. lol :classic:

    thought id share with u guyz.
    Ad space - for sale, $19.95/month

  2.  

  3. #2
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Interesting. Thanks for sharing
    - Brian

  4. #3
    Member a-drive's Avatar
    Join Date
    Mar 2003
    Posts
    94
    Member #
    809
    Not much use in doing it though. Better to add in the http: so that the browser can interpret the address quicker.

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Also, according to the HTTP protocol you should always include the trailing slash (http://www.google.com/).
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  6. #5
    Member a-drive's Avatar
    Join Date
    Mar 2003
    Posts
    94
    Member #
    809
    Originally posted by filburt1
    Also, according to the HTTP protocol you should always include the trailing slash (http://www.google.com/).
    Touche

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    I knew about the "//" for IE. Not sure how Netscape (or other browsers) interpret it, though.

  8. #7
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    same here
    Download Firebird now!

  9. #8
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    A little off topic, but a cool shortcut:

    I think the best way to link around your own website is to use <a href="/directory/file.html">

    There is no need to rewrite your URL every time. Pretty cool.
    BondMovies.com - "Nobody Does It Better."

  10. #9
    Member a-drive's Avatar
    Join Date
    Mar 2003
    Posts
    94
    Member #
    809
    The best way is to just link to directories, which I think you was trying to do, thuffner?
    .. You also included file too, which in essence is bad.


    You should always just link to the directory like about/ or beans/ and never about.html or beans?s=beanns.

    The reason for this is because over time you're going to want to use new technology to write your pages in, say you did them all in html but you wanted to switch to php. Imagine all the work you'd have to do going through each file changing all the links. Or say if you renamed a file, then you'd have to go through every page searching for the link for it.

    If you link directories, you're hardly ever likely to need to edit links, you can use whatever language you want to use; html, php, asp etc.. name it index.blah and place it into that directory.


    More indepth knowledge and something that just re-iterates what I've said can be found here.

  11. #10
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    I did a post on this... not sure where it is though,,
    Code:
    //  = absolute address specification (default http: protocol)
    /   = link relative to root directory of current address.
    ../ = link relative to parent folder.
    ./  = link relative to current folder (no prefix = same).


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:57 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com