elitehipster
Technical User
- Feb 6, 2009
- 5
I have this rotating iframe script. Here is my problem, this script rotates the iframes in random. id like it to rotate the iframes in order. i have no idea about javascript but im thinking it would be as easy as changing "random" to a diff word maybe. any help would be great, thanks!
<script language="javascript">
/* <![CDATA[ */
/*
var iframeAds = new Array(
'iframe code'
'iframe code'
'iframe code'
);
var randValue = Math.round( Math.random() * ( iframeAds.length - 1 ) );
document.write( iframeAds[randValue] );
/* ]]> */
</script>
<script language="javascript">
/* <![CDATA[ */
/*
var iframeAds = new Array(
'iframe code'
'iframe code'
'iframe code'
);
var randValue = Math.round( Math.random() * ( iframeAds.length - 1 ) );
document.write( iframeAds[randValue] );
/* ]]> */
</script>