Overlay Images (Lightbox) Using JavaScript

“Overlay Images (Lightbox) Using JavaScript” is simple example of using Lightbox.

Note that yous should use same settings and directories.

Download the required files as a zip file :


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="jquery-1.7.2.min.js"></script>
<script src="lightbox.js"></script>
<link href="css/lightbox.css" rel="stylesheet" />

<a href="test.jpg" rel="lightbox[group1]">
<img src="test.jpg" width="200" height="200" />
<a href="test1.jpg" rel="lightbox[group1]">
<img src="test1.jpg" width="200" height="200" />

Leave a Reply

Your email address will not be published. Required fields are marked *