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 Dan on 11/23/84 11:43

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.

--
Dan

 

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

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