can any one tell me the code to the light box ? so i can add it to my html page ?
3 posters
light box code
udarsha45- Forumember
- Posts : 626
Reputation : 9
Language : English
Location : Sri Lanka
- Post n°1
light box code
mgt98- Forumember
- Posts : 344
Reputation : 45
Language : English
- Post n°2
Re: light box code
Can you explain what you mean by 'light box'?
udarsha45- Forumember
- Posts : 626
Reputation : 9
Language : English
Location : Sri Lanka
- Post n°3
Re: light box code
here you are http://www.lokeshdhakar.com/projects/lightbox2/
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
- Post n°4
Re: light box code
Hi,
Where are you stuck, I've tried it on forum index and works fine.
This goes to your head section
CSS goes to CSS
I've linked the images so you don't have to.
Than you set up an image like this (assuming you want multiple images on light box)
Click on those two images below Play board and you'll see it working http:xxxxxxxxxxxxx
Never mind the images, it's just to show you.
Where are you stuck, I've tried it on forum index and works fine.
This goes to your head section
- Code:
<script type="text/javascript" src="http://www.lokeshdhakar.com/projects/lightbox2/js/prototype.js"></script>
<script type="text/javascript" src="http://www.lokeshdhakar.com/projects/lightbox2/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="http://www.lokeshdhakar.com/projects/lightbox2/js/lightbox.js"></script>
CSS goes to CSS
- Code:
#lightbox{ position: absolute; left: 0; width: 100%; z-index: 999; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }
#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: 10px; }
#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}
#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(http://www.lokeshdhakar.com/projects/lightbox2/data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(http://www.lokeshdhakar.com/projects/lightbox2//images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(http://www.lokeshdhakar.com/projects/lightbox2//images/nextlabel.gif) right 15% no-repeat; }
#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; }
#imageData{ padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #bottomNavClose {
background: url("http://www.lokeshdhakar.com/projects/lightbox2/images/closelabel.gif") repeat scroll 0 0 transparent;
float: right;
height: 18px;
outline: medium none;
padding-bottom: 0.7em;
width: 66px;
}
#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
I've linked the images so you don't have to.
Than you set up an image like this (assuming you want multiple images on light box)
- Code:
<a href="WHAT WILL APPEAR ON TOUCH GOES HERE" rel="lightbox[roadtrip]" title="my caption"><img src="TUMB IMAGE GOES HERE"></a>
Click on those two images below Play board and you'll see it working http:xxxxxxxxxxxxx
Never mind the images, it's just to show you.
Last edited by Nera. on August 15th 2011, 1:03 pm; edited 1 time in total (Reason for editing : -link removed)
udarsha45- Forumember
- Posts : 626
Reputation : 9
Language : English
Location : Sri Lanka
- Post n°5
Re: light box code
nera what do you mean by this ?
This goes to your head section
This goes to your head section
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
- Post n°6
Re: light box code
Bellow your head tag
- Code:
<head>
udarsha45- Forumember
- Posts : 626
Reputation : 9
Language : English
Location : Sri Lanka
- Post n°7
Re: light box code
working thanks
solved
solved
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
- Post n°8
Re: light box code
Welcome.
Solved > Locked
Solved > Locked