Portail PHP

Forum de discussion et d'aide au php

Vous n'êtes pas identifié.

Annonce

Regles d'utilisation des forums : pensez à toujours les respecter si vous désirez obtenir des réponses rapides.
FAQ : pensez à toujours chercher dedans si la réponse à votre question est dedans.
Proposez vos news : si vous avez un evenement à annoncer
RefStats : Analysez votre positionnement sur les moteurs de recherche
 

#1 30-05-2009 08:25:21

rugbyfrench
Membre
Date d'inscription: 30-05-2009
Messages: 1

Comment intégrer un menu FLASH dans une page PHP ?

Bonjour à tous,

     Voilà je me présente Rugbyfrench administrateur du site suivant: http://www.rugby-game.fr/
Je souhaiterai le moderniser en incluant des menus en FLASH.
Voici le menu que j'ai déjà créé avec "123 Flash Menu" : http://rugby08.free.fr/MENU%20EN%20FLAS … UGBY08.swf

Pouvez-vous m'aider à inclure ce menu dans le block de gauche par exemple, merci.

Ne sachant pas quelles données vous communiquer j'ai essayé de faire le tri:
--> code donné par "123 Flash menu" lors de la création du FLASH:

Copy and paste this part to <HEAD>...</HEAD> of HTML page.

<script type="text/javascript" src="flashobject.js"></script>
<script type="text/javascript" src="adjustmenu.js"></script>
<script type="text/javascript" >
function open_menu()
{document.getElementById('color').style.height="250px";
}
function close_menu()
{document.getElementById('color').style.height="24px";
}
</script>


Copy and paste this part to <BODY>...</BODY> of HTML page.

<Body onload="AdjustMenu('color','false',0,0)" onresize="AdjustMenu('color','false',0,0)">

<div id="color_id" >123 Flash Menu Placeholder.</div>
<script type="text/javascript">
var fo = new FlashObject("TEST RUGBY 08.swf","color","1124","250","6","#99B4D1");
    fo.addParam("menu","false");
    fo.addParam("quality","best");
    fo.addParam("scale","noscale");
    fo.addParam("salign","LT");
    fo.addParam("wmode", "transparent");
if (navigator.appName.indexOf("Microsoft")== -1) {
     fo.addVariable("notIE","1");}
    fo.write("color_id");
document.getElementById('color').style.width="1124px";
document.getElementById('color').style.position="absolute";
document.getElementById('color').style.zIndex="10"
</script>

--> Voici le code de ma page theme.php (je pense que c'est dans celle-ci qu'il faut inclure le FLASH ?):

<?
//****************************************************************************
//** Thème Scarface_cs - for Nuked-KlaN
//**
//** Designed by Scarf@ce
//**
//** http://test-site2.expert-gamers.com/
//** http://www.nuked-klan.org
//****************************************************************************

