Last change
on this file since 3681 was
3681,
checked in by grum, 15 years ago
|
Add plugin Advanced Menu Manager 2.1.0
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"} |
---|
2 | |
---|
3 | <!-- random picture menu bar --> |
---|
4 | <dt>{$block->get_title()}</dt> |
---|
5 | |
---|
6 | {literal} |
---|
7 | <script type="text/javascript"> |
---|
8 | //var divnum = 1; |
---|
9 | //var divprec = 0; |
---|
10 | |
---|
11 | function init() |
---|
12 | { |
---|
13 | $("#iamm_ill0").hide(); |
---|
14 | //$("#iamm_ill1").hide(); |
---|
15 | } |
---|
16 | |
---|
17 | function getRandomPicture() |
---|
18 | { |
---|
19 | //divprec=divnum; |
---|
20 | //divnum=1-divnum; |
---|
21 | $.get("./index.php", {ajaxfct:"randompic"}, |
---|
22 | function (data) |
---|
23 | { |
---|
24 | $("#iamm_ill0").fadeTo('slow', 0, function () |
---|
25 | { |
---|
26 | $("#iamm_ill0").html(data); |
---|
27 | $("#iammrpic").load( function () { |
---|
28 | $("#irandompicdd").animate({height: ($("#iamm_ill0").height())+"px"}, "normal", function () |
---|
29 | { |
---|
30 | $("#iamm_ill0").fadeTo('slow', 1, function () |
---|
31 | { |
---|
32 | $("#irandompicdd").animate({height: this.clientHeight+"px"}, "normal"); |
---|
33 | }); |
---|
34 | }); |
---|
35 | } ); |
---|
36 | } ); |
---|
37 | } |
---|
38 | ); |
---|
39 | } |
---|
40 | </script> |
---|
41 | {/literal} |
---|
42 | |
---|
43 | <dd id="irandompicdd" class="randompicdd"> |
---|
44 | <div id="iamm_ill0" class="illustration ammillustration"></div> |
---|
45 | <!--<div id="iamm_ill1" class="illustration ammillustration"></div>--> |
---|
46 | </dd> |
---|
47 | |
---|
48 | <script type="text/javascript"> |
---|
49 | getRandomPicture(); |
---|
50 | {if $block->data.delay > 0 } |
---|
51 | var vIntervalID = window.setInterval(getRandomPicture, {$block->data.delay}); |
---|
52 | {/if} |
---|
53 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.