Fork me on GitHub




« 1 (2)


Re: Dimension bannière flash.....
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Bonjour,

fichier theme.html :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html    xmlns="http://www.w3.org/1999/xhtml"    lang="<{$xoops_langcode}>" xml:lang="<{$xoops_langcode}>">
<!-- 
paramètres pour le positionnement des blocs haut et bas -->
<{* 
Center blocks display order valid values are:  lrc (left right centerlcr (left center rightclr (center left right)    *}>
    <{
assign var=theme_top_order value=clr}>
    <{
assign var=theme_bottom_order value=clr}>
<!-- 
indique le nom du thème -->
    <{
assign var=theme_name value=$xoTheme->folderName}>

<!-- 
titre de la page et meta descriptions -->
    <
title><{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> : <{/if}><{$xoops_sitename}></title>
    <
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />    
    <
meta name="robots" content="<{$xoops_meta_robots}>" />
    <
meta name="keywords" content="<{$xoops_meta_keywords}>" />
    <
meta name="description" content="<{$xoops_meta_description}>" />
    <
meta name="rating" content="<{$xoops_meta_rating}>" />
    <
meta name="author" content="<{$xoops_meta_author}>" />
    <
meta name="copyright" content="<{$xoops_meta_copyright}>" />
    <
meta name="generator" content="XOOPS" />

<!-- 
Pour la transition des pages -->
<
meta http-equiv="Page-Enter" content="revealtrans(duration=1, transition=23)" /> 
<
meta http-equiv="Page-Exit" content="revealtrans(duration=1, transition=23)" />

<!-- 
chemin du favicon -->
    <
link rel="shortcut icon" type="image/ico" href="<{xoImgUrl /favicon.ico}>" />
    <
link rel="icon" type="image/png" href="<{xoImgUrl /icon.png}>" />
    
<!-- 
Css du thème -->
    <
link rel="stylesheet" type="text/css" media="screen" href="<{xoImgUrl /layout-soup.css}>" />
    <!--<
link rel="stylesheet" type="text/css" media="screen" title="Blue" href="<{xoImgUrl /style.css}>" />-->  <!-- lien à utiliser en association avec la feuille print.css -->
    <
link rel="stylesheet" type="text/css" media="all" title="Blue" href="<{xoImgUrl /style.css}>" />  <!-- à commenter si la ligne ci-dessus est active -->
    <!--<
link rel="stylesheet" type="text/css" media="print" href="<{xoImgUrl /print.css}>" />-->  <!-- feuille de style pour l'impression -->
    <!--<link rel="stylesheet" type="text/css" media="aural" href="<{xoImgUrl /aural.css}>" />-->  <!-- feuille de style pour la fonction audio de certains navigateurs -->

<{$xoops_module_header}>

<!-- pour la transparence des images au format png sous ie -->
<!--[if lt IE 8]>
    <script type="text/javascript">
        var WEBFX_PNG_PATTERN=".*.png";
        var WEBFX_PNG_BLANK = "<{xoImgUrl /jseffects/img/blank.gif}>";
    </script>
    <style type="text/css">
    img { behavior: url(<{xoImgUrl /jseffects/pngbehavior.htc}>); }
    </style>
<![endif]-->    
        
</head>
<body  class="<{$xoops_dirname}> theme-default" id="<{$xoops_dirname}>">
<{if $xoBlocks.canvas_left and $xoBlocks.canvas_right}><{assign var=columns_layout value='
threecolumns-layout'}>
<{elseif $xoBlocks.canvas_left}><{assign var=columns_layout value='
leftcolumn-layout'}>
<{elseif $xoBlocks.canvas_right}><{assign var=columns_layout value='
rightcolumn-layout'}>
<{/if}>
<div id="xo-canvas"<{if $columns_layout}> class="<{$columns_layout}>"<{/if}>>
<{if $xoops_banner and $xoops_banner != '
&nbsp;'}>
    <div id="xo-banner" class="commercial"><!-- avec affichage activée de la bannière -->
   <!-- URL'
s used in the movie-->
<
a href="<{$xoops_url}>/index.php"></a> <a href="<{$xoops_url}>/forum/index.php"></a> <a href="<{$xoops_url}>/modules/MadGames/"></a> <a href="<{$xoops_url}>/search.php"></a> <a href="<{$xoops_url}>/userinfo.php?uid=1"></a> <!-- text used in the movie-->
<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 
width=982 height=100>
 <
param name=movie value="<{xoImgUrl /asmael_site.swf}>"> <param name=""=quality value=high><embed src="<{xoImgUrl /asmael_site.swf}>" quality=high  widht=982 heigth=100 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</
object>     
        
        <
div id="xo-banner-ad"><{$xoops_banner|smarty:nodefaults}></div>
        <!-- include 
du bloc Utilisateur dans le header -->
        <{
includeq file="$theme_name/userbar.html"}>
        <!-- 
fin de l'include du bloc Utilisateur dans le header -->
    </div>
<{else}>

    <div id="xo-banner"><!-- avec affichage de la bannière désactivé -->
    
   <!-- URL'
s used in the movie-->
<
a href="<{$xoops_url}>/index.php"></a> <a href="<{$xoops_url}>/forum/index.php"></a> <a href="<{$xoops_url}>/modules/MadGames/"></a> <a href="<{$xoops_url}>/search.php"></a> <a href="<{$xoops_url}>/userinfo.php?uid=1"></a> <!-- text used in the movie-->
<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 
width=982 height=100>
 <
param name=movie value="<{xoImgUrl /asmael_site.swf}>"> <param name=""=quality value=high><embed src="<{xoImgUrl /asmael_site.swf}>" quality=high  widht=982 heigth=100 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</
object>    
        <!-- include 
du bloc Utilisateur dans le header -->
        <{
includeq file="$theme_name/userbar.html"}>
        <!-- 
fin de l'include du bloc Utilisateur dans le header -->
    </div>
<{/if}>
<!-- menu horizontal du header -->
        <{includeq file="$theme_name/globalnav.html"}>
<!-- fin du menu horizontal du header -->

<!-- Ne pas modifier la partie ci-dessous, c'
est supposé être l'architecture standard que chacun doit utiliser -->            
    <div id="xo-canvas-content">
        <{if $xoBlocks.canvas_top}>
        <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_top
            zoneClass='' zoneId='
xo-canvas-header'
        }>
        <{/if}>
        <table id="xo-canvas-columns" cellspacing="0">
        <tr>
            <{if $xoBlocks.canvas_left}>
            <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_left
                zoneClass='
xo-canvas-column' zoneId='xo-canvas-leftcolumn' zoneTag='td'
            }>
            <{/if}>
            <td id="xo-page">
                <{if $xoBlocks.page_topleft or $xoBlocks.page_topcenter or $xoBlocks.page_topright}>
                <div class="xo-blockszone xo-<{$theme_top_order}>pageblocks" id="xo-page-topblocks">
                    <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:0:1}>
                    <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:1:1}>
                    <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:2:1}>
                </div>
                <{/if}>
                <{if $xoops_contents}><div id="xo-content"><{$xoops_contents}></div><{/if}>
                <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomcenter or $xoBlocks.page_bottomright}>
                <div class="xo-blockszone xo-<{$theme_bottom_order}>pageblocks" id="xo-page-bottomblocks">
                    <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:0:1}>
                    <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:1:1}>
                    <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:2:1}>
                </div>
                <{/if}>
            </td>
            <{if $xoBlocks.canvas_right}>
            <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_right
                zoneClass='
