From 0dc231935e17a40c938f1a6dd93767a158d6faca Mon Sep 17 00:00:00 2001 From: mxi1 Date: Thu, 3 Sep 2009 07:23:32 +0000 Subject: [PATCH] animation effects are added for
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4089 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/css/main.css | 7 +++++-- xCAT-UI/js/xcat.js | 14 ++++++++++++++ xCAT-UI/lib/monitor_display.php | 9 ++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/xCAT-UI/css/main.css b/xCAT-UI/css/main.css index d2bbfd28c..f42c89ced 100644 --- a/xCAT-UI/css/main.css +++ b/xCAT-UI/css/main.css @@ -363,7 +363,7 @@ padding:10px 2px; display: block; } -#tips { +.tips { margin-right: 10px; margin-left: 10px; padding: 10px; @@ -373,6 +373,9 @@ padding:10px 2px; border-bottom: 1px dotted #555; /*display: none;*/ } +.tips_head { + color: #339933; +} #monlist_table { margin-right: 30px; @@ -478,4 +481,4 @@ padding:10px 2px; float: left; background-color:#FAF8CC; text-align: left; -} \ No newline at end of file +} diff --git a/xCAT-UI/js/xcat.js b/xCAT-UI/js/xcat.js index 11a62fcc1..aec084f80 100644 --- a/xCAT-UI/js/xcat.js +++ b/xCAT-UI/js/xcat.js @@ -524,5 +524,19 @@ function rmc_monshow_back_to_opts() { $("#monshow_opt").show("slow"); } +function handle_tips() { + ///add dynamic effects for
+ $(".tips > .tips_content").hide(); + $(".tips > .tips_head").click(function() { + if($(".tips > .tips_content").css("display") == "none") { + $(".tips > .tips_head").html("Tips:(Click me to remove tips)"); + $(".tips > .tips_content").show("slow"); + }else { + $(".tips > .tips_head").html("Tips:(Click me to display tips)"); + $(".tips > .tips_content").hide("slow"); + } + }); +} + // load progress bar myBar.loaded('xcat.js'); diff --git a/xCAT-UI/lib/monitor_display.php b/xCAT-UI/lib/monitor_display.php index e30937d2f..db9455153 100644 --- a/xCAT-UI/lib/monitor_display.php +++ b/xCAT-UI/lib/monitor_display.php @@ -52,11 +52,18 @@ function displayTips($tips) // "Click the name of each plugin, you can get the plugin's description.", // "You can also select one plugin, then you can set node/application status monitoring for the selected plugin.", //} - echo '

Tips:

'; + echo '
'; + echo '

Tips:(Click me to display tips)

'; + echo '
'; foreach ($tips as $tip) { echo "

$tip

"; echo "\n"; } + echo "
"; + + echo ''; echo '
'; return 0; }