Referencing a local file after setting BASE URL

Discussion in 'HTML' started by Kevin Morgan, May 16, 2005.

  1. Kevin Morgan

    Kevin Morgan Guest

    Once I've set the BASE URL tag in the <HEAD> element, how do I then
    reference local resources within th html file?

    I'm writing a widget that displays the latest posts from a forum on a
    remote site. I've set the BASE tag to that site so that the links work
    ok. Problem is, I need to include some local images. Is there any way
    around this?

    Kev
    Kevin Morgan, May 16, 2005
    #1
    1. Advertising

  2. Kevin Morgan

    Amos E Wolfe Guest

    "Kevin Morgan" wrote:

    > I'm writing a widget that displays the latest posts from a forum on a
    > remote site. I've set the BASE tag to that site so that the links work ok.
    > Problem is, I need to include some local images. Is there any way around
    > this?
    >


    Unfortunately BASE can only be specified once in the html document. If the
    BASE has been set to something other than the local directory you can access
    local files by simply giving the full URL (including the http:// or
    whatever) instead of just the "relative" filename.

    -=# Amos E Wolfe #=-
    Amos E Wolfe, May 16, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Taylor
    Replies:
    2
    Views:
    793
    Mike Taylor
    Jul 23, 2004
  2. Lyndon
    Replies:
    1
    Views:
    518
    Leonard Blaisdell
    Jul 25, 2005
  3. Replies:
    6
    Views:
    402
  4. matt
    Replies:
    1
    Views:
    940
    Flinky Wisty Pomm
    Oct 31, 2006
  5. SMH
    Replies:
    0
    Views:
    605
Loading...

Share This Page