With jQuery I am changing iframe src, every 60 sec (This works fine).
My jQuery:
$(document).ready(function(){
  var array = ['http://link1.com', 'http://link2.com', 'http://link3.com'];
  var locations = array;
  var len = locations.length;
  var iframe = $('#frame');
  var i = 0;
  setInterval(function () {
        iframe.attr('src', locations[++i]);
  }, 60000);
});
My iframe:
<iframe id="frame" src="http://link.com"></iframe>
My iframe src function works fine and what I would like to achieve is, instead of having a fixed delay number (now 60 sec), I would like to change the delay value as well, each time iframe src has been updated.
The new delay number will be a random number between 15 & 30 secs.
 
    