<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: daoro</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Hacks CSS pour min-width, max-width, min-height, max-height pour IE</title>
        <link>http://www.posteet.com/view/560</link>
        <description>
        <![CDATA[<pre>// max-width
// Ce code dit que si la largeur du document est supérieure à 1000px, alors il sera forcé à 1000px, sinon il restera à &quot;auto&quot;. Si javascript est désactivé alors la largeur sera de 770px;
&lt;!--[if lt IE 7]&gt;
&lt;style type=&quot;text/css&quot;&gt;
div {
width:770px;
width:expression(document.body.clientWidth &gt;= 1000? &quot;1000px&quot;: &quot;auto&quot; );
}
&lt;/style&gt;
&lt;![endif]--&gt;

// min-width
// Le code dit que si la largeur du document est inférieure à 600px, alors elle est forcée à 600px (il y a donc une apparition des barres d'ascenseur horizontales au seuil de 600px). Si JavaScript n'est pas actif, alors la largeur est fixée à 770px.
&lt;!--[if lt IE 7]&gt;
&lt;style type=&quot;text/css&quot;&gt;
div {
width:770px;
width:expression(document.body.clientWidth &lt;= 600? &quot;600px&quot;: &quot;auto&quot; );
}
&lt;/style&gt;
&lt;![endif]--&gt;

// min-width et max-width en meme temps
&lt;!--[if lt IE 7]&gt;
&lt;style type=&quot;text/css&quot;&gt;
div {
width:770px;
width: expression(document.body.clientWidth &lt;= 600? &quot;600px&quot; : document.body.clientWidth &gt;= 1000? &quot;1000px&quot; : &quot;auto&quot;);
}
&lt;/style&gt;
&lt;![endif]--&gt;

// max-height
// Le code dit que si la largeur du document est inférieure à 600px, alors elle est forcée à 600px (il y'a donc une apparition des barres d'ascenseur horizontales au seuil de 600px).
&lt;!--[if lt IE 7]&gt;
&lt;style type=&quot;text/css&quot;&gt;
div {
height: 500px;
overflow:hidden;
height:expression(
this.scrollHeight &gt; 800? &quot;800px&quot; : &quot;auto&quot; );
}
&lt;/style&gt;
&lt;![endif]--&gt;</pre> <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/hacks">[hacks]</a>  <a href="http://www.posteet.com/tags/ie">[ie]</a>  <a href="http://www.posteet.com/tags/max-height">[max-height]</a>  <a href="http://www.posteet.com/tags/max-width">[max-width]</a>  <a href="http://www.posteet.com/tags/min-height">[min-height]</a>  <a href="http://www.posteet.com/tags/min-width">[min-width]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sun, 09 Dec 2007 19:35:42 +0000</pubDate>

            <category>css</category>
            <category>hacks</category>
            <category>ie</category>
            <category>max-height</category>
            <category>max-width</category>
            <category>min-height</category>
            <category>min-width</category>
    
    </item>

  
    <item>
        <title>Transparence IE png provenant de feuille de style CSS</title>
        <link>http://www.posteet.com/view/559</link>
        <description>
        <![CDATA[<pre>/* A modifier dans la page CSS*/
/* A la place de :*/
background-image: url(&quot;image.png&quot;);

/* remplacer par :*/
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='image.png');
background-image: none;

/* !ATTENTION! Probleme sur les liens, pour resoudre ajouter: */

a, input
{
position: relative;
z-index: 1;
}</pre> <a href="http://www.posteet.com/tags/balise">[balise]</a>  <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/IE">[IE]</a>  <a href="http://www.posteet.com/tags/internet explorer">[internet explorer]</a>  <a href="http://www.posteet.com/tags/png">[png]</a>  <a href="http://www.posteet.com/tags/transparence">[transparence]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sun, 09 Dec 2007 19:34:52 +0000</pubDate>

            <category>balise</category>
            <category>css</category>
            <category>IE</category>
            <category>internet explorer</category>
            <category>png</category>
            <category>transparence</category>
    
    </item>

  
    <item>
        <title>Afficher en clair un mot de passe caché par des étoiles dans Firefox</title>
        <link>http://www.posteet.com/view/558</link>
        <description>
        <![CDATA[<pre>javascript:(function(){var s,F,j,f,i; s = &quot;&quot;; F = document.forms; for(j=0; j&lt;F.length; ++j) { f = F[j]; for (i=0; i&lt;f.length; ++i) { if (f[i].type.toLowerCase() == &quot;password&quot;) s += f[i].value + &quot;\n&quot;; } } if (s) alert(&quot;Mots de passe dans les formulaires de cette page :\n\n&quot; + s); else alert(&quot;Il n'y a pas de mots de passe dans les formulaires de cette page.&quot;);})();</pre> <a href="http://www.posteet.com/tags/Firefox">[Firefox]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/js">[js]</a>  <a href="http://www.posteet.com/tags/mot de passe">[mot de passe]</a>  <a href="http://www.posteet.com/tags/password">[password]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sun, 09 Dec 2007 19:30:04 +0000</pubDate>

            <category>Firefox</category>
            <category>javascript</category>
            <category>js</category>
            <category>mot de passe</category>
            <category>password</category>
    
    </item>

  
    <item>
        <title>Backup MySQL</title>
        <link>http://www.posteet.com/view/416</link>
        <description>
        <![CDATA[<pre>#
#Fichier de configuration (backup-mysql.conf)
#

###########################################################
# Fichier de configuration pour le script backup-mysql.sh #
###########################################################


#Serveur à backuper
SERVER='localhost'

#Utilisateur MySQL
DBUSER='login'

#Mot de passe MySQL
DBPASS='mdp'

#On specifie les bases a backuper (&quot;all&quot; pour tout backuper)
DB='all'

#Date format
DATE_FORMAT='+%d-%m-%Y'

#Repertoire de backup
BACKUP_DIR='/var/backup/mysql/'

#Repertoire du jour
TODAY_DIR=$(date $DATE_FORMAT)

#Nomre de backups a conserver (en jours)
HISTORY='7'

#Type de compression (bzip2/gzip)
COMP_TYPE='bzip2'

#Creer un repertoire pour chaque base de donnees (yes/no)
SEP_DB='yes'

#Separer les tables en differents fichiers (yes/no)
SEP_TABLE='yes'

#Options pour le dump
#Utiliser 'man mysqldump' ou aller sur la configuration pour plus de details
OPTS='--default-character-set=latin1 --skip-extended-insert'

#Fichier de logs
LOG_FILE='/tmp/backup.log'

#Adresse mail pour les logs d'execution du script
MAIL_ADDR='admin@domain.tld'

#
#Script de backup MySQL 
#

#!/bin/bash 

CONF_PATH='/etc'
CONF_FILE='backup-mysql.conf'

if [ ! -d &quot;$CONF_PATH&quot; ] || [ ! -f &quot;$CONF_PATH/$CONF_FILE&quot; ]; then
        echo &quot;File : $CONF_PATH/$CONF_FILE missing !&quot;
        exit 1;
else
        . &quot;$CONF_PATH/$CONF_FILE&quot;
fi

send-mail () {
        cat &quot;$LOG_FILE&quot; | mail -s &quot;Rapport d'execution du script $(basename $0) sur $HOSTNAME&quot; $MAIL_ADDR
        rm &quot;$LOG_FILE&quot;
}

check_dirs () {
        #On verifie si le repertoire de backup existe
        if [ ! -d &quot;$BACKUP_DIR&quot; ]; then
                echo &quot;$BACKUP_DIR n'existe pas.&quot; &gt;&gt; &quot;$LOG_FILE&quot;
                send-mail
                exit 1;
        fi
        #On verifie si le repertoire du jour existe
        if [ ! -d &quot;$BACKUP_DIR/$TODAY_DIR&quot; ]; then
                mkdir &quot;$BACKUP_DIR/$TODAY_DIR&quot;
        fi
        #On supprime le backup le plus ancien
        TO_DELETE=$(date --date &quot;$HISTORY days ago&quot; $DATE_FORMAT)
        if [ -d &quot;$BACKUP_DIR/$TO_DELETE&quot; ]; then
                rm -r &quot;$BACKUP_DIR/$TO_DELETE&quot;
        fi
}

backup () {
        if [ -z &quot;$1&quot; ]; then
                echo 'Liste des bases non transmise' &gt;&gt; $LOG_FILE
                send-mail
                exit 1;
        else
                if [ &quot;$SEP_DB&quot; == 'yes' ]; then
                        for DB_TO_BACKUP in $1; do
                                #On cree le repertoire pour separer les bases
                                mkdir &quot;$BACKUP_DIR/$TODAY_DIR/$DB_TO_BACKUP&quot;
                                if [ &quot;$SEP_TABLE&quot; == 'yes' ]; then
                                        for TABLE_TO_BACKUP in $(mysql -h$SERVER -u$DBUSER -p$DBPASS --skip-column-names $DB_TO_BACKUP -e &quot;show tables&quot;); do
                                                mysqldump -h&quot;$SERVER&quot; -u&quot;$DBUSER&quot; -p&quot;$DBPASS&quot; $OPTS &quot;$DB_TO_BACKUP&quot; &quot;$TABLE_TO_BACKUP&quot; | &quot;$COMP_TYPE&quot; &gt; &quot;$BACKUP_DIR/$TODAY_DIR/$DB_TO_BACKUP/$DB_TO_BACKUP-$TABLE_TO_BACKUP-$TODAY_DIR.$FILE_EXT&quot;
                                        done
                                else 
                                        mysqldump -h&quot;$SERVER&quot; -u&quot;$DBUSER&quot; -p&quot;$DBPASS&quot; $OPTS &quot;$DB_TO_BACKUP&quot; &quot;$TABLE_TO_BACKUP&quot; | &quot;$COMP_TYPE&quot; &gt; &quot;$BACKUP_DIR/$TODAY_DIR/$DB_TO_BACKUP/$DB_TO_BACKUP-$TODAY_DIR.$FILE_EXT&quot;
                                fi
                        done
                                
                else
                        if [ &quot;$SEP_TABLE&quot; == 'yes' ]; then
                                for DB_TO_BACKUP in $1; do
                                        for TABLE_TO_BACKUP in $(mysql -h$SERVER -u$DBUSER -p$DBPASS --skip-column-names $DB_TO_BACKUP -e &quot;show tables&quot;); do
                                        mysqldump -h&quot;$SERVER&quot; -u&quot;$DBUSER&quot; -p&quot;$DBPASS&quot; $OPTS &quot;$DB_TO_BACKUP&quot; &quot;$TABLE_TO_BACKUP&quot; | &quot;$COMP_TYPE&quot; &gt; &quot;$BACKUP_DIR/$TODAY_DIR/$DB_TO_BACKUP-$TABLE_TO_BACKUP-$TODAY_DIR.$FILE_EXT&quot;
                                        done
                                done
                        else
                                mysqldump -h&quot;$SERVER&quot; -u&quot;$DBUSER&quot; -p&quot;$DBPASS&quot; $OPTS --all-databases | &quot;$COMP_TYPE&quot; &gt; &quot;$BACKUP_DIR/$TODAY_DIR/$TODAY_DIR.$FILE_EXT&quot;
                        fi
                fi
        fi
}

# On cree le fichier de log
touch &quot;$LOG_FILE&quot;
# on verifie que les bases a backuper sont bien renseignees
if [ -z &quot;$DB&quot; ]; then
        echo 'variable $DB vide.' &gt;&gt; &quot;$LOG_FILE&quot;
        send-mail
        exit 1;
elif [ &quot;$DB&quot; == &quot;all&quot; ]; then
        DB_LIST=$(mysql -h$SERVER -u$DBUSER -p$DBPASS --skip-column-names -e &quot;show databases&quot; | xargs)
else
        DB_LIST=&quot;$DB&quot;
fi      
# On verifie que la compression est correcte
if [ &quot;$COMP_TYPE&quot; == 'bzip2' ]; then
        FILE_EXT='sql.bz2'
elif [ &quot;$COMP_TYPE&quot; == 'gzip' ]; then
        FILE_EXT='sql.gz'
else
        echo '$COMP_TYPE non spécifié.' &gt;&gt; &quot;$LOG_FILE&quot;
        send-mail
        exit 1;
fi

check_dirs
backup &quot;$DB_LIST&quot;

#On verifie si le fichier de logs existe et qu'il est vide
if [ -f &quot;$LOG_FILE&quot; ] &amp;&amp; [ &quot;$(cat $LOG_FILE | wc -l)&quot; -eq 0 ]; then
        #Si il est vide on efface
        rm &quot;$LOG_FILE&quot;
else
        #Sinon on envoie le rapport
        send-mail
fi</pre> <a href="http://www.posteet.com/tags/backup">[backup]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/mysql">[mysql]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Tue, 13 Nov 2007 18:30:54 +0000</pubDate>

            <category>backup</category>
            <category>bash</category>
            <category>linux</category>
            <category>mysql</category>
    
    </item>

  
    <item>
        <title>Fonction de mise en forme de texte pour utilisation dans une URL (Par exemple pour de l'URL Rewriting)</title>
        <link>http://www.posteet.com/view/235</link>
        <description>
        <![CDATA[<pre>function convert_for_uri($text) {
  // Définition du séparateur
  define(&quot;SEPARATOR&quot;, &quot;-&quot;);

  $tofind = &quot;àáâãäåòóôõöøèéêëçìíîïùúûüÿñ&quot;; // Lettre accentuées
  $replac = &quot;aaaaaaooooooeeeeciiiiuuuuyn&quot;; // Equivalant non accentué

  // Mise en minuscule + suppression des lettres accentuées par leur équivalant non accentué
  $text = strtr(strtolower($text),$tofind,$replac);

  // Remplacement de caractère non alphanumérique par un séparateur
  $text = ereg_replace(&quot;[^a-z0-9]&quot;, SEPARATOR, $text);

  // Suppression des doubles séparateurs
  while (strstr($text, SEPARATOR . SEPARATOR))
    $text = str_replace(SEPARATOR . SEPARATOR, SEPARATOR, $text);

  // Retour avec suppression d’un possible séparateur en fin de chaîne
  return(ereg_replace(SEPARATOR . &quot;$&quot;, &quot;&quot;, $text));
}</pre> <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/uri">[uri]</a>  <a href="http://www.posteet.com/tags/url rewriting">[url rewriting]</a>  <a href="http://www.posteet.com/tags/web">[web]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Mon, 05 Nov 2007 18:53:01 +0000</pubDate>

            <category>php</category>
            <category>uri</category>
            <category>url rewriting</category>
            <category>web</category>
    
    </item>

  
    <item>
        <title>Astuces Google</title>
        <link>http://www.posteet.com/view/234</link>
        <description>
        <![CDATA[<pre>info:exemple.com &lt;---&gt; Affiche des informations au sujet du site recherché
10 euros en dollars &lt;---&gt; Conversions monétaires
stocks:nom de l'entreprise &lt;---&gt; Donne des informations financières sur une entreprise
+les carottes &lt;---&gt; Force la prise en compte des mots communs
mot(s) site:exemple.com &lt;---&gt; Limite la recherche d'expressions à un seul site Web
group:thème.sous-thème &lt;---&gt; Permet de restreindre une recherche à un thème ou un sous-thème dans Google Groups
insubject:mot &lt;---&gt; Recense les articles de Google Groups dont le sujet contient le mot recherché
source: 20 minutes &lt;---&gt; Recense les articles de Google News dont la source est celle recherchée
filetype:pdf mot &lt;---&gt; Recense les fichiers du type choisi contenant l'expression recherchée (types de fichiers supportés : pdf, ps, doc, wri, ppt, xls, rtf)
inurl:mot &lt;---&gt; Recense les pages contenant l'expression dans l'URL et dans la page
allintext: expression &lt;---&gt; Recense les pages contenant l'expression dans le corps HTML de la page
intext:mot &lt;---&gt; Recense les pages contenant l'expression dans le corps HTML de la page et dans la page
inanchor:mot &lt;---&gt; Recense les pages contenant le mot recherché ou un lien affichant dans son texte le mot recherché
allinanchor: expression &lt;---&gt; Recense les pages contenant un lien affichant dans son texte l'expression recherchée
allinurl: mot &lt;---&gt; Recense les pages dont l'expression est comprise dans l'URL
allintitle: mot &lt;---&gt; Recense les pages dont l'expression est comprise dans le titre de la page
intitle:mot &lt;---&gt; Recense les pages dont l'expression est comprise dans le titre de la page et dans la page
related:exemple.com &lt;---&gt; Recense les pages que Google juge similaires à un site donné
movie:zorro &lt;---&gt; Recense les pages Web traitant du film recherché
site:exemple.com &lt;---&gt; Recense toutes les pages d'un même site répertoriées par Googlebot
link:exemple.com &lt;---&gt; Recense toutes les pages répertoriées par Google contenant un lien vers ce site
cache:exemple.com &lt;---&gt; Retourne la page mise en cache d'un site par Google au lieu de la page Web actualisée
1 + 2 – 3 * 4 / 5 &lt;---&gt; Retourne le résultat du calcul (fonctions supportées : pi, pi(), e, i, sin(), cos(), tan(), cotan(), ln(), log(), ^, sqr()...)
Attentat author:pasmoi &lt;---&gt; Retourne les articles de Google Groups dont l'auteur est celui recherché
mot1 OR mot2 OR mot3 &lt;---&gt; Retourne les pages contenant au moins un des mots
&quot;mot1 mot2 mot3&quot; &lt;---&gt; Retourne les pages contenant l'expression exacte
mot1 mot2 -mot3 &lt;---&gt; Retourne les pages ne comprenant pas les mots avec un tiret devant
mot1 mot2 mot3 &lt;---&gt; Retourne tous les mots présents dans le désordre
define:mot &lt;---&gt; Retourne une liste de définitions pour le mot recherché
http://www.google.com/language_tools &lt;---&gt; Outils multilingues
http://code.google.com &lt;---&gt; Recherche de codes de programmations
http://www.google.com/linux &lt;---&gt; Recherches spécifiques à Linux
http://www.google.com/mac &lt;---&gt; Recherches spécifiques à Mac OS
http://www.google.com/microsoft.html &lt;---&gt; Recherches spécifiques à Windows
http://www.google.com/trends &lt;---&gt; Statistiques des sites</pre> <a href="http://www.posteet.com/tags/astuces">[astuces]</a>  <a href="http://www.posteet.com/tags/google">[google]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Mon, 05 Nov 2007 18:51:21 +0000</pubDate>

            <category>astuces</category>
            <category>google</category>
    
    </item>

  
    <item>
        <title>Déterminer le déterminant d'un mot avec PHP</title>
        <link>http://www.posteet.com/view/153</link>
        <description>
        <![CDATA[<pre>function determinantMot($strMot, $strVoyelle, $strConsonne) {
  $premiereLettre = substr($strMot,0,1); //On récupère la première l'ettre du mot
  if (stristr('aeiouy', $premiereLettre)) { // A, o, i, o, u ou y = il s'agit d'une voyelle, l'apostrophe est requis
    return $strVoyelle;
  } else { // Sinon c'est une consonne, donc pas d'apostrophe
    return $strConsonne;
  }
}

// Exemple d'utilisation :
// Voir les articles du mois &lt;?php determinantMois(get_the_time('mois_de_lannee'), &quot;d'&quot;, &quot;de &quot;); ?&gt;&lt;?php the_time('mois_de_lannee'); ?&gt;</pre> <a href="http://www.posteet.com/tags/déterminant">[déterminant]</a>  <a href="http://www.posteet.com/tags/php">[php]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sat, 03 Nov 2007 21:43:09 +0000</pubDate>

            <category>déterminant</category>
            <category>php</category>
    
    </item>

  
    <item>
        <title>Vérifier la validité d'une adresse email avec php</title>
        <link>http://www.posteet.com/view/152</link>
        <description>
        <![CDATA[<pre>// Vérification de la forme
function isEmail($email){
 return preg_match(&quot;/^(\w|-|\.)+@((\w|-)+\.)+[a-z]{2,6}$/i&quot;, $email)
}

// Domaine valide ?
function isEmailDomaine($email){
   list($compte,$domaine)=split('@',$email,2);
   if(!checkdnsrr($domaine,'MX') &amp;&amp; !checkdnsrr($domaine,'A')){
     return false;
   }else{
     return true;
   }</pre> <a href="http://www.posteet.com/tags/email">[email]</a>  <a href="http://www.posteet.com/tags/formulaire">[formulaire]</a>  <a href="http://www.posteet.com/tags/mail">[mail]</a>  <a href="http://www.posteet.com/tags/php">[php]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sat, 03 Nov 2007 21:41:15 +0000</pubDate>

            <category>email</category>
            <category>formulaire</category>
            <category>mail</category>
            <category>php</category>
    
    </item>

  
    <item>
        <title>&quot;Iconiser&quot; des liens en CSS</title>
        <link>http://www.posteet.com/view/151</link>
        <description>
        <![CDATA[<pre>/* FICHIERS */
a[href $='.pdf'] { padding-left: 22px; background: transparent url(img/pdf.png) no-repeat center left;}
a[href $='.gif'] { padding-left: 22px; background: transparent url(img/image.png) no-repeat center left;}
a[href $='.png'] { padding-left: 22px; background: transparent url(img/image.png) no-repeat center left;}
a[href $='.jpg'] { padding-left: 22px; background: transparent url(img/image.png) no-repeat center left;}
a[href $='.doc'] { padding-left: 22px; background: transparent url(img/word.png) no-repeat center left;}
a[href $='.xls'] { padding-left: 22px; background: transparent url(img/excel.png) no-repeat center left;}
a[href $='.css'] { padding-left: 22px; background: transparent url(img/texte.png) no-repeat center left;}
a[href $='.txt'] { padding-left: 22px; background: transparent url(img/texte.png) no-repeat center left;}
a[href $='.php'] { padding-left: 22px; background: transparent url(img/php.png) no-repeat center left;}
a[href $='.zip'] { padding-left: 22px; background: transparent url(img/compress.png) no-repeat center left;}
a[href $='.rar'] { padding-left: 22px; background: transparent url(img/compress.png) no-repeat center left;}
a[href $='.tar.gz'] { padding-left: 22px; background: transparent url(img/package.png) no-repeat center left;}
a[href $='.pkg.gz'] { padding-left: 22px; background: transparent url(img/package.png) no-repeat center left;}
 
/* PROTOCOLES IM */
a[href ^=&quot;aim:&quot;]  { padding-left: 22px; background: transparent url(img/aim.png) no-repeat center left;}
a[href ^=&quot;msnim:&quot;] { padding-left: 22px; background: transparent url(img/msn.png) no-repeat center left;}
a[href ^=&quot;xmpp:&quot;] { padding-left: 22px; background: transparent url(img/jabber.png) no-repeat center left;}
a[href *=&quot;icq.com&quot;]  { padding-left: 22px; background: transparent url(img/icq.gif) no-repeat center left;}
a[href *=&quot;edit.yahoo.com/config/send_webmesg?&quot;]  { padding-left: 22px; background: transparent url(img/yahoo.gif) no-repeat center left;}
a[href ^=&quot;skype:&quot;]  { padding-left: 22px; background: transparent url(img/skype.png) no-repeat center left;}
 
/* SITES WEB */
a[href *=&quot;youtube.com/&quot;] { padding-left: 22px; background: transparent url(img/youtube.png) no-repeat center left;}
a[href *=&quot;metacafe.com/&quot;] { padding-left: 22px; background: transparent url(img/metacafe.png) no-repeat center left;}
a[href *=&quot;flickr.com&quot;] { padding-left: 22px; background: transparent url(img/flickr.png) no-repeat center left;}
a[href *=&quot;zooomr.com&quot;] { padding-left: 22px; background: transparent url(img/zooomr.png) no-repeat center left;}
a[href *=&quot;imageshack.us&quot;] { padding-left: 22px; background: transparent url(img/imageshack.png) no-repeat center left;}
a[href *=&quot;bubbleshare.com&quot;] { padding-left: 22px; background: transparent url(img/bubbleshare.png) no-repeat center left;}</pre> <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/icon">[icon]</a>  <a href="http://www.posteet.com/tags/icones">[icones]</a>  <a href="http://www.posteet.com/tags/liens">[liens]</a>  <a href="http://www.posteet.com/tags/links">[links]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sat, 03 Nov 2007 21:33:28 +0000</pubDate>

            <category>css</category>
            <category>icon</category>
            <category>icones</category>
            <category>liens</category>
            <category>links</category>
    
    </item>

  
    <item>
        <title>Menu horizontal a images réactives en CSS</title>
        <link>http://www.posteet.com/view/150</link>
        <description>
        <![CDATA[<pre>/* Pour le code xhtml voir plus tout en bas */
/******** MENU ********/
#nav {
height: 25px !important;  /* Hauteur de la barre de menu*/
background: url(images/bg_barre.png) repeat-x; /* Fond d'écran de la barre' */
padding: 0 0 0 12px; /* Marge interne pour décaler les boutons et afficher la barre. Taille = (largeur totale - largeur des boutons)/2 */
border-right: 1px #e7e2cb solid; /* Liaison header &lt;--&gt; contenu */
border-left: 1px #e7e2cb solid;
}
 
#menu {
margin: 0;
width: 776px; /* Taille des boutons */
height: 25px; /* Hauteur de mes boutons */
list-style: none; /* Ne pas afficher les puces */
display: inline; /* Mode en ligne */
overflow: hidden; /* Si le texte sort du cadre, ne pas l'afficher*/
text-indent: -1000px; /* On fait disparaitre le texte en décalant de 1000px la première ligne. Il sort du cadre, et disparait */
}
 
#menu li {
margin: 0; 
padding: 0;
list-style: none; /* cf. ci-dessus, nécessaire pour un affichage correct */
display: inline;
}
 
#menu a {
float: left;
padding: 0;
overflow: hidden;
width: 194px !important; 
}
 
#menu a:hover {
background-position: 0 -25px; /* Décalage pour faire réagir l'image au survol de la souris */
}
 
 
/******* ITEMS DU MENU ******/
#home a {
height: 25px; /* Hauteur du bouton */
width: 194px; /* Largeur du bouton */
background: url(images/home.png) top left no-repeat; /* Image du bouton */
}	
 
#about a {
height: 25px;
width: 194px;
background: url(images/about.png) top left no-repeat;
}	
 
#time a {
height: 25px;
width: 194px;
background: url(images/time.png) top left no-repeat;
}
 
#date a {
height: 25px;
width: 194px;
background: url(images/date.png) top left no-repeat;
}
&lt;/style&gt;

/* Le menu lui-même (sémantiquement correct) 
&lt;div id=&quot;nav&quot;&gt;
&lt;ul id=&quot;menu&quot;&gt;
&lt;li id=&quot;home&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li id=&quot;about&quot;&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li id=&quot;time&quot;&gt;&lt;a href=&quot;#&quot;&gt;Time&lt;/a&gt;&lt;/li&gt;
&lt;li id=&quot;date&quot;&gt;&lt;a href=&quot;#&quot;&gt;Date&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
*/</pre> <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/html">[html]</a>  <a href="http://www.posteet.com/tags/images réactives">[images réactives]</a>  <a href="http://www.posteet.com/tags/menu">[menu]</a>  <a href="http://www.posteet.com/tags/xhtml">[xhtml]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sat, 03 Nov 2007 21:29:38 +0000</pubDate>

            <category>css</category>
            <category>html</category>
            <category>images réactives</category>
            <category>menu</category>
            <category>xhtml</category>
    
    </item>


</channel>
</rss>
