rotator

trying to make a rotator. Started with basic iframe with a link to change it (from allwebco)

<a href="http://marocvert.net/" target="rotator">next</a>
<iframe name= "rotator" src="https://roflfaucet.com/" width="800" height="600" frameborder="0" scrolling="auto" class="frame-area">
</iframe>

but it didn't work. Maybe it's WordPress 'protecting' me. Also copied the code from DWUser.com exactly and it didn't work either. [edit: it won't show HTTP inside the HTTPS but it still wouldn't work anyway.]

Here's a start for php anyway, from hubpages.com:

<?php

$urls[] = 'https://makeafaucet.tk/';
$urls[] = 'https://directsponsor.org/';
$urls[] = 'https://bigbuttfaucet.tk/';

srand  ((double) microtime( )*1000000);

$random = rand(0,count($urls));

header ('location:' . $urls[$random]);

exit;
?>

[corrected " to ']

Create an array of URLs, use a random number generator. Not ideal, but it's a start. Really need a choice of random and sequential, back, forward etc. This would give one of the URLs in response to the page request, so we need to put it on another page, then embed it in an iframe in the rotator page.

This didn't work either. Tried in head and body, in the head, no effect. In the body, returns a blank page.

Some CSS for the allwebco one at the top, with additions to get rid of the sidebar in the wp theme.

<style type="text/css">
 .rotator {
  display: block;
  width: 100%;  /* RESPONSIVE WIDTH */
  max-width: 1200px;
  height: 800px;
  overflow: auto;  /* EDIT TO hidden FOR NO SCROLLBAR */
  border: #999999 1px solid;
  margin: 0px;
  padding: 0px;
  }
#sidebar {

display: none !important;

}
#main {

width: 100% !important;

}
</style>    

Giving up on this for now, maybe it would work ok in a static site, but in Wordpress, it doesn't. It was interesting to find a legitimate (almost) use for !important.