source: branches/rsr.v5.1.1/web/app/out/dist/js/content/e_accueil.js

Last change on this file was 1, checked in by dj3c1t, 13 years ago

import initial

File size: 875 bytes
Line 
1var parts = ["son", "news", "association", "contact", "forum"];
2var current_part = 0;
3var RUNNING = true;
4
5$(document).ready
6( function()
7  { $(".accueil_block").hover
8    ( function()
9      { RUNNING = false;
10        $("#etoile_" + parts[current_part]).fadeOut(300);
11        $(this).find(".accueil_info").fadeIn(300);
12        var id = $(this).get(0).id.substr(7);
13        $("#etoile" + id).fadeIn(300);
14      },
15      function()
16      { $(this).find(".accueil_info").fadeOut(300);
17        var id = $(this).get(0).id.substr(7);
18        $("#etoile" + id).fadeOut(300);
19      }
20    );
21    //setTimeout("next_part()", 300);
22  }
23);
24
25function next_part()
26{ if(RUNNING)
27  { $("#etoile_" + parts[current_part]).fadeOut(450);
28    current_part++;
29    if(current_part > 4) current_part = 0;
30    $("#etoile_" + parts[current_part]).fadeIn(300);
31    setTimeout("next_part()", 200);
32  }
33}
Note: See TracBrowser for help on using the repository browser.