By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,717 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,717 IT Pros & Developers. It's quick & easy.

Internal website must link to images on network mapped drives

P: 2
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!!!?????????????????(imagine 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
Nov 18 '08 #1
Share this Question
Share on Google+
2 Replies


drhowarddrfine
Expert 5K+
P: 7,435
The internet is based on Unix so the forward slash is correct everywhere but Windows. On Windows, with file, it should be file:\\z:\filename 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
Nov 18 '08 #2

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

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

Thanks
Nov 18 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.