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: 12 años, 10 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:absolutetop:50%; left30px;
       
background-colorpon 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