Kiln » HgInit » HgInit
Clone URL:  
basic.js
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
jQuery(document).ready( function(){ $(".navbutton").hover( function() { if (!($(this).hasClass('selected'))) { $(this).children(".bottom").animate({ top: '65px' }, 200) }; }, function() { if (!($(this).hasClass('selected'))) { $(this).children(".bottom").animate({ top: '30px' }, 200) }; } ); $('html').click( function() { $('div#kilnFlyOut').animate({top: '-57px'}, 600); $('div#kilnFlyOut').removeClass('isOut'); } ); $("div#kilnFlyOut").click( function(e) { if ($.browser.msie) { var fAllow = true; try { if (parseFloat($.browser.version) < 7.0) fAllow = false;} catch(e) {fAllow = false;}; if (!fAllow) { window.location = 'http://kilnhg.com'; return; } } e.stopPropagation(); if (!($('div#kilnFlyOut').hasClass('isOut'))) { $(this).animate({top: '25px'}, 600); $('div#kilnFlyOut').addClass('isOut'); } else { $('div#kilnFlyOut').animate({top: '-57px'}, 600); $('div#kilnFlyOut').removeClass('isOut'); } } ); });