xo-canvas-column' zoneId='xo-canvas-rightcolumn' zoneTag='td'
            }>
            <{/if}>
        </tr>
        </table>
        <{if $xoBlocks.canvas_bottom}>
        <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_bottom
            zoneClass='' zoneId='
xo-canvas-footer'
        }>
        <{/if}>
    </div>
    <!--{xo-logger-output}-->
    <div id="xo-footer">
        <{$xoops_footer}>    
    </div>
</div>
</body>
</html>


Fichier style.css :
@import url(forms.css);
@
import url(blocks.css);
@
import url(content.css);


htmlbody {
    
margin:                            0px;
    
padding:                            0px 10px;
    
font-size:                        10pt;
    
font-family:                    "Lucida Grande"Verdanasans-serif;
    
background-color:             #97B1FF;
    
color:                            #fff;
}
table width:                     100%;}
table td {
    
padding:                         0;
    
border-width:                     0;
    
vertical-align:                 top;
}
#xo-canvas {
    
margin:                            0px 0px 0px;
    
color:                            #B0C0FF;
    
background-color:             #fff;
}
body.theme-dialog #xo-canvas {
    
margin:                            0px 6px;
}

/* ---------- Bannières ---------- */
#xo-banner {
    
color:                            #B0C0FF;
    
clear:                            both;
    
