< iframe id="rotate_sites" src="" width="600" height="850" frameborder="1"> </iframe> < script> var websites = 1, sites =['http://mpets.mobi','http://mpets.mobi']; function newSite() { if ( websites >= sites.length ) { websites = 0; } document.getElementById('rotate_sites').src = sites[websites]; websites++; } setInterval(newSite, 2000); < /script> Here I have this code, I want you to help me a little:
- For each link to have its own time, through which another page will be loaded.
- The number of times a particular link is repeated.