Ver Mensaje Individual
  #7 (permalink)  
Antiguo 02/09/2004, 10:51
Avatar de FLECHA
FLECHA
 
Fecha de Ingreso: mayo-2003
Ubicación: Mi casa
Mensajes: 409
Antigüedad: 21 años
Puntos: 1
Vale compañeros, ya encontre uno que me puede servir este es el enlace
http://javascript.internet.com/navig...able-menu.html

si os fijais el menu de la izquierda se desplaza a la vez que vamos bajando en la pagina ok pues bien el script es este: ¿pero que he de modificar para que dicho menú no salga posicionado en la parte superior si no mas abajo. Espero que me haya explicado en su caso me solicitais nuevamente e intento decirlo con otras palabras. Bueno gracias por todo.


<!-- THREE STEPS TO INSTALL PORTABLE MENU:

1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function setVariables() {
if (navigator.appName == "Netscape") {
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval(y);
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

<BODY OnLoad="setVariables();checkLocation()">

<!-- STEP THREE: Copy this code into the BODY of your HTML document -->

<div id="object1" style="position:absolute; visibility:show; left:0px; top:0px; z-index:2">

<table width=130 border=0 cellspacing=20 cellpadding=0>
<tr>
<td><CENTER>Menu Bar</CENTER></td>
</tr>
<tr>
<td><a href="../index.html" >Home Page</a></td>
</tr>
<tr>
<td><a href="../new.html" >What's New?</a></td>
</tr>
<tr>
<td><a href="../forum/" >JavaScript Forum</a></td>
</tr>
<tr>
<td><a href="../feedback.html" >Site Feedback</a></td>
</tr>
</table>
</div>

<table>
<tr>
<td width=130>
<font color="white"> </font>
</td>

<td>

The rest of your site goes here

</td></tr>
</table>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.69 KB -->