Hierop staat een script voor het draaiende krijgen van een slideshow
en daarnaast wil ik een lightbox instellen waarin de foto's worden geshowd.
apart van elkaar werken ze goed, bij elkaar niet!
de website staat op
hieronder de pagina in html:
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>escape from eden</title>
<!-- the CSS for Smooth Div Scroll -->
<link rel="Stylesheet" type="text/css" href="./demo/smoothDivScroll.css">
<!-- Styles for my specific scrolling content -->
<style type="text/css">
#makeMeScrollable
{
width:100%;
height: 350px;
position: relative;
}
#makeMeScrollable div.scrollableArea img
{
position: relative;
float: left;
margin: 0;
padding: 0;
/* If you don't want the images in the scroller to be selectable, try the following
block of code. It's just a nice feature that prevent the images from
accidentally becoming selected/inverted when the user interacts with the scroller. */
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
</style>
<!-- iframe test -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
!window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');
</script>
<script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<link rel="stylesheet" href="style.css" />
<script type="text/javascript">
$(document).ready(function() {
$("#lightbox1").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
</script>
<!-- einde test -->
</head>
<body style="">
<br>
<br>
<div id="makeMeScrollable"><div class="scrollingHotSpotLeft" style="display: block; opacity: 0;"></div><div class="scrollingHotSpotRight" style="opacity: 0;"></div><div class="scrollWrapper"><div class="scrollableArea" style="width: 3784px;">
<a id="lightbox1" href="demo/1/index.html"><img src="./demo/1.jpg"></a>
<img src="./demo/2.jpg" alt="Gnome" id="gnome">
<img src="./demo/3.jpg" alt="Pencils" id="pencils">
<img src="./demo/4.jpg" alt="Golf" id="golf">
<img src="./demo/5.jpg" alt="River" id="river">
<img src="./demo/6.jpg" alt="Train" id="train">
<img src="./demo/7.jpg" alt="Leaf" id="leaf">
</div></div></div>
<!-- LOAD JAVASCRIPT LATE - JUST BEFORE THE BODY TAG
That way the browser will have loaded the images
and will know the width of the images. No need to
specify the width in the CSS or inline. -->
<!-- jQuery library - Please load it from Google API's -->
<script src="./demo/jquery.min.js" type="text/javascript"></script>
<!-- jQuery UI Widget and Effects Core (custom download)
You can make your own at: http://jqueryui.com/download -->
<script src="./demo/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<!-- Latest version of jQuery Mouse Wheel by Brandon Aaron
You will find it here: http://brandonaaron.net/code/mousewheel/demos -->
<script src="./demo/jquery.mousewheel.min.js" type="text/javascript"></script>
<!-- jQuery Kinetic - for touch -->
<script src="./demo/jquery.kinetic.min.js" type="text/javascript"></script>
<!-- Smooth Div Scroll 1.3 minified -->
<script src="./demo/jquery.smoothdivscroll-1.3-min.js" type="text/javascript"></script>
<!-- If you want to look at the uncompressed version you find it at
js/source/jquery.smoothDivScroll-1.3.js -->
<!-- Plugin initialization -->
<script type="text/javascript">
// Initialize the plugin with no custom options
$(document).ready(function () {
// None of the options are set
$("div#makeMeScrollable").smoothDivScroll({});
});
</script>
</body></html>
ik hoop dat iemand mij hier mee kan helpen!!!
groetjes gerwin