function top()
{
global $op, $user, $nuked;

    if (!$user) {
    $theuser = "</b>";
        } else {
    $theuser = "</a>";}

echo"    <html><head><title>$nuked[name] :: $nuked[slogan] ::</title>
    <meta name=\"keywords\" lang=\"fr\" content=\"$nuked[keyword]\">
    <meta name=\"Description\" content=\"$nuked[description]\">";

echo"    <meta http-equiv=\"content-style-type\" content=\"text/css\">
    <link title=\"style\" type=\"text/css\" rel=\"stylesheet\" href=\"themes/Scarface_cs/style.css\">";

echo"    </head><body bgcolor=\"#6A84BF\" text=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" >" ;

nbvisiteur();
   
echo"    <table border=\"0\" width=\"896\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
      <tr>
        <td height=\"8\" width=\"14\"></td>
        <td height=\"8\" </td>
        <td height=\"8\" width=\"14\"></td>
      </tr></table>
    <table border=\"0\" background=\"themes/Scarface_cs/images/header.jpg\" align=\"center\" cellpadding=\"0\" height=\"230\" cellspacing=\"0\" width=\"896\">
      <tr> <td width=\"21\"  rowspan=\"2\" height=\"114\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"14\" height=\"1\" border=\"0\" alt=\"\"></td>
        <td height=\"95\" colspan=\"3\" width=\"844\">
          <table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"844\" height=\"79\" >
        <tr><td width=\"542\" height=\"79\" valign=\"top\" >&nbsp; <img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"331\" height=\"63\" alt=\"$nuked[name]\" border=\"0\"></td>
    <td align=\"right\" width=\"302\" height=\"79\" valign=\"top\" >
    <table border=\"0\" align=\"center\" cellpadding=\"0\"cellspacing=\"0\" width=\"271\" height=\"64\" >
    <tr><td align=\"center\"><br>
    <form action=\"index.php\" method=\"post\">
    </form></td></tr></table></td></tr></table></td>
    <td  width=\"26\" rowspan=\"2\" height=\"100\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>
      </tr><tr><td width=\"157\" height=\"25\" valign=\"middle\" align=\"center\">
        $theuser<table width=100% height=11><tr><td>
    </td></tr></table></td><td width=\"513\" height=\"20\" align=\"center\">
     

    </td><td valign=\"top\" width=\"174\" height=\"20\"><font class=\"content\"><b>
    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"10\" style=\"border-collapse: collapse\" bordercolor=\"#000000\" width=\"100%\" id=\"AutoNumber2\">
    <tr><td valign=\"top\" width=\"100%\"> <p align=\"center\"><b>&nbsp;&nbsp;&nbsp;&nbsp;
    </b></td></tr></table></b></font></td></tr></table>
    <div align=\"center\"><center>
    <table border=\"0\" cellpadding=\"0\" height=\"15\" cellspacing=\"0\" width=\"896\" ><tr>
        <td width=\"12\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"12\" height=\"1\" border=\"0\" alt=\"\"></td>
        <td width=\"900\" ></td>
        <td width=\"27\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>
    </tr></table></center></div>";

echo "    <table width=\"895\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
    <tr valign=\"top\">
    <td width=\"16\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=13 height=1 border=0 alt=\"\"></td>
    <td><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>
    <td  width=\"150\" class=\"left\" valign=\"top\">";
        get_blok('gauche');
   
echo "    </td><td width=\"100%\" align=\"center\" background=\"themes/Scarface_cs/images/bg.jpg\" border=\"0\" cellspacing=\"5\" cellpadding=\"1\">";

if($op==index){get_blok('centre');}
}


function footer()
{
global $file, $page, $nuked;

if ($file == $nuked[index_site] && $page=="") {
echo"</td><td width=\"150\"  valign=\"top\"><BR>";

get_blok('droite');
}
echo " </td><td width=\"16\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"13\" height=\"1\" border=\"0\">
    </td></tr></table>
    <table  width=\"896\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"  align=\"center\"><tr valign=\"top\">
    <td width=\"12\">
    </td><td width=\"896\" height=\"34\" background=\"themes/Scarface_cs/images/footer.gif\"><p align=\"center\">Th&egrave;me by <a href=\"http://http://test-site2.expert-gamers.com\" target=\"_blank\">Scarf@ce</a></td>
    <td  align=\"center\" height=\"12\">
    &nbsp;</td></tr><tr valign=\"top\"><td width=\"16\">
    </td>
    <td height=\"8\">
    &nbsp;</td><td align=\"center\" height=\"14\">
    </td></tr></table>
    <br><center>$nuked[footmessage]</center><br><br>";
}


function news($data)
{

echo"    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"450\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" id=\"AutoNumber1\" align=\"center\">
      <tr><td width=\"450\" colspan=\"3\"> <img border=\"0\" src=\"themes/Scarface_cs/images/story_up.jpg\" width=\"450\" height=\"17\"></td>
      </tr><tr>
        <td background=\"themes/Scarface_cs/images/story_left.jpg\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"9\" height=\"1\" border=\"0\" alt=\"\"></td>
        <td width=\"450\">
          <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\" style=\"border-collapse: collapse\" bordercolor=\"#427D84\">
        <tr><td width=\"100%\" height=\"10\" class=\"header\" background=\"themes/Scarface_cs/images/story_bg.gif\" colspan=\"2\">
        <b>$data[titre]</b></td></tr><tr><td width=\"100%\" class=\"main\" bgcolor=\"#000000\" colspan=\"2\">
       $data[image]<br>$data[texte]</td></tr><tr><td width=\"100%\" height=\"10\" class=\"header\" background=\"themes/Scarface_cs/images/story_bg.gif\">
        "._NEWSPOSTBY." <a href=\"index.php?file=Members&op=detail&autor=$data[auteur]\">$data[auteur]</a>&nbsp;"._THE." $data[date] "._AT." $data[heure]<br>
    <a href=\"index.php?file=News&op=index_comment&news_id=$data[id]\">"._NEWSCOMMENT."</a> ($data[nb_comment]) $data[printpage] $data[friend]</td></tr></table>
    </td><td width=\"9\" background=\"themes/Scarface_cs/images/story_right.jpg\"><img src=\"themes/Scarface_cs/images/pixel.gif\" width=\"9\" height=\"1\" border=\"0\" alt=\"\"></td>
      </tr><tr>
        <td width=\"450\" colspan=\"3\"><img border=\"0\" src=\"themes/Scarface_cs/images/story_down.jpg\" width=\"450\" height=\"17\"></td>
      </tr></table><br>";
}



