I have done something similar, but using Jquery to do the transition for database tables written in php. Should be easy enough just edit this code and have everything work correctly for what you want to do with the adsense. The rotation is utilized with the content within the div tags. Good luck
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></script>
<!-- initialize the slideshow when the DOM is ready -->
<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
timeout:12000
});
$("#activities").load("../includes/activities.php");
var refreshId = setInterval(function() {
$("#activities").load('../includes/activities.php');
}, 9000);
$("#troubletickets").load("../includes/tickets.php");
var refreshId = setInterval(function() {
$("#troubletickets").load('../includes/tickets.php');
}, 9000);
$("#projects").load("../includes/projects.php");
var refreshId = setInterval(function() {
$("#projects").load('../includes/projects.php');
}, 9000);
});
</script>
<LINK REL=StyleSheet HREF="../css/style.css" TYPE="text/css">
</head>
<body>
<div class="slideshow">
<div id="troubletickets"></div>
<div id="activities"></div>
<div id="projects"></div>
</div>
</body>
</html>