Internal website must link to images on network mapped drives

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • langba
    New Member
    • Nov 2008
    • 2

    Internal website must link to images on network mapped drives

    I'm using the latest IE7 and FF3, the standards at my company.

    I have two cases...

    1. Styles: In my style sheet I have:
    body {background-image:url(/z:/internalsite/projects/images/joespic.jpg);}

    2. in the body somewhere:
    <img src="/z:/internalsite/projects/images/tomspic.bmp" />

    Thanks to Firebug's DOM inspection, I was able to get those to work in Firefox.

    Here's the problem...that format for locating a file on a mapped drive does not work in IE7. IE7 prefers ALMOST ANYTHING ELSE!!!???????? ?????????(imagi ne about a zillion more ? marks)

    like:
    <img src="file:\\//
    <img src="\\\
    <img src="///
    <img src="file:///z:/

    I guess because we are on XP Pro at work, IE7 just ignores all the bogus src locations, but gets the images anyway.

    What is the proper way to do this?

    TIA
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    The internet is based on Unix so the forward slash is correct everywhere but Windows. On Windows, with file, it should be file:\\z:\filen ame etc.

    EDIT: It's been so long since I've used Windows that way that I'm doubting myself and wonder if it might actually be file://z:\filename etc. Try both

    Comment

    • langba
      New Member
      • Nov 2008
      • 2

      #3
      The style sheet required:
      body {background-image:url(file://z:/.../filename);}

      but the <img> tag required:
      <img src="file:\\z:\ ...\filename" / >

      Thanks

      Comment

      Working...