Einzelnen Beitrag anzeigen

Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#4

Re: In iFrame auf anderer Seite verlinken

  Alt 16. Aug 2005, 12:49
Sowas ?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
 <title></title>
 <link rel="stylesheet" type="text/css" href="design.css" />
 <meta name="author" content="Julius Heins" />
 <script type="text/javascript">
 <!-- 
  var fenster;
 
  function oeffne ()
  {
    fenster = open ("seite2.htm", "bla");
     
     setTimeout ("setze()", 100);    
  } 
 
  function setze ()
  { 
    if (fenster.document.getElementById("meiniframe"))
    {
     fenster.document.getElementById("meiniframe").src = "postdp.htm";
    }
    else
    {
       setTimeout ("setze()", 100);
    }   
  }
 //-->
 </script>
</head>

<body>

[url="javascript:oeffne();"]Link[/url]

</body>
</html>
Seit2.htm:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
 <title></title>
 <link rel="stylesheet" type="text/css" href="design.css" />
 <meta name="author" content="Julius Heins" />
</head>

<body>
           
<iframe src="http://google.de/" id="meiniframe">

</iframe>

</body>
</html>
  Mit Zitat antworten Zitat