/* Use relative pos to ensure the banner ad img/flash is relative to the header */
    
position:                        relative;
    
z-index:                            100;
    
width:                            100%;
    
height:                            100px;
    
background-color:                #97B1FF;
}
#xo-banner object {}

#xo-banner.commercial {
    
height:                            117px;
}
body.theme-dialog #xo-banner {
    
padding-top:                    6px;
    
padding-left:                    10px;
    
height:                            48px;
}
/* Keep the ad img centered by using auto-margins and centeredcontainer/leftalignedchild on MSIE */
#xo-banner-ad {
    
position:                        absolute;
    
top:                                10px;
    
right:                            16px;
}
#xo-banner-ad object, #xo-banner-ad img {
    
display:                            block;
}

/*---------------------- Nom du site dans le header ----------------------------*/
#xo-site-title {
    
color:                            #FFFFFF;
    
background:                     inherit;
}
#xo-site-title .commercial a:hover {
    
color:                            #FFFFFF;
    
background-color:             inherit;
}
#xo-site-title h1 {
    
padding:                         10px 0 0 15px;
    
margin:                             0px 50px;
    
border-bottom-width:            1px;
    
border-bottom-style:         solid;
    
border-bottom-color:         #D2D2D2;
    
text-decoration:                 none;
}
#xo-site-title.commercial {
    
text-decoration:                 none;
    
border-bottom-width:         1px;
    
border-bottom-style:         solid;
    
border-bottom-color:         #D2D2D2;
    
font-size:                         2.2em;
    
font-weight:                     bold;
    
padding:                         10px 0 0 0px;
    
margin:                             0px 10px;
    
font-family:                     "Lucida Grande","Trebuchet MS"Verdanasans-serif;
 }
/*----------------------- titre du slogan du site dans le header ------------------------*/
#xo-site-slogan {
    
color:                             #FFF;
    
font-style:                     italic;
    
padding-left:                     60px;
    
background:                     inherit;
}

/*------------------------ Affichage du logo ----------------------------*/
#xo-main-logo {
    
color:                            #B0C0FF;
    
padding-left:                     10px;
    
background:                     inherit;
    }

/*-------- Affichage des champs de saisie dans le header-----------*/
#xo-banner form {
    
margin:                            0px;
    
display:                            inline;
}
#xo-banner input {
    
color:                            #B0C0FF;
    
width:                            8em;
    
background-color:                #E2E2E2;
    
margin:                            0px 0px 0px 2px;
}

/*============== Styles pour l'include userbar.html =================*/
#xo-userbar {
    /*color:                            #B0C0FF;*/
    
color :                             #0000A6;
    
position:                        absolute;
    
/*bottom:                            1px;*/
    
bottom: -22px;
    
right:                            1em;
    
text-align:                        right;
    
background:                     inherit;
}
#xo-userbar form {
    
display:                            inline;
    
padding:                            0px;
}
#xo-userbar button {
    
margin0px -3px;
    
border:                            0px none;
    
padding:                            0px;
    
background:                        transparent none;
}
#xo-userbar button img {
    
width:                             22px;
    
height:                             22px;
 }
#xo-userbar img {
    
width:                             22px;
    
height:                             22px;
}
#xo-userbar input {
    
color:                            #0000A6;
    
background-color:             #B0C0FF;
}

#xo-userbar a {
    
text-decoration:                none;
    
background-color:             inherit;
    
color:                             #0000A6;
}
#xo-uname {
    /*color:                            #B0C0FF;*/
    
color :                             #0000A6;
    
font-size:                        1.1em;
    
font-weight:                    bold;
    
background:                     inherit;
}

/*============= Style pour l'include globalnav.html ================*/
#xo-globalnav {
    
color:                            #B0C0FF;
    
margin:                            0px;
    
background-color:                #FFCC00;
    
padding:                            2px 45px 0px;
    
min-height:                        20px;
    
font-size:                        1.1em;
    
font-weight:                     bold;
    list-
style-type:                none;
}
html #xo-globalnav { height: 20px; }

#xo-globalnav .x2-label {
    
display:                            none;
}
#xo-globalnav li {
    
font-size:                         .9em;
    
display:                            inline;
    
margin:                            0px;
    
padding-left:                    .5em;
    
padding-right:                    .5em;
}
#xo-globalnav a {
    
color:                            #0000A6;
    
text-decoration:                none;
    
background:                     inherit;
}
#xo-globalnav a:hover {
    
