IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

Pause en fin de scroll


Sujet :

JavaScript

  1. #1
    Nouveau Candidat au Club
    Homme Profil pro
    Technicien maintenance
    Inscrit en
    Septembre 2013
    Messages
    20
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Technicien maintenance
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Septembre 2013
    Messages : 20
    Points : 0
    Points
    0
    Par défaut Pause en fin de scroll
    Bonsoir à tous,
    j'ai un petit problème

    quelle est la fonction qui est compatible avec tous les navigateurs pour mettre une pause dans mons script :


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    <script language="JavaScript1.2">
    var currentpos=0,alt=1,curpos1=0,curpos2=-1
    function initialize(){
    startit()
    }
    function scrollwindow(){
    if (document.all)
    temp=document.body.scrollTop
    else
    temp=window.pageYOffset
    if (alt==0)
    alt=1
    else
    alt=0
    if (alt==0)
    curpos1=temp
    else
    curpos2=temp
    if (curpos1!=curpos2){
    if (document.all)
    currentpos=document.body.scrollTop+1
    else
    currentpos=window.pageYOffset+1
    window.scroll(0,currentpos)
    }
    else{
    currentpos=0
    window.scroll(0,currentpos)
    location.reload(true)
     
    }
    }
    function startit(){
    setInterval("scrollwindow()",25)
    }
    window.onload=initialize
     
    </script>
    et je vous donne un exemple de page généré

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    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
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
     
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
    <meta name="robots" content="noindex,nofollow">
     
    <style type="text/css">
    body { color: #000; background-color: #fff; 
           font: 10pt/1.2 Arial, Helvetica, sans-serif; }
    table { table-layout:fixed; border-collapse: collapse; border-spacing: 0px; 
            padding: 0; margin: 0; border: none; }
    th { background-color: #ebffeb; color: blue; font-weight: normal;
         border: none; white-space:nowrap; text-align: left;
         padding: 0px 3px 3px 3px; vertical-align: bottom;
         font: 10pt/1.2 Arial, Helvetica, sans-serif; }
    td { padding-left: 3px; padding-right: 3px;
         border: none; overflow:hidden; vertical-align: bottom;
         white-space:nowrap; text-align: left;
         font: 10pt/1.2 Arial, Helvetica, sans-serif; }
    a:link    { font-weight:bold; color:blue; text-decoration:none; }
    a:visited { font-weight:bold; color:purple; text-decoration:none; }
    a:focus   { font-weight:bold; color:green; text-decoration:none; }
    a:hover   { font-weight:bold; color:green; text-decoration:none; }
    a:active  { font-weight:bold; color:green; text-decoration:none; }
    #header { background-color: #ebffeb; color: black; padding: 5px 3px 2px 3px; }
    #reporttop { background-color: #FFFFE0; font-weight: bold; padding: 0;
                 border: none; margin: 0; width: 100%; }
    #reporttop td { vertical-align: bottom; }
    #ln { font-size: 5pt; }
    tr#ev { background-color: #FFFFE0; }
    tr#fix { background-color: #E0FFFF; }
    #rb { text-align: right; }
    #ce { text-align: center; }
    #navigation {
        top: 0px; right: 0px; position: fixed; display: block;
        max-height: 95%; overflow-y: auto; overflow-x: hidden;
        margin: 8px; text-align: left; white-space:nowrap;
        background-color: #ebffeb; padding: 5px 18px 5px 5px;
        font: 10pt/1.2 Arial, Helvetica, sans-serif;
        font-weight: bold; text-decoration: none;
        border-radius: 3px 3px 3px 3px;
        box-shadow: 2px 2px 2px #d0d0d0;
        opacity: .9;
          }
    #navigation td {padding-top: 0; padding-bottom: 0;}
    #navigation table {display: none;}
    #navigation:hover table {display: block;}
    #navcaption {color: green; }
    @media print { #navigation { display:none; } }
     
    #c00 { background-color: #ebffeb; color: black; padding: 5px 3px 2px 3px; font-weight: bold; }
    #c01 { background-color: #ebffeb; color: black; padding: 5px 3px 2px 3px; font-weight: bold; text-align: right; }
    #c02 { background-color: #ebffeb; color: black; padding: 5px 3px 2px 3px; font-weight: bold; text-align: right; }
    </style>
     
    <title>championnat d'alsace de sprint 2009 - Résultats</title>
    </head>
    <script language="JavaScript1.2">
    var currentpos=0,alt=1,curpos1=0,curpos2=-1
    function initialize(){
    startit()
    }
    function scrollwindow(){
    if (document.all)
    temp=document.body.scrollTop
    else
    temp=window.pageYOffset
    if (alt==0)
    alt=1
    else
    alt=0
    if (alt==0)
    curpos1=temp
    else
    curpos2=temp
    if (curpos1!=curpos2){
    if (document.all)
    currentpos=document.body.scrollTop+1
    else
    currentpos=window.pageYOffset+1
    window.scroll(0,currentpos)
    }
    else{
    currentpos=0
    window.scroll(0,currentpos)
    location.reload(true)
     
    }
    }
    function startit(){
    setInterval("scrollwindow()",25)
    }
    window.onload=initialize
     
    </script>
     
     
    <body>
    <div id=reporttop>
    <table width=499px style="table-layout:auto;">
    <tr><td><nobr>championnat d'alsace de sprint 2009</nobr></td><td id=rb><nobr>lun. 29/02/2016 21:43</nobr></td></tr>
    <tr><td><nobr>Résultats</nobr></td><td id=rb style="font-weight:normal; font-size: 7pt;"><nobr>créé par: <a href="http://www.sportsoftware.de">OE2010 © Stephan Krämer SportSoftware 2016</a></nobr></td></tr>
    </table>
    <hr>
    </div>
    <table id=ln><tr><td>&nbsp</td></tr></table>
     
    <a id="D10"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 10  (7)</nobr></td><td id=c01 width=99px>2,6 km</td><td id=c02 width=34px>10 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>95</td><td><nobr>Emilie KORCHAK</nobr></td><td id=rb>99</td><td><nobr>6806AL COBF</nobr></td><td id=rb>24:51</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>96</td><td><nobr>Marie RUDKIEWICZ</nobr></td><td id=rb>97</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>27:51</td></tr>
    <tr><td id=rb>3</td><td id=rb>89</td><td><nobr>Zoe VILLAR</nobr></td><td id=rb>00</td><td><nobr>6701AL COSE</nobr></td><td id=rb>36:16</td></tr>
    <tr id=ev><td id=rb>4</td><td id=rb>53</td><td><nobr>Véronique RUDKIEWICZ</nobr></td><td id=rb>63</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>43:38</td></tr>
    <tr><td id=rb>5</td><td id=rb>92</td><td><nobr>Anne RUDKIEWICZ</nobr></td><td id=rb>02</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>48:44</td></tr>
    <tr id=ev><td id=rb>6</td><td id=rb>94</td><td><nobr>Juliette RUDKIEWICZ</nobr></td><td id=rb>01</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>51:26</td></tr>
    <tr><td id=rb>7</td><td id=rb>90</td><td><nobr>Lucie RUDKIEWICZ</nobr></td><td id=rb>00</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>56:12</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D12"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 12  (2)</nobr></td><td id=c01 width=99px>2,6 km</td><td id=c02 width=34px>10 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>91</td><td><nobr>Florence HANAUER</nobr></td><td id=rb></td><td><nobr>6806AL COBF</nobr></td><td id=rb>20:38</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>87</td><td><nobr>Laura CARU</nobr></td><td id=rb>98</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>34:40</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D14"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 14  (2)</nobr></td><td id=c01 width=99px>3,1 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>78</td><td><nobr>Nathalie KORCHAK</nobr></td><td id=rb>96</td><td><nobr>6806AL COBF</nobr></td><td id=rb>34:17</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>80</td><td><nobr>Mathilde RIETHMULLER</nobr></td><td id=rb>95</td><td><nobr>6806AL COBF</nobr></td><td id=rb>35:55</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D16"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 16  (5)</nobr></td><td id=c01 width=99px>3,4 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>68</td><td><nobr>Nicole HUEBER</nobr></td><td id=rb>93</td><td><nobr>6806AL COBF</nobr></td><td id=rb>24:05</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>72</td><td><nobr>Camille COLIN</nobr></td><td id=rb>94</td><td><nobr>6806AL COBF</nobr></td><td id=rb>29:37</td></tr>
    <tr><td id=rb>3</td><td id=rb>73</td><td><nobr>Nicole KORCHAK</nobr></td><td id=rb>93</td><td><nobr>6806AL COBF</nobr></td><td id=rb>30:41</td></tr>
    <tr id=ev><td id=rb>4</td><td id=rb>70</td><td><nobr>Alexia FERNANDEZ</nobr></td><td id=rb></td><td><nobr>6806AL COBF</nobr></td><td id=rb>34:45</td></tr>
    <tr><td id=rb>5</td><td id=rb>102</td><td><nobr>Marie BONZOMS</nobr></td><td id=rb></td><td><nobr>6806AL COBF</nobr></td><td id=rb>39:01</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D18"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 18  (2)</nobr></td><td id=c01 width=99px>3,4 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>74</td><td><nobr>Ariane SUTTER</nobr></td><td id=rb>91</td><td><nobr>6806AL COBF</nobr></td><td id=rb>26:27</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>71</td><td><nobr>Fanny RAVENEL</nobr></td><td id=rb>92</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>33:00</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D20"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 20  (4)</nobr></td><td id=c01 width=99px>2,8 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>49</td><td><nobr>Diane HUEBER</nobr></td><td id=rb>90</td><td><nobr>6806AL COBF</nobr></td><td id=rb>24:12</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>101</td><td><nobr>Cecile EHRHARDT</nobr></td><td id=rb>90</td><td><nobr>6803AL COM</nobr></td><td id=rb>35:46</td></tr>
    <tr><td id=rb>3</td><td id=rb>51</td><td><nobr>Sarah LEBIHAN</nobr></td><td id=rb>90</td><td><nobr>6803AL COM</nobr></td><td id=rb>36:25</td></tr>
    <tr id=ev><td id=rb>4</td><td id=rb>61</td><td><nobr>Manon RAVENEL</nobr></td><td id=rb>89</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>42:58</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D21"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 21  (3)</nobr></td><td id=c01 width=99px>2,8 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>48</td><td><nobr>Sophie TEMPORELLI</nobr></td><td id=rb>76</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>20:46</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>59</td><td><nobr>Marie CASTERAN</nobr></td><td id=rb></td><td><nobr>6804AL COColmar</nobr></td><td id=rb>28:15</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb></td><td id=rb>153</td><td><nobr>Sylvia MULLER</nobr></td><td id=rb></td><td><nobr>6803AL COM</nobr></td><td id=rb>disq.</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D35"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 35  (3)</nobr></td><td id=c01 width=99px>2,8 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>64</td><td><nobr>Laurence BERNAUER</nobr></td><td id=rb>74</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>29:52</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>50</td><td><nobr>Benedicte FERLET</nobr></td><td id=rb></td><td><nobr>6804AL COColmar</nobr></td><td id=rb>31:56</td></tr>
    <tr><td id=rb>3</td><td id=rb>66</td><td><nobr>Luisa PEREIRA DA COSTA DIAS</nobr></td><td id=rb></td><td><nobr>6803AL COM</nobr></td><td id=rb>39:49</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D40"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 40  (2)</nobr></td><td id=c01 width=99px>2,8 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>63</td><td><nobr>Isabelle VILLAR</nobr></td><td id=rb>68</td><td><nobr>6701AL COSE</nobr></td><td id=rb>23:05</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr id=ev><td id=rb></td><td id=rb>65</td><td><nobr>Myriam FOUCAULT</nobr></td><td id=rb>68</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>pm</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D45"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 45  (5)</nobr></td><td id=c01 width=99px>2,8 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>52</td><td><nobr>Lena KORCHAK</nobr></td><td id=rb>62</td><td><nobr>6806AL COBF</nobr></td><td id=rb>25:48</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>57</td><td><nobr>Veronique RAVENEL</nobr></td><td id=rb>64</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>31:52</td></tr>
    <tr><td id=rb>3</td><td id=rb>56</td><td><nobr>Ginette SCHELCHER</nobr></td><td id=rb></td><td><nobr>6806AL COBF</nobr></td><td id=rb>34:08</td></tr>
    <tr id=ev><td id=rb>4</td><td id=rb>54</td><td><nobr>Evelyne HAURY</nobr></td><td id=rb>64</td><td><nobr>6803AL COM</nobr></td><td id=rb>35:21</td></tr>
    <tr><td id=rb>5</td><td id=rb>60</td><td><nobr>Martine LEBIHAN</nobr></td><td id=rb>63</td><td><nobr>6803AL COM</nobr></td><td id=rb>40:46</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D50"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 50  (1)</nobr></td><td id=c01 width=99px>2,8 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>62</td><td><nobr>Odile SUTTER</nobr></td><td id=rb>57</td><td><nobr>6806AL COBF</nobr></td><td id=rb>40:03</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <a id="D60"></a>
    <table width=499px>
    <tbody>
    <tr><td id=c00 width=208px><nobr>Dames 60  (2)</nobr></td><td id=c01 width=99px>2,8 km</td><td id=c02 width=34px>12 P</td><td id="header" ></td>
    </tr>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <thead>
    <tr><th id=rb>Pl</th><th id=rb>Doss.</th><th>NOM</th><th id=rb>Né</th><th>Club</th><th id=rb>Temps</th><th></th></tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    <table width=499px>
    <col width=33px>
    <col width=41px>
    <col width=179px>
    <col width=26px>
    <col width=155px>
    <col width=61px>
    <tbody>
    <tr><td id=rb>1</td><td id=rb>55</td><td><nobr>Christiane VOGT</nobr></td><td id=rb>47</td><td><nobr>6804AL COColmar</nobr></td><td id=rb>38:06</td></tr>
    <tr id=ev><td id=rb>2</td><td id=rb>58</td><td><nobr>Claire PASCAUD</nobr></td><td id=rb>46</td><td><nobr>9006FC RAMBO</nobr></td><td id=rb>55:38</td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    <tr><td id=rb><nobr>&nbsp</nobr></td></tr>
    </tbody>
    </table>
    <tr><td><a href="#D10">Dames 10</a></td></tr>
    <tr><td><a href="#D12">Dames 12</a></td></tr>
    <tr><td><a href="#D14">Dames 14</a></td></tr>
    <tr><td><a href="#D16">Dames 16</a></td></tr>
    <tr><td><a href="#D18">Dames 18</a></td></tr>
    <tr><td><a href="#D20">Dames 20</a></td></tr>
    <tr><td><a href="#D21">Dames 21</a></td></tr>
    <tr><td><a href="#D35">Dames 35</a></td></tr>
    <tr><td><a href="#D40">Dames 40</a></td></tr>
    <tr><td><a href="#D45">Dames 45</a></td></tr>
    <tr><td><a href="#D50">Dames 50</a></td></tr>
    <tr><td><a href="#D60">Dames 60</a></td></tr>
    </table></div>
    </body>
    </html>
    je ne sais comment faire j 'ai deja essayé avec sleep(3); mais rien
    il faudrait que le temp d arret du scroll soit de 3 sec au debut et de 3 en fin de script

    cordialement

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    17 088
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 088
    Points : 44 667
    Points
    44 667
    Par défaut
    Bonjour,
    <script language="JavaScript1.2"> est obsoléte, autant mettre un simple <script>.
    if (document.all) est d'une autre époque, ton script doit être épuré de toutes ces anciennetés
    • pour le principe il te suffit de ne pas lancer le défilement immédiatement mais au bout de 3 s
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    function initialize(){
      setTimeout( startit, 3000);
    }
    et la même chose quand tu arrives en bas

  3. #3
    Nouveau Candidat au Club
    Homme Profil pro
    Technicien maintenance
    Inscrit en
    Septembre 2013
    Messages
    20
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Technicien maintenance
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Septembre 2013
    Messages : 20
    Points : 0
    Points
    0
    Par défaut
    Bonjour,

    Pourriez vous m aidé a mettre à jour ce script

    Cordialement

  4. #4
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    17 088
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 088
    Points : 44 667
    Points
    44 667
    Par défaut
    Pourriez vous m aidé a mettre à jour ce script
    Non, il est tout à refaire non j'déco..e, mais on pourrait écrire ce code à la place
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    28
    29
    30
    31
    32
    33
    var ddE;    // document.documentElement
     
    function scrollPage() {
      // hauteur atteinte si
      // pageYOffset >= ddE.scrollHeight - ddE-ClientHeight
      //-----------------------------------------------------
      if( window.pageYOffset == (ddE.scrollHeight - ddE.clientHeight)){  
        // relance l'init dans 3s    
        setTimeout( function(){
            startScroll();
          }, 3000);  
      }
      else{
        window.scrollBy( 0, 1);
        // relance la fonction
        window.requestAnimationFrame( scrollPage);
      }
    }
     
    function startScroll() {
      // replace en tête
      window.scrollTo( 0, 0);
      // lance le scroll dans 3s  
      setTimeout( function(){
          window.requestAnimationFrame( scrollPage);
        }, 3000);  
    }
     
    window.addEventListener( 'load', function(){
      // besoin pour calcul dynamique
      ddE = document.documentElement;
      startScroll();
    });

Discussions similaires

  1. [XL-2002] Auto scroll avec pause
    Par Canidé dans le forum Macros et VBA Excel
    Réponses: 12
    Dernier message: 09/11/2011, 16h19
  2. scroll horizontal qui cache la fin d'un tableau
    Par touty dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 23/05/2008, 12h43
  3. Pause à la fin de l'execution
    Par doucs dans le forum Visual C++
    Réponses: 3
    Dernier message: 04/08/2006, 10h07
  4. [Processus][pause] attendre la fin ?
    Par MrDuChnok dans le forum API standards et tierces
    Réponses: 4
    Dernier message: 19/07/2004, 13h51

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo