Thursday, April 11, 2013

Very Basic JQuery Image Slider


<html>
<head>
<script src="jquery-1.8.3.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {

        $(function () {
            $('.fadein img:gt(0)').hide();
            setInterval(function () {
                $('.fadein :first-child').hide()
         .next('img').fadeIn()
         .end().appendTo('.fadein');
            },
      3000);
        });
    });
</script>
<style>

.visibleDiv
{
 display:block !important;  
}
.imageDiv
{
    display:none;
}
</style>
</head>
<body>
<div class="fadein">
<img src="images/imagesCA2U4GFJ.jpg" />
<img src="images/imagesCAR4YIKS.jpg" />
<img src="images/imagesCAXR2S2C.jpg" />
<img src="images/national engg research for pesticides.jpg"/>
</div>
</body>
</html>

No comments:

Post a Comment

Seven steps to build and deploy SPFX web part to SharePoint

Install Node.JS Use this link to install Node.JS https://nodejs.org/en/ 2.        Install yeomen and gulp CMD>npm install –g y...