color:                            #B0C0FF;
    
text-decoration:                none;
    
background:                     inherit;
}

/*=============== Affichage Pied de page - Footer  ====================*/
#xo-footer {
    
text-align:                        center;
    
padding:                            .5em;
    
font-size:                        .8em;
    
color:                            #ccc;
    
margin:                            0px;
    
background-color:                 #B0C0FF;
}
body.theme-dialog #xo-footer { padding: .2em .5em; font-size:    .8em;}
#xo-footer a {
    
color:                             #ccc;
    
text-decoration:                 none;
    
background:                     inherit;
}
#xo-footer a:hover {
    
color:                             #fff;
    
text-decoration:                 underline;
    
background:                     inherit;
}
/*================= Zone de contenu ===================*/
#xo-canvas-content {
    
color:                            #0000A6;
    
background-color:             #B0C0FF;
    
padding:                            12px;
}
#xo-page {
    
color:                            #0000A6;
    
background-color:                #fff;
    
border-width:                    1px 2px 2px 1px;
    
border-style:                     solid;
    
border-color:                    #b6b7b8;
}
#xo-canvas-rightcolumn {padding: .5em;}
#xo-content {
    
clear:                            both;
    
padding:                            .5em;
    
margin:                            0px;
    
color:                            #0000A6;
    
background-color:                #fff;
}

#xo-logger-output {font-size:    .8em;}

/*========== Menu principal dans bloc =============*/
#mainmenu a {
    
display:                         block;
    
margin:                             0;
    
padding:                         1px;
    
font-weight:                     500;
}
#mainmenu a:hover {
    
text-decoration:                none !important;
}
#mainmenu a.menuTop, #mainmenu a.menuMain {padding-left: 8px; }
#mainmenu a.menuSub {
    
color:                            #fff;
    
padding-left:                     20px;
    
font-size:                        .8em;
    
font-style:                     italic;
    
background-color:                inherit;
}
#mainmenu a.menuSub:hover {
    
color:                            #B0C0FF005FBD;
    
background-color:             inherit;
}

/*============ Menu utilisateur dans bloc ============*/
#usermenu a {
    
display:                         block;
    
margin:                             0;
    
padding:                         2px;
    
color:                            #B0C0FF005FBD;
    
font-weight:                     normal;
    
font-size:                         0.8em;
    
line-height:                     1em;
    
background-color:             inherit;
}
#usermenu a:hover {
    
color:                            #B0C0FF;
    
padding-left:                     3em;
    
font-style:                     italic;
    
text-decoration:                none !important;
    
border-left:                    1px solid #B0C0FF;
    
border-bottom:                    1px solid #B0C0FF;
    
background-color:             inherit;
}
#usermenu a.menuTop {}
#usermenu a.highlight {
    
background-color:             #B0C0FF;
    
color:                             #ccc;
}

/*=========== Règles nécessaires pour les anciens templates des modules ============*/
#usermenu a, #mainmenu a {    display: block;}
.xo-canvas-column .menuSub padding-left1em;}


par contre j'ai retiré le nom et le slogan, et je ne me suis pas occupé des css pour l'affichage d'une bannière publicitaire

A +

ps : normalement celà devrait convenir à pas mal de résolution

Posté le : 15/01/2007 21:16

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: Dimension bannière flash.....
Guest_
Vous êtes réellement fantastique tous les deux car cela a fonctionné, je vous adore!
Si jamais vous avez besoin un jour d'une bannière en flash avec un menu d'intégré comme celle que je me suis faites, demandez moi je vous la ferais, pas de problèmes! Vous m'avez vraiment aidé et dépanné, je vous en remercie du fond du coeur!

:tucartonnes: guitar champagne

Posté le : 16/01/2007 09:47
Partager Twitter Partagez cette article sur GG+
Re: Dimension bannière flash.....
Régulier
Inscrit: 29/05/2006 11:50
De ROUEN
Messages: 285
tout d'abord merci à kriss pour la solution flash,

je voulais seulement dire que mon swf ne prenait pas les bonnes dimensions parcequ'il y a une petite erreur dans le code de la balise "objet" dans "embed src="

c'est écrit widht=982 au lieu de width=982,

au final j'ai écrit comme ça : widht="982"

encore merci pour mon header swf qui s'affiche maintenant dans morpho !

Posté le : 19/06/2007 02:27
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
« 1 (2)



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

44 Personne(s) en ligne (36 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 44 | Plus ...