Plik główny wykonywlny jest to co poniżej banner.php
<html>
<head>
</head>
<frameset rows="10%,*">
<frame src="index2.html">
<frame src="http://www.pocztakwiatowa.pl/kwiaty/">
</frameset>
</html>
plik index2.html wygląda tak
<html>
<head>
<style>p { color:red; }</style>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
$(document).ready(function () {
$("p").text("The DOM is now loaded and can be manipulated.");
});
</script>
</head>
<body>
<input style="border:none" type="text" id="time" readonly />
<?php
?>
<script type="text/javascript">
$(document).ready(function() {
var i = 1;
var time = setInterval(function(){
if(i <= 5){
$('#time').val(i);
i++;
}else{
clearInterval(time);
}
}, 1000);
setTimeout ( "doSomething()", 5000 );
});
function doSomething ( )
{
$.ajax({
type: "POST",
url: "kosz3.php",
data: "
<?php echo 'someData='.$_GET['someData'].'';?>",
success: function(msg){
alert( "Reklama wyswietlona 10sek. Potwierdozno zaliczenie: ");
}
});
}
</script>
</body>
</html>