Intégrer du flash dans du php

Le mac -  
avion-f16 Messages postés 19182 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,

voila, je suis débutant en programmation, et j'aimerai savoir comment intégrer ce code dans du php :

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<title>flShow - Carousel</title>
<meta name="Author" content="Saverio Caminiti" />

<script type="text/javascript" src="swfobject.js"></script>

<style type="text/css">
body {
font: 12pt Georgia, Times, serif;
height: 100%;
color: #333333;
background: white url(bg.jpg);
}
.carousel_container {
width: 750px;
height: 500px;
margin: 0px auto;
border: 1px solid #3399FF;
}
</style>
</head>

<body>

<div class="carousel_container">
<div id="carousel1">
<p>This slideshow requires <a href="https://get.adobe.com/flashplayer/">Adobe Flash Player 9.0</a> (or higher). JavaScript must be enabled.</p>
</div>
</div>
<script type="text/javascript">
swfobject.embedSWF("Carousel.swf", "carousel1", "750", "500", "9.0.0", false, {xmlfile:"default.xml", loaderColor:"0x666666"}, {wmode: "transparent"});
</script>

</body>
</htm>

ce code me permet d'afficher du flash.

merci par avance.
Configuration: Windows 7 / Internet Explorer 8.0

2 réponses

  1. Titial69 Messages postés 269 Statut Membre 20
     
    Ben il suffit de mettre ca dans ta page et de rajouter ton php dedans tout simplement. exemple :

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
    <title>flShow - Carousel</title>
    <meta name="Author" content="Saverio Caminiti" />
    
    <script type="text/javascript" src="swfobject.js"></script>
    
    <style type="text/css">
    body {
    font: 12pt Georgia, Times, serif;
    height: 100%;
    color: #333333;
    background: white url(bg.jpg);
    }
    .carousel_container {
    width: 750px;
    height: 500px;
    margin: 0px auto;
    border: 1px solid #3399FF;
    }
    </style>
    </head>
    
    <body>
    <?php echo 'mon code php'; ?>
    
    <div class="carousel_container">
    <div id="carousel1">
    <p>This slideshow requires <a href="https://get.adobe.com/flashplayer/">Adobe Flash Player 9.0</a> (or higher). JavaScript must be enabled.</p>
    </div>
    </div>
    <script type="text/javascript">
    swfobject.embedSWF("Carousel.swf", "carousel1", "750", "500", "9.0.0", false, {xmlfile:"default.xml", loaderColor:"0x666666"}, {wmode: "transparent"});
    </script>
    
    </body>
    </htm> 
    

    0
  2. avion-f16 Messages postés 19182 Date d'inscription   Statut Contributeur Dernière intervention   4 511
     
    Le PHP sert juste à générer du texte et à traiter les données.
    Donc il suffit de faire un echo du code qui inclus ton animation :
    <div class="carousel_container">
    <div id="carousel1">
    <p>This slideshow requires <a href="https://get.adobe.com/flashplayer/">Adobe Flash Player 9.0</a> (or higher). JavaScript must be enabled.</p>
    </div>
    </div>
    <script type="text/javascript">
    swfobject.embedSWF("Carousel.swf", "carousel1", "750", "500", "9.0.0", false, {xmlfile:"default.xml", loaderColor:"0x666666"}, {wmode: "transparent"});
    </script>

    Sans oublier de mettre ces lignes dans le head de ta page :
    <script type="text/javascript" src="swfobject.js"></script>
    
    <style type="text/css">
    body {
    font: 12pt Georgia, Times, serif;
    height: 100%;
    color: #333333;
    background: white url(bg.jpg);
    }
    .carousel_container {
    width: 750px;
    height: 500px;
    margin: 0px auto;
    border: 1px solid #3399FF;
    }
    </style>
    0