< >

seiteiniframeladen.php


Quell Code


  <?php
if($_GET['seite']) { 
$rein=$_GET['seite'];
$o=file_get_contents($rein);
  



}
?>
<html>
  <head>
    <style>
      body{
  text-align:center;
}
#iframee{
  border:1px solid black;
  height:500px;
  width:80%;
margin-left:10%;
  overflow:auto;
}
body{
background:white;
}
object{
width:100%;
height:100%;
}
    </style>
  </head>
      <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>   
<body>
  <h1>Das ist ein div und kein iframe</h1>
  <div id="iframee">
<div>
<object type="text/html" data="http://sebastian1012.bplaced.net/"  >
</object>
</div>
  
  
  </div>



      <script>  
      setTimeout(function(){
   window.document.onmouseover= function(e) { 
if(!e) e = window.event; 
   var text1 = e.target;
   text1.style.border = '5px solid red'; 
   text1.onmouseout = function() {this.style.border = '5px solid transparent';
}   

$(this).click(function(){
    var text=text1.outerHTML;
   alert(text)
});  



}
      },5000);
      
      
      
      
      
      
      
      $('#iframee>a').click(function(){
      alert()
      g=$(this).attr('href');
      alert(g)
      go(g)
      })
//go('http://sebastian1012.bplaced.net/chat/chat.php');
 
function go(g){
 $('#iframee').load(g);
           $.ajax({
                type: "POST",
                url: g,
                //data: {ich:ich,gelesenid:gelesenid},
                success: function(data){ 
            
 
        //         location.reload();
                }
     
        });
 }
</script>

</body>
</html>