You are here: Re: Setting the src location only 1 time in the beginning for ALL graphics?? « HTML « IT news, forums, messages
Re: Setting the src location only 1 time in the beginning for ALL graphics??

Posted by dorayme on 10/11/92 11:43

In article
<1143512084.283720.316830@v46g2000cwv.googlegroups.com>,
"Dan" <dan@tobias.name> wrote:

> dorayme wrote:
> > When you type in your links, to use the examples you gave,
> >
> > src="http://home.att.net/~novice/beginner/homepage/me/pic1.jpg"
> > src="http://home.att.net/~novice/beginner/homepage/me/pic2.jpg"
> >
> > type instead:
> >
> > src="/pic1.jpg"
> > src="/pic2.jpg"
> >
> > and then search "/pic" and replace all with
> > "http://home.att.net/~novice/beginner/homepage/me/pic"
>
> That isn't going to work. With the leading slash in the "src"
> references, they will be relative to the root of the given hostname, at
> http://home.att.net/pic1.jpg, etc., which isn't what the original
> poster wanted. The correct values are:
>
> base href="http://home.att.net/~novice/beginner/homepage/me/"
>
> img src="pic1.jpg", etc.

Perhaps I have misunderstood him or you? I was assuming other
posts (like Andy Dingly's) were right and it could not quite be
done as OP imagined. I was giving a method to write up the files
without having to type and copy paste every link as he builds the
site. I still do not understand why it would not work from your
remarks - perhaps you are misunderstanding me? Surely he ends up
with all the absolute url references in his final code and they
will be fine (not elegant, true!).

--
dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация