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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to