Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/09/2011, 12:28
Avatar de RafaRG
RafaRG
 
Fecha de Ingreso: julio-2011
Ubicación: Córdoba, España
Mensajes: 124
Antigüedad: 15 años, 2 meses
Puntos: 13
Respuesta: Insertar un Botón que se desplace

mira, esto te puede servir:

Código PHP:
<head> 
<
style type="text/css">
#id {
       
position:absolute; top:50%; left: 30px;
       
background-color: pon el color que quieras;
       
width:ancho px;
       
height:alto px;
       }
</
style>
<
script> 
function 
contenido(enla , etik) { 
  
obj = document.getElementById(etik); 
    
obj.style.display = (obj.style.display == 'block') ? 'none' : 'block'; 
  
enla.innerHTML = (enla.innerHTML == '<img src="url" style="position:fixed; top:50%; left:0;">') ? '<img src="url" style="position:fixed; top:50%; left:0;">' : '<img src="url" style="position:fixed; top:50%; left:0;">'; 
} 
</script> 
</head> 

<body> 
<a href="#" onclick="contenido(this,'id'); return false" /><img src="url" style="position:fixed; top:50%; left:0;"></a> 
<div id="id" style="display:none"> 
Contenido que quieras poner (enlaces, fotos, etc)
</div> 
</body> 
si tienes alguna duda del código, dímelo