File: index.html

Recommend this page to a friend!
  Classes of Pravin Sonawane   Simple JavaScript Lightbox   index.html   Download  
File: index.html
Role: Example script
Content type: text/plain
Description: Simple JavaScript Lightbox
Class: Simple JavaScript Lightbox
Show and hide a light box on a Web page
Author: By
Last change: create javascript and css include files
Date: 8 years ago
Size: 576 bytes
 

Contents

Class file image Download
<html> <head> <title>Simple JavaScript Lightbox</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="mylightbox.js"></script> <script language="javascript" type="text/javascript"> myObject = new mylightbox(); </script> </head> <body> <div id="outer"></div> <div id="inner"> <div id="close" onClick="myObject.hideLightbox()">X</div> <span id="content">Content Will Come Here</span> </div> <a href="javascript: void(0);" onClick="myObject.showLightBox();">Click Here</a> to view Lightbox </body> </html>