Ik heb de volgendefunctie:
Nu wil ik op de plaats waar oSlider[active] staat eigenlijk this hebben maar dat werkt niet. hoe kan ik dit oplossen?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| function f_slideIt(x,y) {
if (tmr) clearTimeout(tmr);
if ( x > 0 && y == 0) {
if (this.x<232) {
this.moveBy(x,y);
tmr=setTimeout("oSlider[active].slideIt("+x+","+y+")",step);
}
}
else if ( x < 0 && y == 0) {
if (this.x>=2) {
this.moveBy(x,y);
tmr=setTimeout("oSlider[active].slideIt("+x+","+y+")",step);
}
}
if ( y > 0 && x == 0) {
if (this.y<270) {
this.moveBy(x,y);
tmr=setTimeout("oSlider[active].slideIt("+x+","+y+")",step);
}
}
else if ( y < 0 && x == 0) {
if (this.y>=2) {
this.moveBy(x,y);
tmr=setTimeout("oSlider[active].slideIt("+x+","+y+")",step);
}
}
} |
Nu wil ik op de plaats waar oSlider[active] staat eigenlijk this hebben maar dat werkt niet. hoe kan ik dit oplossen?