Another thing that occurred to me is the animation. Set it to false as shown (around line #70 in lightbox.js):
Code:
// -----------------------------------------------------------------------------------
//
// Configuration
//
var fileLoadingImage = "images/loading.gif";
var fileBottomNavCloseImage = "images/closelabel.gif";
var animate = false; // toggles resizing animations
var resizeSpeed = 7; // controls the speed of the image resizing animations (1=slowest and 10=fastest)
var borderSize = 0; //if you adjust the padding in the CSS, you will need to update this variable
// -----------------------------------------------------------------------------------
That may fix the jumpiness regardless of the cause.
I did try turning off direction: rtl; for the entire page, that didn't seem to help. But it's one thing to do that after the page is initialized, and another to rewrite the page without it. Doing either would only be an experiment to see what the cause is. But what I did tends to indicate that rtl might not be the problem. If you removed all direction: rtl; styles temporarily and that fixed it or didn't fix it, that would answer that question definitively. Something you should try with that is getting rid of all align="right" attributes and all text-align: right; styles. The default is left and Lightbox might be depending upon that for smoothness. You should try eliminating all of those and all direction styles together, just as an experiment. If that fixes it, we could perhaps bring them back, and work around the problem(s) they cause the lightbox.
But try just turning off the animations first. That might work.
To answer your question though, there are so many lightbox type scripts. I currently like:
- ColorBox
- FancyBox (its css is closest to what you're going for, so might be a good choice if its the lightbox.css that's throwing things off)
The original Lightbox is up to version 2.05 now:
http://www.huddletogether.com/projects/lightbox2/
You can Google 'lightbox' and 'lightbox clones' to find others.
Bookmarks