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
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;" > </td> </tr> <tr> <td > <a href="southpark.php" >Buddy Ogü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> </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"> </td><!-- aussentab--> </tr> </table> </body> </html>
Comment