<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"> </script>
<style>
.domotireg
{
display: none;
position: relative;
}
td
{
border: 1px solid black;
}
</style>
<body>
<table style='display:table'>
<tr>
<td>
<table class='domotireg'>
<tr>
<td>
1
</td>
<td>
2
</td>
</tr>
<tr>
<td>
3
</td>
<td>
4
</td>
</tr>
<tr>
<td>
1
</td>
<td>
2
</td>
</tr>
<tr>
<td>
3
</td>
<td>
4
</td>
</tr>
</table>
<table class='domotireg'>
<tr>
<td>
5
</td>
<td>
6
</td>
</tr>
<tr>
<td>
7
</td>
<td>
8
</td>
</tr>
<tr>
<td>
5
</td>
<td>
6
</td>
</tr>
<tr>
<td>
7
</td>
<td>
8
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
window.onload = function () {
var i = 0;
var msg_count = 2;
setInterval(
function () {
i = i + 1;
if (i > msg_count) i = 1;
$('.domotireg:nth-child(' + i + ')').fadeIn(2500).delay(2000).fadeOut(2500);
}, 7000);
}
</script>
</body>