-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fx effect를 위한 루틴 추가 * 그러나 몇가지 이유로 켜놓지는 않습니다.
- Loading branch information
Showing
6 changed files
with
114 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/// Copyright (c) 2004-2008, Tatter & Company / Tatter & Friends. | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
|
||
var szFull = 100; | ||
var origMenuSize = {}; | ||
|
||
var mainMenuItems = $$("#main-menu li"); | ||
var mainMenuFx = new Fx.Elements(mainMenuItems, {wait: false, duration: 200, transition: Fx.Transitions.quadOut}); | ||
|
||
mainMenuItems.each(function(menus, i) { | ||
origMenuSize[i] = menus.getStyle("width").toInt(); | ||
}); | ||
|
||
mainMenuItems.each(function(kwick, i) { | ||
kwick.addEvent("mouseenter", function(event) { | ||
var obj = {}; | ||
if(i != 0) { | ||
obj[i] = {'width': [origMenuSize[i], origMenuSize[i]+30]}; | ||
} else { | ||
obj[i] = origMenuSize[i]; | ||
} | ||
mainMenuItems.each(function(other, j) { | ||
if(i != j) { | ||
var w = other.getStyle("width").toInt(); | ||
obj[j] = {'width': [w, origMenuSize[j]]}; | ||
} | ||
}); | ||
mainMenuFx.start(obj); | ||
}); | ||
}); | ||
|
||
$("mainMenuItems").addEvent("mouseleave", function(event) { | ||
var obj = {}; | ||
mainMenuItems.each(function(kwick, i) { | ||
obj[i] = {'width': [kwick.getStyle("width").toInt(), origMenuSize[i]]}; | ||
}); | ||
mainMenuFx.start(obj); | ||
}); |