<!DOCTYPE html>
<html lang="sv">
<head>
<title>Galleria Classic Theme Demo 02</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="../src/galleria.js"></script>
<style>
html,body{background:#fff}
#galleria, #galleria2{
width:700px;
height:500px;
margin:20px auto;
}
a {
color:#aaa;
}
.controller a {
color:#333;
font:arial, helvetica, sans-serif;
text-decoration:none;
}
</style>
<!--LOAD JAVASCRIPT FOR <DIV> CONTENT SWITCHER-->
<script type="text/javascript">
function hidestories() {
var divs=document.getElementById('galleries').getElementsByTagName('div');
for (j=0; j<divs.length; j++) {
var rE = new RegExp("(^|\\s)" + 'gallery' + "(\\s|$)");
if (rE.test(divs[j].className)) {
divs[j].style.display="none";
}
}
}
function stories(first) {
var thebuttons=document.getElementById('galleryControl').getElementsByTagName('a');
for (i=0; i<thebuttons.length; i++) {
thebuttons[i].onclick=function() {
hidestories();
var thestory=(this.href).split("#",2)[1];
document.getElementById(thestory).style.display="block";
return false;
}
}
if (first) {
var firstone=document.getElementById('galleries').firstChild;
if (firstone.nodeType != 1) {firstone = firstone.nextSibling;}
firstone.style.display="block";
}
}
window.onload=function() {
hidestories();
stories(1);
}
</script>
</head>
<body>
<div id="galleries">
<div id="galleria" class="gallery" >
<img src="../src/images/intro.gif">
<div class="descript">
<p><input type="checkbox" name="box1" value="value1"> Select</input></p></div>
<img src="../src/images/cpHome-1.png">
<div class="descript">
<p><input type="checkbox" name="box1" value="value1"> Select</input></p></div>
<img src="../src/images/cpHome-2.gif">
<div class="descript"><input type="checkbox" name="box1" value="value1"> Select</input><p></p></div>
<img src="../src/images/cpHome-3.gif">
<div class="descript"><input type="checkbox" name="box2" value="value2"> Select</input><p></p></div>
<img src="../src/images/cpHome-4.gif">
<div class="descript"><input type="checkbox" name="box3" value="value3"> Select</input><p></p></div>
<img src="../src/images/cpHome-5.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
<img src="../src/images/cpHome-6.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
<img src="../src/images/cpHome-7.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
<img src="../src/images/cpHome-8.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
</div>
<!--gallery 2-->
<div id="galleria2" class="gallery" >
<img src="../src/images/b-basics.gif">
<img src="../src/images/cpIntro-1.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
<img src="../src/images/cpIntro-2.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
<img src="../src/images/cpIntro-3.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
<img src="../src/images/cpIntro-4.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
<img src="../src/images/cpIntro-5.gif">
<div class="descript"><input type="checkbox" name="box4" value="value4"> Select</input><p></p></div>
</div>
</div><!--ends GALLERIES-->
<div id="galleryControl" class="controller">
<a href="#galleria">Introduction </a><br />
<a href="#galleria2">Blogging Basics </a>
</div>
<!--LOAD GALLERIA -->
<script>
// Load theme
Galleria.loadTheme('../src/themes/classic/galleria.classic.js');
// run galleria and add some options
$('#galleria').galleria({
image_crop: false,
popup_links: true,
transition: 'fade',
data_config: function(img) {
return {
description: $(img).next('div').html()
};
}
});
$('#galleria2').galleria({
image_crop: false,
popup_links: true,
transition: 'fade',
data_config: function(img) {
return {
description: $(img).next('div').html()
};
}
});
</script>
</body>
</html>
|