Posted 12 years ago
·
Author
This makes the avipics in your visitors panel scrolling from right to left. Place this code in a panel *after* the visitors panel! This code might not work on HP's that do not own VIP due to changes in the code to limit the number of visitors seen.
<script type="text/javascript">
function avPicScroller_by_imvucodes(inPanel) {
var obj = document.getElementById(inPanel+'_panel_body').getElementsByTagName('div');
var result = '';
for (var i = 0; i < obj.length; i++) {
if (obj[i].className == 'avPic') {
result += '<div class="avPic" style="float:left;padding:5px;font-size:12px;">' + obj[i].innerHTML + '</div>';
}
}
document.getElementById(inPanel + '_panel_colRow').style.display = 'none';
document.getElementById(inPanel + '_panel_body').innerHTML += '<marquee id="marquee' + inPanel + '"><nobr>' + result + '</nobr></marquee>';
document.getElementById('marquee' + inPanel).start();
}
avPicScroller_by_imvucodes('visitors');
</script>