Fzero
Advanced Member
- Joined
- Mar 9, 2010
- Messages
- 4,702
I'm having an issue with Fancybox, which is a lightbox viewer script.
I'm using it within a one-page site, which is probably the cause of my problem.
Anyway, what's happening is, when I click a fancybox photo, it shows it but the page behind has gone to the top.
So, I've looked at the JS you can add which will force a page reload when closing the fancybox photo.
An example of that is here:
http://jsfiddle.net/EWTxv/
What I would like, is instead of a location.reload, which causes the page to reload from cache, I would the page to reload to a specific anchor tag.
This would allow me to target it with an anchor I have where the image thumbs are, half way down my one-page site.
I guess that can be done, but I don't know the JS to do it.... anyone?
I'm using it within a one-page site, which is probably the cause of my problem.
Anyway, what's happening is, when I click a fancybox photo, it shows it but the page behind has gone to the top.
So, I've looked at the JS you can add which will force a page reload when closing the fancybox photo.
An example of that is here:
http://jsfiddle.net/EWTxv/
What I would like, is instead of a location.reload, which causes the page to reload from cache, I would the page to reload to a specific anchor tag.
This would allow me to target it with an anchor I have where the image thumbs are, half way down my one-page site.
I guess that can be done, but I don't know the JS to do it.... anyone?