Last change
on this file since 242 was
80,
checked in by guille, 16 years ago
|
el plugin completo
|
-
Property svn:executable set to
*
|
File size:
785 bytes
|
Line | |
---|
1 | $(document).ready(function(){ |
---|
2 | |
---|
3 | // cache la liste des menus et declinaisons, ajoute un onclick, deroule si clicque |
---|
4 | $(".liste-declinaison").hide(); |
---|
5 | $(".declinaison").each(function(){ |
---|
6 | if( $(this).attr("checked")==true){ |
---|
7 | $(this).parent().show(); |
---|
8 | } |
---|
9 | |
---|
10 | }); |
---|
11 | |
---|
12 | $(".vignette-autres-theme").css({ display:"block",position:"absolute",top:"0",left:"0px" }); |
---|
13 | |
---|
14 | $(".conteneur-theme .theme").each(function(){ |
---|
15 | $(this).css("cursor","pointer"); |
---|
16 | $(this).click(function(){ |
---|
17 | $(this).next().toggle(); |
---|
18 | }); |
---|
19 | $(this).hover(function(e){ |
---|
20 | lien=$(this).attr("rel"); |
---|
21 | $("body").after("<img src='"+ lien +"' id='lavignette' />"); |
---|
22 | posbasex=e.pageX; |
---|
23 | posbasey=e.pageY; |
---|
24 | $('#lavignette').css("top", (posbasey -20) + "px").css("left", (posbasex -320) + "px"); |
---|
25 | },function(){ |
---|
26 | $("#lavignette").remove(); |
---|
27 | }); |
---|
28 | |
---|
29 | }); |
---|
30 | |
---|
31 | |
---|
32 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.