Announcement

Collapse
No announcement yet.

Mit einem Link 2Iframes mit MySQL Daten füllen

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mit einem Link 2Iframes mit MySQL Daten füllen

    Guten Abend,

    Mein Problem ist folgendes:

    Ich speichere Video links und Namen in einer DB. Alles kein Problem.
    Habe auch ein Dynamisches Menü erstellt. Jetzt möchte ich das wenn man auf einen link klickt sich 2 Iframes füllen(Überschriftiframe und Videoiframe).
    Das Video Iframe hab ich schon geschaft nur Ich bekomme keine 2 Gleichzeitig hin.

    Link zur Seite:Dynamik Seite

    Code:
    <html>
    <head>
    <script>
    function change2() {
    parent.vf.location = "  <?php echo $row->videourl; ?>   ";
    parent.nf.location = "  <?php echo $row->videoname;  ?> ";
    }
    </script>
    </head>
    <body>
    <table align="center"  width="100%"     border="0" cellpadding="0" cellspacing="0"  >
    <tr>
    <td  id="sp1" valign="top">
    
    <!--  menü links-->
    
    <table align="center"  id="menu1"  border="0" cellpadding="0" cellspacing="0"   >
    <tr>
    <td height="40" style="background-image:url(images/leiste.jpg);background-repeat:repeat-x;" >&nbsp;</td>
    </tr>
    <tr>
    <td >
    <a href="southpark.php"  >Buddy Og&uuml;n</a>
    </td>
    </tr>
    <?php  include ("db.php");
    mysql_connect($dbhost,$dbuser,$dbpass);
    mysql_select_db($dbname);
    
    
      $abfrage = "SELECT * FROM `youtube.de` ";
      $ergebnis = mysql_query($abfrage);
      while($row = mysql_fetch_object($ergebnis))
      {
    ?>
    
    <tr>
    
    
    <a href="<?php echo $row->videourl; ?>" target="vf"><?php echo $row->videoname;  ?></a>
    <a onclick="change2()">Aender zwei frames</a>
    </td>
    </tr>
    <?php
      }
      ?>
    <!-- ende menü links-->
    <tr>
    <!-- abstand nach unten vom menü links-->
    <td>&nbsp;</td>
    <!-- ende abstand nach unten vom menü links-->
    </tr>
    </table>
    
    </td>
    <td valign="top"  id="sp2">
    <iframe height="60" width="600" frameborder="0" name="nf"/>
    </iframe>
    <iframe height="500" width="600" frameborder="0" name="vf"/>
    </iframe>
    </td>
    <!-- ende inhalt-->
    </tr>
    <tr>
    <td colspan="2" id="fussb"  >www.00-00-00-00.de</td>
    </tr>
    </table>
    </td>
    
    <td class="re">&nbsp;</td><!-- aussentab-->
    </tr>
    </table>
    </body>
    </html>

  • #2
    Zwei Frames gleichzeitig ändern
    "(...) deshalb mag ich Binärtechnik. Da gibt es nur drei Zustände: High, Low und Kaputt." (Wau Holland)

    Viele Grüße Novi

    Comment

    Working...
    X