Simple jquery gallery works in Firefox, but doesn't work in IE9

Q: I inserted the visual lightbox into my page.It works with Firefox and Chrome. But it
does NOT work with Internet Explorer 9.
When I click a thumbnail in IE9, big images appear without lightbox effect.
Please help.

A: Try to add the DOCTYPE declaration for universal compatibility:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


It should be the first line in the code of your page, before <head> and <html> tags.
Also, make sure that javascript is enabled in your IE9 browser.

Related