<?php
// Showing PHP Iframe Overlay Idea Supervised By HTML - RJM Programming - August, 2014
if (isset($_GET['counter'])) {
 if (isset($_GET['displayiframe'])) {
   echo '<html><body onload=" var thingtosay = parent.document.getElementById(' . "'" . 'myp' . "'" . ').innerHTML; parent.document.getElementById(' . "'" . 'mybasei' . "'" . ').style.opacity = 1; parent.document.getElementById(' . "'" . 'myp' . "'" . ').style.opacity = 0; document.getElementById(' . "'" . 'mypi' . "'" . ').innerHTML = thingtosay + ' . "' " . $_GET['counter'] . "'" . ';"><p id="mypi" style="position: absolute; top:0;left:0;z-index:9;opacity:1;"></p></body></html>';
 } else if ($_GET['counter'] == "0") {
   echo '<html><body onload=" var thingtosay = parent.document.getElementById(' . "'" . 'myp' . "'" . ').innerHTML; parent.document.getElementById(' . "'" . 'mybasei' . "'" . ').style.opacity = 0; parent.document.getElementById(' . "'" . 'myp' . "'" . ').style.opacity = 1; parent.document.getElementById(' . "'" . 'myp' . "'" . ').innerHTML = thingtosay + ' . "' " . $_GET['counter'] . "'" . ';"></body></html>';
 } else {
   echo '<html><body onload=" var thingtosay = parent.document.getElementById(' . "'" . 'myp' . "'" . ').innerHTML; parent.document.getElementById(' . "'" . 'mybasei' . "'" . ').style.opacity = 0; parent.document.getElementById(' . "'" . 'myp' . "'" . ').style.opacity = 1; parent.document.getElementById(' . "'" . 'myp' . "'" . ').innerHTML = thingtosay.replace(' . "' " . (-1 + $_GET['counter']) . "',' " . $_GET['counter'] . "')" . ';"></body></html>';
 }
} else {
 echo '<html><body onload=" var thingtosay = parent.document.getElementById(' . "'" . 'myp' . "'" . ').innerHTML; parent.document.getElementById(' . "'" . 'mybasei' . "'" . ').style.opacity = 0; parent.document.getElementById(' . "'" . 'myp' . "'" . ').style.opacity = 1; document.getElementById(' . "'" . 'mypi' . "'" . ').innerHTML = thingtosay + ' . "'" . "" . "'" . ';"><p id="mypi" style="position: absolute; top:0;left:0;z-index:9;opacity:1;"></p></body></html>';
}
?>
