I'm working on a vb.net project.
MS Visual Studio 2008
Framework: 3.5
DB: MSSQL SERVER 2005
I need to show an image in lightbox using javascript on home(default) page of the website. For ex: when an user hit to the website then firstly automatically show him/her a lightbox which will have an image on page load of home(default) page of the website.
Now, I have two files, one is "jquery.lightbox.min.js" and other is "jquery.lightbox.css".
Image size: width X height = 400 X 550 in JPG format
Under <head> tag:
<script type="text/javascript" src="js/lightbox/jquery.lightbox.min.js"></script>
<link rel="stylesheet" type="text/css" href="js/lightbox/themes/default/jquery.lightbox.css" />
Now, please suggest me, how would i do further process?
What I have tried:
<html>
<head>
<link rel="stylesheet" type="text/css" href="js/lightbox/themes/default/jquery.lightbox.css" />
<script type="text/javascript" src="js/lightbox/jquery.lightbox.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('.lightbox').lightbox();
});
</script>
</head>
<body>
<img src="img/JP-and-McGW.jpg" width="400px" height="550px" alt="" title="" />
</body>
</html>