function block_gauche($block)
{

global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;

echo "  <table cellspacing=\"0\" cellpadding=\"0\" width=\"150\" border=\"0\" background=\"themes/Scarface_cs/images/block_bg.jpg\">
    <TBODY><TR> <TD height=\"28\">
    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"100%\" >
    <tr><td height=\"28\" background=\"themes/Scarface_cs/images/block_up.gif\" colspan=\"3\">
    </td></tr><tr>
    <td height=\"27\" background=\"themes/Scarface_cs/images/block_middle.jpg\" colspan=\"3\">
    <center><font class=\"heading\" color=\"#FFFFFF\"><b>$block[titre]</b></font></center></td>
    </tr><tr><td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_left.gif\">
    </td><td width=\"150\"></td>
    <td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_right.gif\">
    </td></tr><tr><td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_left.gif\">
    </td><td width=\"150\">
    <font class=\"content\" color=\"#FFFFFF\">$block[content]</font></td>
    <td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_right.gif\">
    </td></tr><tr><td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_left.gif\">
    </td><td width=\"150\" height=\"10\" valign=\"bottom\"><p align=\"left\">
    <img border=\"0\" src=\"themes/Scarface_cs/images/corner.gif\" width=\"10\" height=\"10\"></td>
    <td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_right.gif\">
    </td></tr></table></TD></TR><tr><td>
        <img border=\"0\" src=\"themes/Scarface_cs/images/block_bottom.gif\" width=\"190\" height=\"35\"></td>
    </tr></tbody></table>";


}


function block_droite($block)
{

global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;



echo "  <table cellspacing=\"0\" cellpadding=\"0\" width=\"150\" border=\"0\" background=\"themes/Scarface_cs/images/block_bg.jpg\">
    <TBODY><TR> <TD height=\"28\">
    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"100%\" >
    <tr><td height=\"28\" background=\"themes/Scarface_cs/images/block_up.gif\" colspan=\"3\">
    </td></tr><tr>
    <td height=\"27\" background=\"themes/Scarface_cs/images/block_middle.jpg\" colspan=\"3\">
    <center><font class=\"heading\" color=\"#FFFFFF\"><b>$block[titre]</b></font></center></td>
    </tr><tr><td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_left.gif\">
    </td><td width=\"150\"></td>
    <td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_right.gif\">
    </td></tr><tr><td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_left.gif\">
    </td><td width=\"150\">
    <font class=\"content\" color=\"#FFFFFF\">$block[content]</font></td>
    <td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_right.gif\">
    </td></tr><tr><td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_left.gif\">
    </td><td width=\"150\" height=\"10\" valign=\"bottom\"><p align=\"left\">
    <img border=\"0\" src=\"themes/Scarface_cs/images/corner.gif\" width=\"10\" height=\"10\"></td>
    <td height=\"10\" width=\"19\" background=\"themes/Scarface_cs/images/block_right.gif\">
    </td></tr></table></TD></TR><tr><td>
        <img border=\"0\" src=\"themes/Scarface_cs/images/block_bottom.gif\" width=\"190\" height=\"35\"></td>
    </tr></tbody></table>";
}


function block_centre($block)

{

echo"    <table width=\"450\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">
      <tr><td class=extra><b>$block[titre]</b><br>$block[content]</td></tr></table><br>";   
}


function OpenTable() {
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr><td bgcolor=\"000000\" class=\"content\">";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\"><tr><td bgcolor=\"000000\">";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}


?>

N'étant sûr qu'il faille inclure le FLASH dans le fichier theme.php, je vous mets à disposition les fichiers suivants:
--> style.css : http://rugby08.free.fr/MENU%20EN%20FLAS … /style.css
--> colors.php : http://rugby08.free.fr/MENU%20EN%20FLAS … colors.php

Je me tiens à votre disposition, merci de votre aide.
Rugbyfrench

Hors ligne