Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 * fx effect를 위한 루틴 추가
 * 그러나 몇가지 이유로 켜놓지는 않습니다.
  • Loading branch information
inureyes committed Mar 26, 2008
1 parent c58eb86 commit f28093d
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
$service['reader'] = true;
$service['flashclipboardpoter'] = true;
$service['allowBlogVisibilitySetting'] = true;
$service['effect'] = false;
//$service['flashuploader'] = false;

// Map port setting.
Expand Down
2 changes: 1 addition & 1 deletion lib/model/blog.fx.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function setDetailPanel($id,$type = 'section') {
}

function activateDetailPanelJS() {
global $fxList;
global $fxList, $service;
$jsVal = '';
if(!empty($fxList)) {
foreach($fxList as $fxItem) {
Expand Down
7 changes: 7 additions & 0 deletions lib/piece/owner/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,12 @@
?>
//]]>
</script>
<?php
if($service['effect'] == true) {
?>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/owner.fx.js"></script>
<?php
}
?>
</body>
</html>
5 changes: 2 additions & 3 deletions lib/piece/owner/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@
<script type="text/javascript" src="<?php echo $service['path'];?>/script/byTextcube.js"></script>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/EAF4.js"></script>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/common2.js"></script>
<!-- <script type="text/javascript" src="<?php echo $service['path'];?>/script/gallery.js"></script>-->
<script type="text/javascript" src="<?php echo $service['path'];?>/script/owner.js"></script>
<?php
if($blogMenu['topMenu'] != 'entry') {
if(!in_array($blogMenu['contentMenu'],array('post','edit'))) {
?>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/mootools.js"></script>
<?php
Expand All @@ -231,7 +230,7 @@
<?php
}
}
if($blogMenu['topMenu']=='entry') {
if($blogMenu['topMenu']=='entry' && in_array($blogMenu['contentMenu'],array('post','edit'))) {
?>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/editor3.js"></script>
<?php
Expand Down
66 changes: 64 additions & 2 deletions script/mootools.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions script/owner.fx.js
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);
});

0 comments on commit f28093d

Please sign in to comment.