PDA

View Full Version : Please Help - Iframes resetting at Popups!


OnslaughtX
07-24-2007, 08:12 AM
Hey everyone, I need a quick hand, figured I'd ask here. I'm creating an online portfolio of sorts, and the main focus is a gallery page. I'm using a scrolling gallery page with thumbnails within an Iframe. Whenever you click on a thumbnail, it provides you with a set sized popup window with the full image. I have all this working fine. The problem comes with the following - when the popup image/window appears, the main page with the Iframe "resets" to the top. Any scrolling (to lower sections) is reverted back to default it seems. Is there any way I can stop the page from reloading itself like this and resetting itself? It's a hassle when you click a picture after scrolling to the bottom of the page, only to have to start at the top again each time.

Thanks everyone. If I need to be any clearer, please let me know!

davidj
07-24-2007, 09:31 AM
use an anchor link when you click the thumb


<a href="#anchor1"><img src ="....... > </a>


you will need to define an anchor and place it near the thumb your clicking

<a name="anchor1"></a>