Pentru a accesa toate paginile forumului
te rugăm să te înregistrezi
  • Pagina 1 din 1
  • 1
Butoane frumoase în partea stângă a saitului
OmulPaianjenData: Miercuri, 2012-07-18, 4:02 PM | Mesaj # 1
Pasul 1: Panoul de Control - Design - Administrarea design-ului (CSS) - adăugați stilurile:

Cod
/*  Butoane din stânga saitului */
#hor {
list-style:none;
padding:0;
margin:0;  
}

#hor li {
float:left;
padding:5px;
}

#hor a {
display:block;
height: 12px;
text-indent:-999em;
}

#hor a.home {
width:46px;
background:url(vHome.gif) no-repeat 0 0;  
}

#hor a.download {
width:94px;
background:url(vDownload.gif) no-repeat 0 0;  
}

#hor a.contact {
width:74px;
background:url(vContact.gif) no-repeat 0 0;
}

/* CSS Style for Vertical Menu */  

#ver {
list-style:none;
padding:0;
margin:0;  
}

#ver li {
padding:2px;  
}

#ver li a {
display:block;
height:12px;
text-indent:-999em;
}  

#ver a.home {
width:47px;
background:url(hHome.gif) no-repeat 0 0;  
}

#ver a.download {
width:95px;
background:url(hDownload.gif) no-repeat 0 0;  
}

#ver a.contact {
width:74px;
background:url(hContact.gif) no-repeat 0 0;
}

.clear {
clear:both;
}  

*{
/* A universal CSS reset */
margin:0;
padding:0;
}

#navigationMenu body{
font-size:14px;
color:#666;
background:#111 no-repeat;

/* CSS3 Radial Gradients */
background-image:-moz-radial-gradient(center -100px 45deg, circle farthest-corner, #444 150px, #111 300px);
background-image:-webkit-gradient(radial, 50% 0, 150, 50% 0, 300, from(#444), to(#111));

font-family:Arial, Helvetica, sans-serif;
}

#navigationMenu li{
list-style:none;
height:39px;
padding:2px;
width:40px;
}

#navigationMenu span{
/* Container properties */
width:0;
left:38px;
padding:0;
position:absolute;
overflow:hidden;

/* Text properties */
font-family:'Myriad Pro',Arial, Helvetica, sans-serif;
font-size:18px;
font-weight:bold;
letter-spacing:0.6px;
white-space:nowrap;
line-height:39px;

/* CSS3 Transition: */
-webkit-transition: 0.25s;

/* Future proofing (these do not work yet): */
-moz-transition: 0.25s;
transition: 0.25s;
}

#navigationMenu a{
background:url('http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/Butoane_de_navigare.jpg') no-repeat;

height:39px;
width:38px;
display:block;
position:relative;
}

/* General hover styles */

#navigationMenu a:hover span{ width:auto; padding:0 20px;overflow:visible; }
#navigationMenu a:hover{
text-decoration:none;

/* CSS outer glow with the box-shadow property */
-moz-box-shadow:0 0 5px #9ddff5;
-webkit-box-shadow:0 0 5px #9ddff5;
box-shadow:0 0 5px #9ddff5;
}

/* Green Button */

#navigationMenu .home { background-position:0 0;}
#navigationMenu .home:hover { background-position:0 -39px;}
#navigationMenu .home span{
background-color:#7da315;
color:#3d4f0c;
text-shadow:1px 1px 0 #99bf31;
}

/* Blue Button */

#navigationMenu .about { background-position:-38px 0;}
#navigationMenu .about:hover { background-position:-38px -39px;}
#navigationMenu .about span{
background-color:#1e8bb4;
color:#223a44;
text-shadow:1px 1px 0 #44a8d0;
}

/* Orange Button */

#navigationMenu .services { background-position:-76px 0;}
#navigationMenu .services:hover { background-position:-76px -39px;}
#navigationMenu .services span{
background-color:#c86c1f;
color:#5a3517;
text-shadow:1px 1px 0 #d28344;
}

/* Yellow Button */

