Can someone tell me what I need to change to move this to the top right instead of where it is on the bottom right?
Can someone tell me what I need to change to move this to the top right instead of where it is on the bottom right?
Search for this in lightbox.js// calculate top and left offset for the lightboxIf not that than please be more specific, using "this" with nothing else is not that clear (not that I'm a clear explainer).Code:var arrayPageScroll = document.viewport.getScrollOffsets(); adjust this line------> var lightboxTop = 8; var lightboxLeft = arrayPageScroll[0]; this.lightbox.setStyle({ top: lightboxTop + 'px', left: lightboxLeft + 'px' }).show();
I will examine and try your suggestion.
"This" refers to what is in my subject - the "close" for the window. I want the close at the top right instead of bottom right.
Thanks for responding.
Yea but I dont have any of your code and if you altered it all its different, or if your missing something we won't know.
If you mean code in the lightbox.js, I have not altered any of that except for the path for next/prev/loading/close graphics. I wouldn't know how to alter it. But, in the version of Lightbox I mentioned, it only has this reference to the variable you mentioned.
If you go to this page on a web site I created, you can see that because the image is so large (click the magnifier glass), it's perhaps annoying to the viewer to have to scroll down so far to close. Even better might be the close at the top and the bottom: http://www.portraitartist.com/spinks...centuries2.htmCode:var lightboxTop = arrayPageScroll[1] + (arrayPageSize[3] / 10);
Last edited by cdaniel; 11-19-2009 at 02:03 PM.
Bookmarks