Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/07/2014, 15:22
dienxtreme
 
Fecha de Ingreso: julio-2014
Mensajes: 1
Antigüedad: 9 años, 10 meses
Puntos: 0
Web horizontal

Buenas tardes bueno tengo creada una web horizontal con una efecto de js pero quisiera saber como hacer para crear mas secciones en el menu ya que cada boton esta linkeada. estos son los codigos.

<body>
<div class="main">
<div class="header">
<div class="logo"><a href="#Home" id="btnHome">
<img class="pngfix" src="img/logomerca.png" width="295" height="48" alt="home" /></a>
</div><!-- .logo -->
<div class="menu">
<ul>
<li> <a href="#Home" id="btnHome2">HOME</a></li>
<li> <a href="#Manifiesto" id="btnGallery">MANIFIESTO</a></li>
<li> <a href="#Mercados y Sociedad" id="btnServices">MERCADOS Y SOCIEDAD</a></li>
<li> <a href="#Servicios" id="btnServicios">SERVICIOS</a></li>
<li> <a href="#Clientes" id="btnGallery">CLIENTES</a></li>
<li><a href="#Contact" id="btnContact">CONTACTO</a></li>
<li> <a href="#Unete" id="btnGallery">ÚNETE</a></li>
</ul>
</div>



lo que no se es q poner en el script. tengo solo 4 secciones del menu pero no spe como linkear los 3 restantes creo que es en este script.

var autoSelect = function(){
var currentURL = window.location;
var selectOpacity = 1;
if(currentURL.hash == "#Gallery"){
$("#sectionGallery").css("opacity", 1);
gotoPage((905 + 435), 'sectionGallery', selectOpacity);
}else if(currentURL.hash == "#Services"){
$("#sectionServices").css("opacity", 1);
gotoPage((1810 + 870), 'sectionServices', selectOpacity);
}else if(currentURL.hash == "#Contact"){
$("#sectionContact").css("opacity", 1);
gotoPage((2720 + 1320), 'sectionContact', selectOpacity);
}else if(currentURL.hash == "#Contact2"){
$("#sectionContact2").css("opacity", 1);
gotoPage((3570 + 1800), 'sectionContact2', selectOpacity);
}else{
$("#sectionHome").css("opacity", 1);
gotoPage(0, 'sectionHome', selectOpacity);
}

}