Problème pour centrer mon site web en flash

sabrinalem -  
mikazar Messages postés 11 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

Je n'arrive pas a centrer mon site
Merci de me quel code je dois rajouter et où?

Voici le code de mon index

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>container</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#cccccc">
<!--URL utilisées dans l'animation-->
<!--texte utilisé dans l'animation-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("Cette page nécessite le fichier AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '1024',
'height', '768',
'src', 'container',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'container',
'bgcolor', '#cccccc',
'name', 'container',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'container',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1024" height="768" id="container" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="container.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /> <embed src="container.swf" quality="high" bgcolor="#cccccc" width="1024" height="768" name="container" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="https://get.adobe.com/flashplayer/" />
</object>
</noscript>
</body>
</html>
A voir également:

1 réponse

mikazar Messages postés 11 Date d'inscription   Statut Membre Dernière intervention   3
 
salut!
Je te conseille de créer une page "index.html" où tu place ton "container.swf" dans une balise

<div id=animflash>
ici ton container.swf
</div>


et dans un fichier .css ou entre les balise <head> </head>
tu met le code suivant:

div#animflash{
position:absolute;
width:1024px;
height:768px;
top:50%;
left:50%;
margin-top:-384px;
margin-left:-512px;
}

voilà et si tu as un problème post ici on verra la suite
1