onclick with different href url for lightbox
Hi All,
This is my first post in this forum.Well lets go to the point.
I am doing a lightbox effect onclick a image.Its easy if I just use this code:
- <a href="images/image-0.jpg" class="lightbox" title="Cape Breton Island"><img src="images/thumb-0.jpg" width="100" height="40" alt="" /></a>
- <script>
- $(document).ready(function(){
- $(".lightbox").lightbox();
- });
- </script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
But I want to do something like this
- <a onclick="lightbox('FULL_IMAGE. JPG');return false;" href="full_size_PAGE.php?id= 213"><img src="thumb1.jpg" /></a>
When JS is on - it should show the lightbox thing showing the image FULL_IMAGE.JPG
When JS is off it shluld show the link, which is a HTML page (full_size_page.php?id=123)
then ,
- function lightbox(full_image) {
- // then in here put your jquery code.
- }
So please let me know if this is possible with jquery only.
Thanks in advance :)