themoon
01-23-2013, 02:34 PM
I am by no means an html expert.. I stumble along trying to find bits and pieces and make it work.
Currently I have this code which works great:
This is between the head tags:
<style>
margin: 0px;
.fadein { position:relative; }
.fadein img { position:absolute; left:15; top:246px; }
</style>
<script src="RotatingImages/jquery.min.js"></script>
<script>
$(function(){
$('.fadein img:gt(0)').hide();
setInterval(function(){$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 3000);
});
</script>
This is between the body tags:
<div class="fadein">
<img src="RotatingImages/001.jpg">
<img src="RotatingImages/002.jpg">
<img src="RotatingImages/003.jpg">
</div>
Is there anyway to move this line:
.fadein img { position:absolute; left:15; top:246px; }
into the body?
Or maybe I'm asking the wrong question. But I need to create another one of these rotating slide shows on the same page. But I need to put it in a different spot on the page.
Currently I have this code which works great:
This is between the head tags:
<style>
margin: 0px;
.fadein { position:relative; }
.fadein img { position:absolute; left:15; top:246px; }
</style>
<script src="RotatingImages/jquery.min.js"></script>
<script>
$(function(){
$('.fadein img:gt(0)').hide();
setInterval(function(){$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 3000);
});
</script>
This is between the body tags:
<div class="fadein">
<img src="RotatingImages/001.jpg">
<img src="RotatingImages/002.jpg">
<img src="RotatingImages/003.jpg">
</div>
Is there anyway to move this line:
.fadein img { position:absolute; left:15; top:246px; }
into the body?
Or maybe I'm asking the wrong question. But I need to create another one of these rotating slide shows on the same page. But I need to put it in a different spot on the page.