Well what I need is a script what works as follow,
Each new time the page opens, the iframe
has to pick 1 of the 50 link to show randomly as possible.
Now I did some research and I make the following script.
It works on JS(dot)DO but it won't work on jsbin and when I try Chrome it wont work. So i need a little help with it, I hope someone can help me with it!
<iframe id="frame"></iframe>
<script>
(function() {
var e = document.getElementById('frame'),
f = function( el, url ) {
el.src = url;
},
urls = [
'link1',
// all links 1/50
'link50'],
i = 0,
l = urls.length;
f( e, urls[Math.round(Math.random()*50)] );
})();
</script>
(sorry for the bad English, It's not my main language