Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/01/2005, 13:51
sandra.c
 
Fecha de Ingreso: enero-2005
Ubicación: Madrid
Mensajes: 3
Antigüedad: 20 años, 1 mes
Puntos: 0
Cambié el código pero me sigue fallando...

Perdonar..
Cambié el código pero me sigue fallando aunque funcione bien por separado… no funciona si se utilizan los enlaces, por ejemplo, pinchando en “Marzo” y luego se quiere subir mediante las flechas hacia arriba…
Podéis ayudarme ?
Muchas gracias!



<html>
<head>
<title></title>


<STYLE type=text/css>
#divUpControl {
Z-INDEX: 1; LEFT: 10px; WIDTH: 16px; POSITION: absolute; TOP: 10px; TEXT-ALIGN: right
}
#divDownControl {
Z-INDEX: 1; LEFT: 10px; WIDTH: 16px; POSITION: absolute; TOP: 270px; TEXT-ALIGN: right
}
#divContainer {
LEFT: 10px;
VISIBILITY: hidden;
OVERFLOW: hidden;
WIDTH: 320px;
CLIP: rect(0px 320px 240px 0px);
POSITION: absolute;
TOP: 30px;
HEIGHT: 240px;
background-color: #FFFFFF;
}
#divContent {
LEFT: 0px;
POSITION: absolute;
TOP: 0px;
width: 285px;
height: 617px;
}
#divDatosContacto {
LEFT: 480px; POSITION: absolute; TOP: 40px; HEIGHT: 200px
}
</STYLE>

<SCRIPT language=JavaScript>
function verifyCompatibleBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
bw=new verifyCompatibleBrowser()


var speed=50

var loop, timer

function ConstructObject(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4 ?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
this.css=bw.dom?document.getElementById(obj).style :bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
this.scrollHeight=bw.ns4?this.css.document.height: this.el.offsetHeight
this.clipHeight=bw.ns4?this.css.clip.height:this.e l.offsetHeight
this.scrollWidth=bw.ns4?this.css.document.width:th is.el.offsetWidth
this.clipWidth=bw.ns4?this.css.clip.width:this.el. offsetWidth
this.up=MoveAreaUp;this.down=MoveAreaDown;this.lef t=MoveAreaLeft;this.right=MoveAreaRight;
this.MoveArea=MoveArea; this.x; this.y;
this.obj = obj + "Object"
eval(this.obj + "=this")
return this
}
function MoveArea(x,y){
this.x=x;this.y=y
this.css.left=this.x
this.css.top=this.y
}

function MoveAreaDown(move){
if(this.y>-this.scrollHeight+objContainer.clipHeight){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+".down("+move+")",speed)
}
}

function MoveAreaUp(move){
if(this.y<0){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+".up("+move+")",speed)
}
}

function MoveAreaLeft(move){
this.MoveArea(this.x-move,0) ;
if(loop) setTimeout(this.obj+".left("+move+")",speed) ;
}

function MoveAreaRight(move){
if(this.x<0){
this.MoveArea(this.x-move,0)
if(loop) setTimeout(this.obj+".right("+move+")",speed)
}
}

function PerformScroll(speed){
if(initialised){
loop=true;
if(speed>0) objScroller.down(speed)
else objScroller.up(speed)
}
}

function PerformScrollLateral(speed){
if(initialised){
loop=true;
if(speed>0) objScroller2.left(speed)
else objScroller2.right(speed)
}
}


function CeaseScroll(){
loop=false
if(timer) clearTimeout(timer)
}
var initialised;
function InitialiseScrollableArea(){
objContainer=new ConstructObject('divContainer')
objScroller=new ConstructObject('divContent','divContainer')
objScroller.MoveArea(0,0)
objContainer.css.visibility='visible'
initialised=true;
}


</SCRIPT>
</head>

<body onload=InitialiseScrollableArea()>
<div align="center">
<p>&nbsp;</p>

<p><a href="#e">Enero</a></p>
<p><a href="#f">Febrero</a></p>
<p><a href="#m">Marzo</a></p>
<p>&nbsp;</p>

<DIV id=divUpControl style="Z-INDEX: 36; LEFT: 503px; WIDTH: 16px; TOP: 170px; HEIGHT: 20px">
<div align="left"><A onmouseover=PerformScroll(-3) onfocus=blur() onmouseout=CeaseScroll() href="javascript:;">
<IMG height=22 src="file:///I|/calendario/imagenes/A_UP.gif" width=22 border=0> </A> </div>
</DIV>

<DIV id=divDownControl style="Z-INDEX: 37; LEFT: 503px; WIDTH: 15px; TOP: 199px; HEIGHT: 20px">
<A onmouseover=PerformScroll(3) onfocus=blur() onmouseout=CeaseScroll() href="javascript:;">
<IMG height=22 src="file:///I|/calendario/imagenes/A_DOWN.gif" width=22 border=0> </A> </DIV>

<DIV id=divContainer
style="Z-INDEX: 38; LEFT: 201px; VISIBILITY: visible; WIDTH: 299px; CLIP: rect(0px 500px 220px 0px); TOP: 170px; HEIGHT: 219px">
<DIV class=normal id=divContent style="LEFT: 7px; TOP: 62px">
<TABLE width="100%" border=0 cellPadding=1 cellSpacing=1 bgcolor="#FFFFFF">
<TBODY>
<TR>
<TD class=normal vAlign=top bgcolor=#FFFFFF>
<P align=center>&nbsp;</P>
<P align=center><a name="e"></a><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#006600 size=2>
</FONT></P> <div align="center">
<table width="200" border="1">
<tr>
<td>Enero</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a name="f" id="f"></a></p>
<table width="200" border="1">
<tr>
<td>Febrero</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a name="m" id="m"></a></p>
<table width="200" border="1">
<tr>
<td>Marzo</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div></TD>
</TR>
</TBODY>
</TABLE>
</div></div>

<p align="center">&nbsp;</p>
</div></body>

</html>