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; }