#navigationMenu .portfolio { background-position:-114px 0;}
#navigationMenu .portfolio:hover{ background-position:-114px -39px;}
#navigationMenu .portfolio span{
background-color:#d0a525;
color:#604e18;
text-shadow:1px 1px 0 #d8b54b;
}

/* Purple Button */

#navigationMenu .contact { background-position:-152px 0;}
#navigationMenu .contact:hover { background-position:-152px -39px;}
#navigationMenu .contact span{
background-color:#af1e83;
color:#460f35;
text-shadow:1px 1px 0 #d244a6;
}

/* Sfârșit butoane */


Pasul 2: Panoul de Control - Design - Administrarea design-ului (şabloane) - alegeți modulul dorit și după <body> adăugați codul:

Cod
<div style='position: fixed; top: 40%; left: 0%;'/>
<ul id="navigationMenu">
<li>
<a class="Home" href="/">
<span>Acasă</span>
</a>
</li>

<li>

<a class="about" href="/forum">
<span>Despre noi</span>
</a>
</li>

<li>
<a class="services" href="/index/11">
<span>Editează profilul</span>
</a>

</li>

<li>
<a class="portfolio" href="/news">
<span>Fișierele saitului</span>
</a>
</li>

<li>
<a class="contact" href="/index/0-3">

<span>Contactați-ne</span>
</a>
</li>
</ul>
</div>


Rezultatul:
 
OmulPaianjenData: Sâmbătă, 2012-08-11, 6:32 PM | Mesaj # 2
Pe pagina unde doriți butoanele, după </head> adăugați codurile:

Cod
<script type="text/javascript" src="http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/jquery.easing.js"></script>      
      <script type="text/javascript" src="http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/jquery.sweet-menu-1.0.js"></script>      
           
      <script type="text/javascript">      
      $(document).ready(function(){      
           
      $('#backMenu').sweetMenu({      
      top: 40,      
      padding: 8,      
      iconSize: 48,      
      easing: 'easeOutBounce',      
      duration: 500,      
      icons: [      
      'http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/2Inapoi.png'      
      ]      
      });      
           
      $('#exampleMenu').sweetMenu({      
      top: 200,      
      padding: 8,      
      iconSize: 48,      
      easing: 'easeOutBounce',      
      duration: 500,      
      icons: [      
      'http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/2Acasa.png',      
      'http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/2Comentarii.png',      
      'http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/2Inima.png',      
      'http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/2Utilizatorul.png',      
      'http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/2Plic.png',      
      'http://fierbinte.ucoz.ro/Forum/Diverse/Diverse_2/3_butoane/2Calculator.png' ]      
      });      
      });      
      </script>      
           
      <style type="text/css">      
      .sweetMenuAnchor{      
      border-top: 1px solid #ffffff;      
      border-right: 1px solid #ffffff;      
      border-bottom: 1px solid #ffffff;      
      border-top-right-radius: 4px;      
      -moz-border-radius-topright: 4px;      
      border-bottom-right-radius: 4px;      
      -moz-border-radius-bottomright: 4px;      
      color: #0071bb;      
      font-size: 24px;      
      font-weight: bold;      
      text-align: right;      
      text-transform: uppercase;      
      font-family: arial;      
      text-decoration: none;      
      background-color: #888888;      
      opacity: 0.6;      
      }      
           
      .sweetMenuAnchor span{      
      display: block;      
      padding-top: 10px;      
      }      
      </style>     

        <ul id="backMenu">      
      <li><a href="#">Textul</a></li>      
      </ul>      
      <ul id="exampleMenu">      
      <li><a href="#">Textul</a></li>      
      <li><a href="#">Textul</a></li>      
      <li><a href="#">Îmi place!</a></li>      
      <li><a href="#">Textul</a></li>      
      <li><a href="#">Textul</a></li>      
      <li><a href="#">Textul</a></li>      
      </ul>


 
  • Pagina 1 din 1
  • 1
Căutare:
Copyright © 2019. Toate drepturile rezervate
Politicieni | Acţiunea 2012 | Powered by uCoz