Can anyone help me in getting these five images below in a loop?

I can not modify the code as it is affiliate code.


<iframe allowtransparency="true" src="https://media.racebets.com/media.php?bid=271&cid=303" width="300" height="300" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
<iframe allowtransparency="true" src="https://media.racebets.com/media.php?bid=256&cid=303" width="300" height="300" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
<iframe allowtransparency="true" src="https://media.racebets.com/media.php?bid=251&cid=303" width="300" height="300" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
<iframe allowtransparency="true" src="https://media.racebets.com/media.php?bid=241&cid=303" width="300" height="300" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
<iframe allowtransparency="true" src="https://media.racebets.com/media.php?bid=236&cid=303" width="300" height="300" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>