1
Tutoriales y Tips SMF / [Tutorial] Slider Social Icons
« on: March 09, 2015 - 09:51 09:51 »Slider Social Icons
Traigo un gran consejo para agregar a su temática social con un elegante diseño de los iconos.
cuando terminemos vamos a tener algo como esto:
Show content
Bien empezamos a index.template.php y buscar:
Code: [Select]
// Here comes the JavaScript bits!
echo '
añadir después:
Code: [Select]
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/Social.js"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/Social2.js"></script>
Buscar:
Code: [Select]
// Show the menu here, according to the menu sub template.
template_menu();
Añadir después:
Code: [Select]
// Social Icons By Monster Studios
echo'
<ul id="navigation">
<li class="Facebook"><a href="" title="Siguenos en Facebook"></a></li>
<li class="Twitter"><a href="" title="Siguenos en Twitter"></a></li>
<li class="Youtube"><a href="" title="Mira nuestros videos"></a></li>
</ul>';
Ahora vamos a nuestra index.css y añadimos al final:
Code: [Select]
/* Social Icos By Monster Studios.
------------------------------------------------------- */
ul#navigation {
position: fixed;
margin: 0px;
padding: 0px;
top: 25%;
left: 0px;
list-style: none;
z-index:9999;
}
ul#navigation li {
width: 100px;
}
ul#navigation li a {
display: block;
margin-left: -2px;
width: 100px;
height: 70px;
background-color:#CFCFCF;
background-repeat:no-repeat;
background-position:center center;
border:1px solid #AFAFAF;
-moz-border-radius:0px 10px 10px 0px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-top-right-radius: 10px;
-khtml-border-bottom-right-radius: 10px;
-khtml-border-top-right-radius: 10px;
/*-moz-box-shadow: 0px 4px 3px #000;
-webkit-box-shadow: 0px 4px 3px #000;
*/
opacity: 0.6;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);
}
ul#navigation .Facebook a{
background-image: url(../images/Social/Facebook.png);
}
ul#navigation .Twitter a {
background-image: url(../images/Social/Twitter.png);
}
ul#navigation .Youtube a {
background-image: url(../images/Social/Youtube.png);
}
Now you just have to unzip the attached file and add the files to their respective folders
Ahora sólo hay que descomprimir el archivo adjunto y añadir los archivos a sus respectivas carpetas Social.js y Social2.js a la carpeta de scripts de su tema. La Carpeta Social para enviar a la carpeta de imágenes de su tema
Download
VT
Fuente: SimpleMachines (Ingles)