]]> Boutons CSS3 Menu Dégradé ~ aw ! web LE PARTAGE

What is JavaScript?

JavaScript is a scripting language originally developed by Netscape to add interactivity and power to web documents. It is purely client side, and runs completely on the client's browser and computer.

Difference betwen Java & JavaScript?

Java is completely different from JavaScript- the former is a compiled language while the later is a scripting language.

What is DHTML?

DHTML is the embodiment of a combination of technologies- JavaScript, CSS, and HTML. Through them a new level of interactivity is possible for the end user experience.

Boutons CSS3 Menu Dégradé


Boutons CSS3 Menu Dégradé

Ces boutons de fantaisie à la recherche rassemble CSS3 de border-radius , box-shadow , et gradients linéaires de créer glossy boutons de menu à la recherche qui n'utilise pas d'images. Ils sont constitués d'une simple liste UL régulier qui peut facilement être à gauche, centré, ou aligné à droite. Visuellement ces boutons mieux regarder dans
FF3.5 +, Chrome et Safari 4 +, tandis que dans d'autres navigateurs, ils ont encore assez d'air présentable.
    Les gradients sont chacun une combinaison de trois couleurs différentes avec des couleurs cesser de s'appliquer, dans le cas des les premiers boutons bleu ci-dessus:
    Contexte:-moz-linear-gradient (en haut au centre, # a4ccec, # 72a6d4 25%, # 3282c2 45%, 85% 357cbd #, # 72a6d4);
     / * Mozilla fond dégradé * /


    background:-webkit-gradient (linéaire, en haut au centre, en bas au centre, à partir de (# a4ccec), la couleur d'arrêt (25%, # 72a6d4), la couleur d'arrêt (45%, # 3282c2), la couleur d'arrêt (85%, # 357cbd), à (# 72a6d4) );
     / * Webkit fond dégradé * /
    Le tableau suivant montre le spectre des couleurs bleues utilisées dans les boutons bleus:

    # A4ccec
    # 72a6d4
    # 3282c2
    # 72a6d4
    # A4ccec                   


    Le CSS:


    <style type="text/css">


    .gradientbuttons ul{
    padding: 3px 0;
    margin-left: 0;
    margin-top: 1px;
    margin-bottom: 0;
    font: bold 13px Verdana;
    list-style-type: none;
    text-align: center; /*set to left, center, or right to align the menu as desired*/
    }

    .gradientbuttons li{
    display: inline;
    margin: 0;
    }

    .gradientbuttons li a{
    text-decoration: none;
    padding: 5px 7px;
    margin-right: 5px;
    border: 1px solid #778;
    color: white;
    border:1px solid gray;
    background: #3282c2;
    border-radius: 8px; /*w3c border radius*/
    box-shadow: 3px 3px 4px rgba(0,0,0,.5); /* w3c box shadow */
    -moz-border-radius: 8px; /* mozilla border radius */
    -moz-box-shadow: 3px 3px 4px rgba(0,0,0,.5); /* mozilla box shadow */
    background: -moz-linear-gradient(center top, #a4ccec, #72a6d4 25%, #3282c2 45%, #357cbd 85%, #72a6d4); /* mozilla gradient background */
    -webkit-border-radius: 8px; /* webkit border radius */
    -webkit-box-shadow: 3px 3px 4px rgba(0,0,0,.5); /* webkit box shadow */
    background: -webkit-gradient(linear, center top, center bottom, from(#a4ccec), color-stop(25%, #72a6d4), color-stop(45%, #3282c2), color-stop(85%, #357cbd), to(#72a6d4)); /* webkit gradient background */
    }

    .gradientbuttons li a:hover{
    color: lightyellow;
    }

    .redtheme li a{
    font-size:18px;
    background: darkred;
    background: -moz-linear-gradient(center top, #f5795d, #e55e3f 25%, #d02700 45%, #e55e3f 85%, #f5795d);
    background: -webkit-gradient(linear, center top, center bottom, from(#f5795d), color-stop(25%, #e55e3f), color-stop(45%, #d02700), color-stop(85%, #e55e3f), to(#f5795d)); 
    }

    .greentheme li a{
    font-size:12px;
    background: green;
    background: -moz-linear-gradient(center top, #7ad690, #3ec05c 25%, #298a40 45%, #3ec05c 85%, #7ad690);
    background: -webkit-gradient(linear, center top, center bottom, from(#7ad690), color-stop(25%, #3ec05c), color-stop(45%, #298a40), color-stop(85%, #3ec05c), to(#7ad690)); 
    }

    .blacktheme li a{
    font-size:16px;
    background: black;
    background: -moz-linear-gradient(center top, #9f9f9f, #686868 25%, #2a2a2a 45%, #686868 85%, #9f9f9f);
    background: -webkit-gradient(linear, center top, center bottom, from(#9f9f9f), color-stop(25%, #686868), color-stop(45%, #2a2a2a), color-stop(85%, #686868), to(#9f9f9f)); 
    }

    .orangetheme li a{
    font-size:14px;
    background: #e55e3f;
    background: -moz-linear-gradient(center top, #ecad9a, #e5937c 25%, #cf4c2a 45%, #e5937c 85%, #ecad9a);
    background: -webkit-gradient(linear, center top, center bottom, from(#ecad9a), color-stop(25%, #e5937c), color-stop(45%, #cf4c2a), color-stop(85%, #e5937c), to(#ecad9a)); 
    }

    </style>


    Le code HTML:



    <ul>
    <li><a href="VOTRE LIEN">Home</a></li>
    <li><a href="VOTRE LIEN">DHTML</a></li>
    <li><a href="VOTRE LIEN">CSS</a></li>
    <li><a href="VOTRE LIEN">Forums</a></li>
    <li><a href="VOTRE LIEN">Gif Optimizer</a></li>
    </ul>
    </div>

    <br />

    <div class="gradientbuttons redtheme">
    <ul>
    <li><a href="VOTRE LIEN">Home</a></li>
    <li><a href="VOTRE LIEN">DHTML</a></li>
    <li><a href="VOTRE LIEN">CSS</a></li>
    <li><a href="VOTRE LIEN">Forums</a></li>
    <li><a href="VOTRE LIEN">Gif Optimizer</a></li>
    </ul>
    </div>

    <br />

    <div class="gradientbuttons greentheme">
    <ul>
    <li><a href="VOTRE LIEN">Home</a></li>
    <li><a href="VOTRE LIEN">DHTML</a></li>
    <li><a href="VOTRE LIEN">CSS</a></li>
    <li><a href="VOTRE LIEN">Forums</a></li>
    <li><a href="VOTRE LIEN">Gif Optimizer</a></li>
    </ul>
    </div>

    <br />

    <div class="gradientbuttons blacktheme">
    <ul>
    <li><a href="VOTRE LIEN">Home</a></li>
    <li><a href="VOTRE LIEN">DHTML</a></li>
    <li><a href="VOTRE LIEN">CSS</a></li>
    <li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
    <li><a href="VOTRE LIEN/">Gif Optimizer</a></li>
    </ul>
    </div>

    <br />

    <div class="gradientbuttons orangetheme">
    <ul>
    <li><a href="VOTRE LIEN">Home</a></li>
    <li><a href="VOTRE LIEN">DHTML</a></li>
    <li><a href="VOTRE LIEN">CSS</a></li>
    <li><a href="VOTRE LIEN">Forums</a></li>
    <li><a href="VOTRE LIEN">Gif Optimizer</a></li>
    </ul>
    </div>

    .</div>

    0 commentaires:

     
    nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn