diff --git a/public/javascripts/noosfero-show-help.js b/public/javascripts/noosfero-show-help.js
index b876bf3..a1c9a8e 100644
--- a/public/javascripts/noosfero-show-help.js
+++ b/public/javascripts/noosfero-show-help.js
@@ -13,20 +13,25 @@ function mouseHelpOnOff() {
document.cookie = "mouseHelpTurnOn="+ pageHelp.info.updateBox + expires +"; path=/";
}
-function noosferoHelpInit(confirm_msg, rejected_msg) {
- if ( document.cookie.indexOf("mouseHelpTurnOn=") > -1 ) {
- if ( document.cookie.indexOf("mouseHelpTurnOn=true") > -1 ) {
- mouseHelpOnOff();
- }
- } else {
- var date = new Date();
- date.setTime( date.getTime() + ( 60*24*60*60*1000 ) );
- var expires = "; expires=" + date.toGMTString();
- document.cookie = "mouseHelpTurnOn=false" + expires +"; path=/";
- if ( confirm(confirm_msg) ) {
- mouseHelpOnOff();
- } else {
- alert(rejected_msg)
- }
+function mouseHelpOn() {
+ mouseHelpOnOff();
+ new Effect.Fade( "noticeAboutHelp" );
+}
+
+function mouseHelpOff() {
+ var date = new Date();
+ date.setTime( date.getTime() + ( 60*24*60*60*1000 ) );
+ var expires = "; expires=" + date.toGMTString();
+ document.cookie = "mouseHelpTurnOn=false" + expires +"; path=/";
+ new Effect.Fade( "noticeAboutHelp" );
+}
+
+if ( document.cookie.indexOf("mouseHelpTurnOn=") > -1 ) {
+ if ( document.cookie.indexOf("mouseHelpTurnOn=true") > -1 ) {
+ mouseHelpOnOff();
}
}
+else {
+ new Effect.Appear( "noticeAboutHelp", {duration:2} );
+}
+
diff --git a/public/javascripts/show-mouse-help.js b/public/javascripts/show-mouse-help.js
index b2dbd35..9da8369 100644
--- a/public/javascripts/show-mouse-help.js
+++ b/public/javascripts/show-mouse-help.js
@@ -114,21 +114,26 @@ function getHelp( ev ) {
debug += " :: "+ el.nodeName +" "+ el.getAttribute("help");
debug += "
"+ pageHelp.myFrame.src +" x:"+ mX +" y:"+ mY;
var txt = el.getAttribute("help");
- if ( txt ) {
- box.style.display = "block";
- if ( txt != "FALSE" ) {
- if ( /^#.+/.test( txt ) ) {
- var txtEl = el.ownerDocument.getElementById( txt.replace(/#/,"") );
- if ( txtEl ) txt = txtEl.innerHTML;
+ if ( txt != box.txt ) {
+ if ( txt ) {
+ helpWow(true);
+ box.style.display = "block";
+ if ( txt != "FALSE" ) {
+ var realTxt = txt;
+ if ( /^#.+/.test( txt ) ) {
+ var txtEl = el.ownerDocument.getElementById( txt.replace(/#/,"") );
+ if ( txtEl ) realTxt = txtEl.innerHTML;
+ }
+ box.content.innerHTML = '
'+ realTxt +'
'+ + ''+ txt +'
'+ - '