Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Relative URL?

Quote Reply
Relative URL?
Hi,

I am trying to use this technique for the images in my Links SQL database:
http://www.alistapart.com/articles/cssdrop2

It works fine in most browsers excpect ie5.5/6

This is becasue I can't specify a absolute url to the background image when using the following CSS:

.alpha-shadow div {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/shadow2.png', sizingMethod='crop');
background: none;
}

The problem is that I use a static build and the path to the shadow PNG changes depending where people are in my catalogue. Is there a global that can be used that will appropraitely modify the src value depending on where the user is in the hierachy of my catalogue?

Hope that makes sense - TIA



Indigo Clothing is a t-shirt printing company based in the UK.
Indigo Clothing | Promotional Clothing | T-Shirt Printing | Embroidery
Quote Reply
Re: [IndigoClothing] Relative URL? In reply to
Hi,

As you have it at the moment, ../images, this means go up one directory from the directory you are currently in and then look in the images directory. Have you tried

src='/images/shadow2.png'

where images is a directory in your web directory. If you start with / then it starts from your web directory.
Quote Reply
Re: [afinlr] Relative URL? In reply to
Yep - tried that and it does not work.Crazy

Alex



Indigo Clothing is a t-shirt printing company based in the UK.
Indigo Clothing | Promotional Clothing | T-Shirt Printing | Embroidery
Quote Reply
Re: [IndigoClothing] Relative URL? In reply to
Does not work because that is not the correct path? Can you tell me the url to the image?
Quote Reply
Re: [afinlr] Relative URL? In reply to
The absolute path is:

http://www.indigoclothing.com/...s/shadow/shadow2.png

so i have tried:

/images/shadow/shadow2.png
../images/shadow/shadow2.png
images/shadow/shadow2.png

but all don't work!

Alex



Indigo Clothing is a t-shirt printing company based in the UK.
Indigo Clothing | Promotional Clothing | T-Shirt Printing | Embroidery
Quote Reply
Re: [afinlr] Relative URL? In reply to
Have struck that before. The experts and the books all say one thing however the scripts and the webserver have a mind of their own. Sometimes, the full relative path is required, and that requirement varies with the same script and is server dependant.

Drives you mad doesn't it?