Explanations:
In the 'big' script (originally: fadeslideshow.js), I made some changes pertaining to the background of the (container for the) slideshow images. That removes the black parts around the images. You may want to make the big script external again.
Changes in your bio.htm (on my server: http://mesdomaines.nu/slideshow_resp...oquin_bio.html):
Code:
<style>
#fadeshow2 .gallerylayer img{ /* make all images inside fadeshow4 scale to 100% of slideshow width/height */
max-width: 100%;
max-height: 100%;
}
</style>
The 'small' script:
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: ['100%', '100%'], //width/height of gallery in percentages.
imagearray: [
["http://rauhosting.com/WOquin/slider-images/WayneOquin-Bio.jpg", "", "", ""],
["http://rauhosting.com/WOquin/slider-images/DSC_9035-700.jpg", "", "", ""],
["http://rauhosting.com/WOquin/slider-images/DSC_8748.jpg", "", "", ""]
],
displaymode: {type:'auto', pause:4000, cycles:0, wraparound:false, randomize:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 5000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
Immediately before the paragraph that starts with In April 2015, The Danish National Symphony Orchestra ... I put:
Code:
<div id="fadeshow2_wrapper" style="position: relative; text-align: left; border: 0">
<div id="fadeshow2" ></div>
</div>
<script>
function height_fadeshow2_wrapper()
{//added to give #fadeshow2 a height
document.getElementById('fadeshow2_wrapper').style.height=window.innerHeight/3+'px' // replace '3' whith another number if you like
}
setTimeout('height_fadeshow2_wrapper()',0);
window.onresize=function(){height_fadeshow2_wrapper}
</script>
The div having id="fadeshow2_wrapper" must have position: relative in order for the contents of the div having id="fadeshow2" (slideshow) to be part of the ongoing text. But a relatively positioned div cannot have a height given in percentages: the div won't show. That's why I added the script, which uses window.innerHeight to do the same thing for relatively positioned divs as do percentages for absolutely positioned ones. As window.innerHeight equals to 100%, I divided it by 3,which gives the best result and equals to 33.33%.
I guess that's all I did. Ask me if you have further questions.
Btw, your music is accessible yet new and original. To have Hamelin by your site means something! And your arrangement of the Maazel-fragments is marvellous.
Bookmarks