- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
function myRandom (from, to) {return Math.floor((Math.random() * (to - from + 1)) + from);}
function perehod(a,b,c){
var cmdname="event";
var cmdtime=a;
var cmdparam="a;link;<getvar(host)>;click;-1";
alert("prs::" + prskey + "::add::" + cmdname + "::" + cmdtime + "::" + cmdparam);
var cmdname="link";
var cmdtime=myRandom(b,c);
var cmdparam="last;0";
alert("prs::" + prskey + "::add::" + cmdname + "::" + cmdtime + "::" + cmdparam);
var cmdname="script";
var cmdtime=myRandom(1,3);
var cmdparam="window.scrollTo(<rndr(100:500)>,<rndr(50:1000)>);";
alert("prs::" + prskey + "::add::" + cmdname + "::" + cmdtime + "::" + cmdparam);
var cmdname="script";
var cmdtime=myRandom(1,3);
var cmdparam="window.scrollTo(<rndr(100:1000)>,<rndr(50:1500)>);";
alert("prs::" + prskey + "::add::" + cmdname + "::" + cmdtime + "::" + cmdparam);
}
if (m == 1){
perehod(2, min_t_vr, max_t_vr);
}
else if (m == 2){
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
}
else if (m == 3){
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
}
else if (m == 4){
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
}
else if (m == 5){
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
}
else if (m == 6){
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
}
else if (m == 7){
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
}
else if (m == 8){
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
perehod(2, min_t_vr, max_t_vr);
}
// и т.д. до m == 20 (sic!)
else {
perehod(2, 15, 20);
perehod(2, 15, 20);
perehod(2, 15, 20);
perehod(2, 15, 20);
perehod(2, 15, 20);
}
gost 23.12.2015 18:59 # 0
Выносите.
1024-- 24.12.2015 00:18 # 0
* кроме неявных требований from, to ∈ ℤ; from ≤ to, которые автор несомненно планировал выполнять.