michael2
9/11/2017 - 1:27 AM

Initiate random sub banner image from /files - Example http://www.grundyconstructions.com.au/who_are_we.html

Initiate random sub banner image from /files - Example http://www.grundyconstructions.com.au/who_are_we.html

<script>
$(function() {  //THIS WILL SELECT SLIDER IMAGES LISTED BELOW - CHANGE URL PATH BELOW TO ALTER
var images = ['sl1.jpg', 'sl2.jpg', 'sl3.jpg', 'sl4.jpg'];
$('#subBanner, #subBannerContact').css({'background': 'url(thumbnaillarge/' + images[Math.floor(Math.random() * images.length)] + ')'});
});
</script> 
#subBanner {
height:300px;
background-position:center center !important;
background-size:cover !important;
}