Ankündigung

Einklappen
Keine Ankündigung bisher.

Video/Bild bleibt für alle Unterseiten gleich

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Video/Bild bleibt für alle Unterseiten gleich

    Ich habe eine Frage:

    Ich habe drei verschiedene Flash Videos.

    Ich habe eine Homepage mit Hilfe von PHP + Inhalt erstellt.

    Ich habe ein Video ganz oben in Index integriert, das Problem ist, dass dies. Video bleibt für alle Unterseiten gleich.

    Ich möchte für jede Unterseite ein anderes Video anzeigen.
    Ich weiß nicht, wie man das macht……
    Ich bitte um eine schnelle Antwort

    PHP-Code:
     <?php 
        
    // die Datei inhalt.php 
         
        
    if(isset($_GET['section'])) { 
            switch(
    $_GET['section']) { 
             
                                case 
    'home'
                    include 
    './text/home.php'
                    break; 
                     
                                case 
    'home1'
                    include 
    './text/home1.php'
                    break; 
                     
                                case 
    'home2'
                    include 
    './text/home2.php'
                    break;                 
                     
                                case 
    'home3'
                    include 
    './text/home3.php'
                    break; 
                 
                    default:  
    // Wenn eine ungültige Section angegeben wurde 
                        // sollen die News gezeigt werden 
                    
    include './text/fehler.php'
                    break; 
            }      
        } else { 
            
    // wenn section nicht angegeben wurde 
            // sollen die News angezeigt werden. 
            
    include './text/home.php'
        } 
    ?>
    Vielen Dank
    Mit freundlichen Grüßen

  • #2
    Hallo onlineautomarkt_at. Willkommen bei php.de!

    Leider ist Deine Frage nicht sehr verständlich:
    Ich habe ein Video ganz oben in Index integriert, das Problem ist, dass dies. Video bleibt für alle Unterseiten gleich.
    Versuche bitte, Deine Seitenstruktur zu beschreiben. So wie es sich jetzt darstellt, mußt Du in jeder der home....php Seiten den Inhalt ausgeben, der das jeweilige Video einbindet. Natürlich nur, wenn das Codebeispiel für die Inhalte relevanten Code einbindet.
    [COLOR="#F5F5FF"]--[/COLOR]
    [COLOR="Gray"][SIZE="6"][FONT="Georgia"][B]^^ O.O[/B][/FONT] [/SIZE]
    „Emoticons machen einen Beitrag etwas freundlicher. Deine wirken zwar fachlich richtig sein, aber meist ziemlich uninteressant.
    [URL="http://www.php.de/javascript-ajax-und-mehr/107400-draggable-sorttable-setattribute.html#post788799"][B]Wenn man nur Text sieht, haben viele junge Entwickler keine interesse, diese stumpfen Texte zu lesen.“[/B][/URL][/COLOR]
    [COLOR="#F5F5FF"]
    --[/COLOR]

    Kommentar


    • #3
      index.php

      PHP-Code:
      <?php
          error_reporting 
      E_ALL );
          include (
      './include/header.php');?> 
      <body>
      <table width="667" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="232" valign="top"><table width="667" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="27" background="./images/bg_top.jpg"><div class="dark" align="right" style="margin-right:50px; margin-top:5px ">
          <?php
      $datum
      =date("j.n.Y");
      $zeit=date("H:i");

      echo 
      "Datum: $datum | Uhrzeit: $zeit";
      ?>
        
        </div></td>
            </tr>
            <tr>
              <td height="177" background="./images/logo_bg.jpg"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="611" height="177" style="margin-left:29px">
                  <param name="movie" value="./flash/Vampire11.swf">
                  <param name="quality" value="high">
                  <embed src="flash/Vampire11.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="611" height="177"></embed>
              </object></td>
            </tr>
            <tr>
              <td height="28" background="./images/buttons_bg.jpg"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="611" height="28" style="margin-left:29px ">
                  <param name="movie" value="./flash/Vampire11%20buttons.swf">
                  <param name="quality" value="high">
                  <embed src="./flash/Vampire11%20buttons.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="611" height="28"></embed>
              </object></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="259" valign="top" background="images/bg_row_2.jpg" bgcolor="#FFFFFF"><table width="667" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="374" height="259" valign="top" background="images/bg_grds_1.jpg"><table width="374" height="259" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="219" valign="top"><img src="images/t_welcome_to_n_club.jpg" width="175" height="34"><br>
                    <div class="verdana10" style="margin-left:16px "><img src="./images/logo.jpg" alt="LOGO" style="margin-bottom:5px; margin-top:6PX "><br>
                     <b> Willkommen auf der Naughty Vibez Site...</b><br>
      <br>
      <img src="./images/chat.gif"> <a href="index.php?section=location"><img src="./images/location.jpg" alt="LOCATION" border="0"></a></div></td>
                  <td width="155" valign="top"><table width="155" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="138" valign="top"><img src="./images/t_private_event_info.jpg" width="114" height="32"><div class="verdana10" style="margin-top:3px; margin-left:7px "><span class="white"><a href="http://www.printhaus.at" target="_blank">Printhaus.at</a> </span><br>
                          Flyer, Faltblatt, Plakat, Broschüren, Briefbögen, Visitenkarte, Postkarte, Aufkleber, Briefumschläge billig online drucken, Werbeartikel <br>
                          <br>
                          <div align="right" class="white"><b><a href="http://www.printhaus.at" target="_blank" class="white">hier klicken<img src="images/arrows_01.gif" width="16" height="8" border="0" style="margin-right:5px "></a></b></div>
      </div>                </td>
                    </tr>
                    <tr>
                      <td valign="top"><a href="#"><img src="./images/win_2_ticket.jpg" width="155" height="40" border="0"></a><br>
                        <br>
                        <br>
                        <br>
                        <div align="right" class="white" style="margin-right:9px "><b><a href="#" class="rot"><b>VIP Tickets</b></a></b></div></td>
                    </tr>
                  </table>                            </td>
                </tr>
              </table></td>
              <td valign="top"><table width="293" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="291" height="220">
                    <param name="movie" value="flash/video.swf">
                    <param name="quality" value="high">
                    <embed src="flash/video.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="291" height="220"></embed>
                  </object></td>
                </tr>
                
              </table></td>
            </tr>
          </table>      </td>
        </tr>
        <tr>
          <td><table width="667" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="27" background="images/bg_left.jpg" style="background-position:top; background-repeat:no-repeat ">&nbsp;</td>
              <td width="613"><table width="613" height="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td background="images/text_bg.jpg"><table width="613" border="0" cellspacing="0" cellpadding="0" style="margin-top:2px ">
                    <tr valign="top">
                      <td width="403" background="./images/bg_disk.jpg" style="background-position:bottom; background-repeat:no-repeat "><table width="458" border="0" cellspacing="0" cellpadding="0">
                        <tr valign="top">
                          <?php
          error_reporting 
      E_ALL );
          include (
      './include/inhalt.php');?>                
      </tr>
                      </table>                  </td>
                      <td width="150" align="center" valign="top" background="./images/bg_dotted_line.jpg" style="background-position:left; background-repeat:repeat-y "><img src="images/t_wallpapers.jpg" width="150" height="27" style="margin-left:3px ">
                       
                          <br>
                          <a href="http://www.willessen.at/" target="_blank"><img src="./images/willessenbanner.gif" border="0"></a><br>
                      </td>
                    </tr>
                  </table>              </td>
                </tr>
      <?php
          error_reporting 
      E_ALL );
          include (
      './include/footer.php');?>

      Kommentar


      • #4
        home.php

        Code:
        <td><img src="./images/t_hip-hop_party.jpg" width="445" height="27"><br>
        <br>
        <div class="dark" style="margin-left:11px ">
                <?php
        include("./include/dbconnect.php");
        print ("
        
        ");
        $sqlt = "SELECT * FROM texte WHERE tid = '1'";
        $rest = mysql_query($sqlt);
        while($row = mysql_fetch_assoc($rest)) {
        $tid = $row['tid'];
        $ttext = $row['ttext'];
        print ("$ttext");
        }
        
        print ("
        
        ");
        mysql_close($verbindung);
        ?>
        
        </div></td>

        Kommentar


        • #5
          Es befindet sich ganz oben ein Flash-Video!

          Wenn ich auf irgendeinen Button klicke, wird nur der Inhalt geändert, das heißt dieses Flash-Video bleibt immer gleich und wird immer angezeigt aber das möchte ich nicht haben weil es störend ist.
          Für jede Unterseiten möchte ich ein nämlich ein anderes Video haben.
          Kann mir jemand bitte helfen?
          MFG Fawio

          Kommentar

          Lädt...
          X