light box code
3 posters
Page 1 of 1
Re: light box code
Can you explain what you mean by 'light box'?
mgt98- Forumember
- Posts : 344
Reputation : 45
Language : English
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)
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: light box code
Bellow your head tag
- Code:
<head>
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: light box code
Welcome.
Solved > Locked
Solved > Locked
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Similar topics
» When i paste a long code via [code][/code] the page expands
» When I edited a message with a code "code" it adds a space
» help in this code . the effect on code > add button to Put under the colored writing
» how to add the light
» Hide Code? or Post to See Content Code?
» When I edited a message with a code "code" it adds a space
» help in this code . the effect on code > add button to Put under the colored writing
» how to add the light
» Hide Code? or Post to See Content Code?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum