PDA

View Full Version : Ultimate Fade-in slideshow



whatthemeh
06-04-2010, 05:06 PM
1) Script Title: Ultimate Fade-in slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem:
The settings say this:
The dimensions of the slideshow in the format [width_int, height_int] with pixels being the assumed unit. These two values should be set to the dimensions of the largest image. Any image within the slideshow with width or height that exceeds the specified values will be clipped partially.
I was wondering if there was a way to use a setting for the images besides pixels? I was looking to try percentages but am unsure how to make this switch

azoomer
06-04-2010, 07:22 PM
It is probably not the right way to do it, but I have been experimenting with something like this in the head-section:


<style type="text/css">
#fadeshow1 {
margin-left:auto;
margin-right:auto;
margin-top:10%;
}
.gallerylayer{
background-color:#FFF !important;
}
</style>

<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#fadeshow1').css({
'width':'80%',
'height':'600px'
});
jQuery('.gallerylayer img').css({
'width':'100%',
'height':'auto'
});
});
</script>