Menu
Hi
i’m trying to make a script that opens a random link from the page contained in an iframe after 5 seconds ….a sort of random redirection
that’s what i done :
<head></head><body>
<script>
<!–
function random_all(){
var myrandom=Math.round(Math.random()*(document.links.length-1))
window.location=document.links[myrandom].href
}
//–>
</script>
<a href=”javascript:random_all()”>Random Link</a>
<iframe id=”frame” frameborder=”0″ vspace=”0″ hspace=”0″ marginwidth=”0″ marginheight=”0″ width=”100%” height=”100%” src=”
</iframe>
</body>
Thanks for your help