Doppia skin sul forum, scambiale con un click!

« Older   Newer »
 
  Share  
.
  1. JackGaunt
     
    .

    User deleted


    ueEPa
    Anteprima



    Amministrazione > Grafica > Codice HTML > Codice HTML che sarà mostrato in CIMA a tutte le pagine
    CODICE
    <!-- CARICAMENTO SKIN INIZIALE -->
    <script type="text/javascript">
    function def() {
    document.body.className = "bodydef";
    }
    function alt() {
    document.body.className = "bodyalt";
    }
    if (localStorage.getItem('skin') === null) {
    localStorage.setItem('skin','def');
    }
    else if (localStorage.getItem('skin') === 'def') {
    null
    }
    else if(localStorage.getItem("skin") == "alt") {
    alt();
    }
    </script>
    <!-- FINE CARICAMENTO -->

    <!-- LABEL CHE CAMBIANO SKIN --><div id="change">
    <div style="background:#FFF"><h2 href="http://procva.forumcommunity.net/" style="color:#800" onmouseover="this.style.cursor='pointer';" onclick="def(); localStorage.setItem('skin','def')">Skin Bianca</h2></div>
    <div style="background:#800"><h2 style="color:#FFF" href="http://procva.forumcommunity.net/" onmouseover="this.style.cursor='pointer';" onclick="alt();localStorage.setItem('skin','alt')">Skin Rossa</h2></div></div>


    Amministrazione > Grafica > Colori e Stili
    CODICE
    .bodyalt {background:url(LINK SECONDA IMMAGINE DI SFONDO); -webkit-transition: background 0.5s linear;
    -moz-transition: background 0.5s linear;
    -o-transition: background 0.5s linear;
    transition: background 0.5s linear}
    .bodydef {background:url(LINK PRIMA IMMAGINE DI SFONDO); -webkit-transition: background 0.5s linear;
    -moz-transition: background 0.5s linear;
    -o-transition: background 0.5s linear;
    transition: background 0.5s linear}

    /*PARTE IMPORTANTE: PRESTARE ATTENZIONE */
    #change {position: fixed;
    top: 30px;
    right: 0%;
    margin-right: 10px}

    #change div {float: left;
    padding: 5px;
    line-height: 90%;
    border-radius: 0 0 5px 5px;
    box-shadow: 1px 2px 0 rgb(0, 0, 0);
    font-weight: bold;
    -moz-transition: all 0.5s ease-in-out 0s}

    #change div:hover {line-height: 150%}



    PER MODIFICARE OGNI ALTRO STILE DELLA SECONDA SKIN BASTA AGGIUNGERE IL RISPETTIVO COLORE E STILE PRECEDUTO DA
    .bodyalt


    ESEMPIO:
    .bodyalt .menuwrap {background:#F00}
    renderà rosso il menu superiore quando si passa alla seconda skin!




    !Importante : Aggiungere nei credits


    o più semplicemente: Amministrazione > Codice HTML > Codice HTML che sarà mostrato in FONDO a tutte le pagine

    Immediate skin change performed by ©JackGaunt


    CODICE
    <div style="position:relative; bottom:28px; height:0; right:0px; font-size:16pt; font-family:georgia; letter-spacing:-2px" align="right">Immediate skin change performed by <a href="http://thinktwice.skin.forumcommunity.net/?act=Profile&MID=2223137">©JackGaunt</a></div>


    INDICATE CORTESEMENTE I NOMI E LINK DEI FORUM SU CUI APPLICATE IL CODICE!



    Edited by JackGaunt - 14/10/2012, 13:53
     
    Top
    .
  2.  
    .
    Avatar

    Advanced Member

    Group
    Fan
    Posts
    3,309

    Status
    Anonymous
    Inserito e creditato qui :)
     
    Top
    .
  3. <<Cristopher>>
     
    .

    User deleted


    inserito e creditato qui..

    http://settembrenostro.blogfree.net/

    Grazie mille... :wub:
     
    Top
    .
  4.  
    .
    Avatar


    Group
    Fan
    Posts
    494
    Location
    Bergamo

    Status
    Offline
    Posso chiedere supporto qui riguardo a questo codice?
     
    Top
    .
  5.  
    .
    Avatar


    Group
    Fan
    Posts
    494
    Location
    Bergamo

    Status
    Offline
    Comunque codice installato qui :)
     
    Top
    .
4 replies since 18/9/2012, 08:06   1494 views
  Share  
.
Top