The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Website to be presented on a CD, unsure where to send links

bentbent Registered User regular
edited January 2008 in Help / Advice Forum
Okay, basically I am in the midst of designing a mock fanzine style website for my course, which has to be presented on a CD or DVD - The website is a simple one, written in XHTML and styled with CSS, with an introductory Flash animation page, however I'm unsure about how to link each page to each other whilst they're on a CD and not hosted on the 'net?

I mean rather than having the index page link to <a href="www.butts.com/butts">BUTTS</a> I presume it would be "F:\butts\buttpage1.html" but this won't work if their CD/DVD drive is assigned a different drive name, correct? Perhaps I'm overthinking this, but any help would be most appreciated.

sig1.png
bent on

Posts

  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited January 2008
    Use relative links rather than absolute (you should be even if it's being hosted on the net anyway, it's better practice because...it just is, lots of reasons. Drinking, can't be arsed explaining).

    So, instead of www. butts. com/butts.html, you'd just have /butts.html and /butts.jpg and /butts.css etc. Then, so long as they are all in the same directory, it doesn't matter what that directory is actually called or what drive it is on, because the browser will look for the files relative to the position of the .html page. If you have sub-directories like www. butts. com/big/cantlie.html, then to link to it from the butts.html you'd just say /big/cantlie.html

    Szechuanosaurus on
  • msuitepyonmsuitepyon Registered User regular
    edited January 2008
    Use relative addresses.

    For instance:
    - disc root
          - index.html
          - buttimages/
                - butt1.jpg
          - buttsource/
                - section1/
                      - buttpage1.html
                - css/
                      - cssfile.css
    

    To refer to butt1.jpg in buttpage1.html, use
    <IMG SRC="../../buttimages/butt1.jpg" />
    

    To link to buttpage1.html from index.html use
    <A HREF="buttsource/section1/buttpage1.html">Butts</A>
    

    The "../" indicates the parent directory in this case (similar to "cd .." in DOS).

    msuitepyon on
  • bentbent Registered User regular
    edited January 2008
    Hell, that's useful. Thanks guys.

    bent on
    sig1.png
Sign In or Register to comment.