Quote:
Originally Posted by MattTheLoony
Secondly, try taking the / off your links. So for example it's just "banner.html" instead of "/banner.html".
|
Yep, adding a
/ means get file from base dir of site, also absolute link. So if the url of the page was
http://xxx/dir1/mypage.htm and you had
/image.jpg as your image link code then it would try and find it at
http://xxx/image.jpg, this is called absolute links. You also got relitive links which are
dir2/image.jpg or
./dir2/image.jpg, if you used this the url it would go and try to find the image would be
http://xxx/dir1/dir2/image.jpg. You can also extend it to
./../dir2/image.jpg which would get the image from
http://xxx/dir2/image.jpg, the
.. making it travel back through the directory structure and the
. telling it to start traversing folders starting from its current location.
See all simple now.