Reply to Re: [PHP] link to specific position in page

Your name:

Reply:


Posted by Richard Lynch on 02/23/05 20:28

Johannes wrote:
> I am building a dynamic thumbnail gallery. When you click the thumbnail
> the larger image appears in the same document(not using frames). My two
> problems are:
> *When I click on the thumb I would like the page to reload and be
> scrolled to the exact same position as before the click (now with an
> updated large image, but otherwise the page looks just like before). I
> am using named achors in HTML. But I would rather do it in a more
> dynamic way so I dont have to put them on every HTML line of the
> document for it to work seamlessly. Is this possible to achieve somehow,
> using php?

Sure.

Just use PHP to echo out the #xyz part, using, say, the $filename of the
thumbnail.

> *My next problem is that every time you click a thumb and the page
> reloads you first see the upper part of the document flashing by before
> it scrolls to the correct position. Is it possible to prevent this?

That's just the way the browser works, and you'd have to yell at Bill
Gates and the Mozilla guys to change it. Good luck :-)

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original 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

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