Une banniere qui change selon une date precis

Valnea -  
djflexlive Messages postés 577 Statut Membre -
Bonjour,
J'aimerais, pour un blog que j'ai grandement modifié, une banniere qui change automatiquement selon une date precise ou un mois precis (meme si c'est tout les mois je saurais de toute facon me debrouillé.
Quelqun pourrait-il donc m'aider a trouver un code qui me permette de construire cette banniere a savoir que je dois l'inclure dans un blog Canalblog que je modifie au travers du mode avancé.
Je vous remercie d'avance...
Configuration: Windows XP
Internet Explorer 7.0

8 réponses

  1. Valnea
     
    Merci pour le code... je vais voir si je peux l'appliquer dans les fiches de codes de canalblog. j'aimerais cependant savoir ou le placer.
    Et si certains ont d'autres code je les recevrais avec joie eux aussi.

    Merci beaucoup
    0
  2. Valnea
     
    he bien ca m'affiche toutes mes bannieres dans le fond de mon site... donc j'aimerais savoir s'il y a une autre solution et ou je dois placer le code (dans canalblog)
    0
  3. Valnea
     
    la voila:

    <!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">
    <head><LINK REL="SHORTCUT ICON" href="http://storage.canalblog.com/25/17/463907/27033547.ico">
    <title><$BlogPageTitle$></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<$BlogEncoding$>" />
    <meta http-equiv="content-language" content="<$BlogLanguage$>" />
    <meta name="Description" content="<$BlogDescription$>" />
    <meta name="Keywords" content="<$BlogKeywords$>" />
    <meta name="generator" content="CanalBlog - https://www.canalblog.com/" />
    <BlogSiteFeed>
    <link rel="alternate" type="application/rss+xml" title="RSS" href="<$BlogSiteFeedURL$>" />
    </BlogSiteFeed>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$BlogEditURIURL$>" />
    <link rel="stylesheet" href="<$BlogCSSURL$>" type="text/css" /> <script language="JavaScript">
    <!--
    var txt=" Les moutons de Nice Black Sheep vous souhaitent la bienvenue ... - ";
    var espera=85;
    var refresco=null;
    function rotulo_title() {
    document.title=txt;
    txt=txt.substring(1,txt.length)+txt.charAt(0);
    refresco=setTimeout("rotulo_title()",espera);}
    rotulo_title();
    // -->
    </script>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Disable
    function disableselect(e){
    return false
    }

    function reEnable(){
    return true
    }

    //if IE4+
    document.onselectstart=new Function ("return false")
    document.oncontextmenu=new Function ("return false")
    //if NS6
    if (window.sidebar){
    document.onmousedown=disableselect
    document.onclick=reEnable
    }
    //-->
    </script>
    <script src="http://storage.canalblog.com/04/62/151832/9837650.js" type="text/javascript" ></script>
    <script type="text/javascript">
    <!--
    function TableauGif() {
    var list = new Array();
    list[list.length] = new Array("Ange","http://storage.canalblog.com/55/55/459119/29001685.gif");
    list[list.length] = new Array("Applause","http://storage.canalblog.com/13/74/459119/29001705.gif");
    list[list.length] = new Array("|-(","http://storage.canalblog.com/86/05/459119/29001856.gif");
    list[list.length] = new Array("Chut","http://storage.canalblog.com/88/90/459119/29001869.gif");
    list[list.length] = new Array(";)","http://storage.canalblog.com/79/45/459119/29001740.gif");
    list[list.length] = new Array(":)","http://storage.canalblog.com/07/31/459119/29001752.gif");
    list[list.length] = new Array("Cool","http://storage.canalblog.com/28/26/459119/29001902.gif");
    list[list.length] = new Array("Demon","http://storage.canalblog.com/30/66/459119/29001917.gif");
    list[list.length] = new Array("Dodo","http://storage.canalblog.com/66/51/459119/29001926.gif");
    list[list.length] = new Array("Idée","http://storage.canalblog.com/42/86/459119/29001929.gif");
    list[list.length] = new Array("Lol","http://storage.canalblog.com/18/81/459119/29002011.gif");
    list[list.length] = new Array("Love","http://storage.canalblog.com/54/51/459119/29002022.gif");
    list[list.length] = new Array("Niark","http://storage.canalblog.com/11/85/459119/29002029.gif");
    list[list.length] = new Array("Non","http://storage.canalblog.com/36/21/459119/29002120.gif");
    list[list.length] = new Array("Nul","http://storage.canalblog.com/18/30/459119/29002050.gif");
    list[list.length] = new Array("Oui","http://storage.canalblog.com/34/22/459119/29002056.gif");
    list[list.length] = new Array(":(","http://storage.canalblog.com/71/00/459119/29002170.gif");
    list[list.length] = new Array(";(","http://storage.canalblog.com/33/50/459119/29002187.gif");
    list[list.length] = new Array("???","http://storage.canalblog.com/37/27/459119/29002191.gif");
    list[list.length] = new Array(":$","http://storage.canalblog.com/89/86/459119/29002197.gif");
    list[list.length] = new Array(":o","http://storage.canalblog.com/18/65/459119/29002209.gif");
    list[list.length] = new Array("Tape","http://storage.canalblog.com/20/62/459119/29002228.gif");
    return list;
    }

    // -->
    </script></head>

    <body onselectstart="return false" oncontextmenu="return false" ondragstart="return false" onMouseOver="window.status='..message perso .. '; return true;" >

    <div id="container"><div id="topbar-logo"><div class="logolink"><a href="<$BlogURL$>"></a></div></div><div id="topbar"> <h1><a href="<$BlogURL$>"><$BlogTitle$></a></h1> <h2><$BlogDescription$></h2> </div> <table border=0 width="0" cellspacing=0 cellpadding=0 >
    <td width="0%" align="center" valign="middle">
    <a href=" http://aniceblacksheep.canalblog.com/ " title=" Sommaire "><img onmouseout="this.src='http://storage.canalblog.com/57/36/459119/29959403.png '" onmouseover="this.src='http://storage.canalblog.com/20/43/459119/29959440.png'" src="http://storage.canalblog.com/57/36/459119/29959403.png "BORDER="0"/></a></td>
    <td width="0%" align="center" valign="middle">
    <a href=" http://aniceblacksheep.canalblog.com/archives/2008/08/31/10409421.html " title=" Liens vers mes sites favoris "><img onmouseout="this.src='http://storage.canalblog.com/91/72/459119/29959529.png '" onmouseover="this.src='http://storage.canalblog.com/63/40/459119/29959541.png '" src="http://storage.canalblog.com/91/72/459119/29959529.png "BORDER="0"/></a></td>
    <td width="0%" align="center" valign="middle">
    <a href=" http://aniceblacksheep.canalblog.com/archives/2008/09/07/10499500.html " title=" Mes fanarts "> <img onmouseout="this.src=' http://storage.canalblog.com/95/64/459119/29960162.png '" onmouseover="this.src='http://storage.canalblog.com/76/04/459119/29960175.png '" src="http://storage.canalblog.com/95/64/459119/29960162.png "BORDER="0"/></a></td>
    <td width="0%" align="center" valign="middle">
    <a href=" http://aniceblacksheep.canalblog.com/albums/mes_dessins/index.html " title=" Mes dessins"><img onmouseout="this.src='http://storage.canalblog.com/28/58/459119/30220543.png '" onmouseover="this.src='http://storage.canalblog.com/88/65/459119/30220558.png '" src="http://storage.canalblog.com/28/58/459119/30220543.png "BORDER="0"/></a></td>
    <td width="0%" align="center" valign="middle">
    <a href=" http://www.comboutique.com/shop/homeboutique-29532.html " title=" Ma boutique (T-Shit, Cadeaux...ect)"> <img onmouseout="this.src='http://storage.canalblog.com/37/92/459119/29960221.png '" onmouseover="this.src='http://storage.canalblog.com/77/27/459119/29969854.gif'" src="http://storage.canalblog.com/37/92/459119/29960221.png "BORDER="0"/></a></td>
    <td width="0%" align="center" valign="middle">
    <a href=" https://www.canalblog.com/ " title="Me contacter "> <img onmouseout="this.src=' http://storage.canalblog.com/55/23/459119/29960295.png '" onmouseover="this.src=' http://storage.canalblog.com/85/04/459119/29960311.png'" src=" http://storage.canalblog.com/55/23/459119/29960295.png"BORDER="0"/></a></td>
    <td width="0%" align="center" valign="middle"> <A HREF="javascript:window.external.AddFavorite('http://aniceblacksheep.canalblog.com',' BD Blog: Nice Black Sheep')"><B><img onmouseout="this.src=' http://storage.canalblog.com/03/78/459119/29961408.png'" onmouseover="this.src=' http://storage.canalblog.com/47/55/459119/29968179.png'" src=" http://storage.canalblog.com/03/78/459119/29961408.png"BORDER="0"/></B></A>
    </tr>
    </table></br></br></br></br><div id="leftbar"> <div class="navlinks">

    <CBOwner>
    <BlogOwnerPictureURL>
    <div class="image"><a href="<$BlogOwnerProfileURL$>"><img src="<$BlogOwnerPictureURL$>" border="0" /></a></div>
    </BlogOwnerPictureURL>
    </CBOwner><div class="item">
    </div> <font face="Arial" color="#FF0000" size="2"> <font face="Arial" color="#FF0000" size="2"> <script type="text/javascript">var dominocounter_a = "valnea";</script>
    <script type="text/javascript" src="http://www.dominocounter.net/webcounter.js"></script>
    </font><br>
    <br><div class="title">Newsletter</div>
    <form name="newsletter" id="newsletter" action="<$CBNewsletterSubmitURL$>" method="post" target="_blank">
    <input name="email" id="email" value="email" type="text" onfocus="this.select();" />
    <input name="submit" value="M'abonner" type="submit" />
    </form> <CBCalendar><$BlogCalendar$></CBCalendar></ul> <br></td>

    <BloggerFriendLinks><BlogFriendLinkHeader>
    <div class="title"><p><img height="66" alt="blog_ador_" src="http://storage.canalblog.com/96/66/463907/27035909.jpg" width="170" border="0" /></p><$BlogFriendLinkCategoryName$></div>
    <ul>
    </BlogFriendLinkHeader>
    <li><a href="<$BlogFriendLinkURL$>"><$BlogFriendLinkName$></a></li>
    <BlogFriendLinkFooter>
    </ul>
    </BlogFriendLinkFooter> </BloggerFriendLinks>

    </ul> <div class="title"><img alt="navigation" src="http://storage.canalblog.com/59/52/463907/27034000.jpg" width="170" height="66" border="0" /></div><$BlogQuickLinks$><CBFeeds>
    <BlogFeedHeader><div class="title"><a href="<$BlogFeedURL$>"><$BlogFeedTitle$></a></div></BlogFeedHeader>
    <$BlogFeedHeadLines$>
    </CBFeeds><BlogSiteFeed><table><tr><td><a rel='nofollow' href="http://www.franceastro.com/referencement-gratuit/"><img src="https://www.franceastro.com/images/F.gif" width="90" height="15" border="0"></a></td></tr><tr><td><marquee style="border: 0; font-family: Arial; font-size: 9px; font-weight: normal; background-color: 655F79; width: 90px; height: 10px;" scrollamount="1" scrolldelay="10"><nobr><font color=000000><b>http://aniceblacksheep.canalblog.com La BD de Valnea-A Nice Black Sheep</b> <B><a href="http://annuaire-inverse.blogspot.com">Annuaire inversé</a></B> Blog BD</nobr></font></marquee></td></tr></table>
    <a href="https://www.annuaire-free.fr/"><img src="https://www.annuaire-free.fr" alt="Annuaire Free" width="80" height="15" border="0" /></a>
    <div class="item"><a href="<$BlogSiteFeedURL$>" title="S'abonner à ce blog (messages)"><img height="85" alt="flux_messages" src="http://storage.canalblog.com/29/68/459119/28848416.gif" width="81" border="0" /></a></div>
    <div class="item"><a href="<$BlogCommentsFeedURL$>" title="S'abonner à ce blog (commentaires)"><img height="85" alt="flux_commentaire" src="http://storage.canalblog.com/11/85/459119/28848385.gif" width="80" border="0" />
    </a></div>
    </BlogSiteFeed>

    </div></div><div id="content"><div class="blogbody">

    <Blogger> <BlogDateHeader>
    <h2><$BlogDateHeaderDate$></h2>
    </BlogDateHeader><a name="<$BlogItemNumber$>"></a> <BlogItemTitle>
    <h3><$BlogItemTitle$></h3>
    </BlogItemTitle>
    <p><$BlogItemBody$></p>
    <script type="text/javascript">
    <!--
    SwapCodeEmoticon("content","blogbody")
    SwapCodeStyle("content","navlinks");
    // -->
    </script>

    <div class="itemfooter">Planche dessinée et publiée par <$BlogItemAuthorNickname$> à <$BlogItemDateTime$> <BlogItemCategories> - <a href="<$BlogItemCategoryLink$>" title="Autres messages dans cette catégorie"><$BlogItemCategoryName$></a> </BlogItemCategories> <BlogItemComments> - <a href="<$BlogItemCommentsURL$>" title="Commentez ce message">Commentaires [<$BlogItemCommentsCount$>]</a> </BlogItemComments> <BlogItemTrackBacks> - <a href="<$BlogItemTrackBacksURL$>" title="Rétroliens">Rétroliens [<$BlogItemTrackBacksCount$>]</a> </BlogItemTrackBacks> - Permalien [<a href="<$BlogItemURL$>" title="Lien permanent vers ce message">#</a>]</div>
    </Blogger>

    <$CBControlNavLinks$></div></div><div class="clear"> </div></div></body></html>
    0
  4. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  5. Nico_ Messages postés 1220 Date d'inscription   Statut Membre Dernière intervention   189
     
    bonjour,
    voici un code php:
    <?php 
    //début condition d'affichage des message ou non
    //mktime ( HEURES, MINUTES, SECONDES, MOIS, JOUR, ANNEE )
    if ( time() >= mktime ( 0, 0, 0, 9, 6, 2008 ) && time() <= mktime ( 23, 59, 0, 9, 6, 2008 )) 
    {
    echo 'CE QUE JE VEUX AFFICEHR'; // txt message
    }
    //condition 2
    else 
    if ( time() >= mktime ( 13, 10, 0, 8, 22, 2008 ) && time() <= mktime ( 21, 00, 0, 8, 22, 2008 ))
    {
    echo 'CE QUE JE VEUX AFFICEHR'; // txt message
    }
    //condition 3
    else 
    if ( time() >= mktime ( 14, 10, 0, 8, 22, 2008 ) && time() <= mktime ( 21, 00, 0, 8, 22, 2008 ))
    {
    echo 'CE QUE JE VEUX AFFICEHR'; // txt message
    }
    //pour les autres conditions
    ?>

    le code a rajouter pour les autres conditions:
    else 
    
    if ( time() >= mktime ( 16, 10, 0, 8, 22, 2008 ) && time() <= mktime ( 21, 00, 0, 8, 22, 2008 ))
    {
    echo 'CE QUE JE VEUX AFFICEHR'; // txt message
    }
    Bonne journée
    -1
  6. djflexlive Messages postés 577 Statut Membre 95
     
    Avant de faire un up, ca donne quoi le script php donné ?
    -1
  7. djflexlive Messages postés 577 Statut Membre 95
     
    Fais voir le code entier de ta page ou cette bannière doit tourner ?
    -1
  8. djflexlive Messages postés 577 Statut Membre 95
     
    Désolé, pour ma part, je sèches ...
    -1