diff --git a/resources/library/interactive/WebBrowser.wgt/css/main.css b/resources/library/interactive/WebBrowser.wgt/css/main.css index 6636c1e5..f0104c19 100644 --- a/resources/library/interactive/WebBrowser.wgt/css/main.css +++ b/resources/library/interactive/WebBrowser.wgt/css/main.css @@ -179,4 +179,20 @@ body{ width:193px; background-image:url(../imgs/right.png); background-repeat:no-repeat; +} + +.popupWordInfo{ + position: absolute; + display: none; + width: 100px; + height: 17px; + top: 0; + left: 0; + text-align: center; + border: 1px solid #B9B9B9; + background-color: #eaebeb; + color: black; + font-family: Verdana,Arial,Helvetica,sans-serif; + font-size: small; + z-index: 100; } \ No newline at end of file diff --git a/resources/library/interactive/WebBrowser.wgt/index.html b/resources/library/interactive/WebBrowser.wgt/index.html index 5320f4c8..19337985 100644 --- a/resources/library/interactive/WebBrowser.wgt/index.html +++ b/resources/library/interactive/WebBrowser.wgt/index.html @@ -22,6 +22,7 @@ $(document).ready(function(){ //var resizer; // Timer //var resizerIndex; + var popupFlag = false; var currentHistory = 0; var references = new Array(); var globalWidth = 850; @@ -37,7 +38,8 @@ var resizer; // Timer var resizerIndex; - + var popupText = $("
").appendTo("body"); + resizerIndex = 0; if(window.sankore){ @@ -66,7 +68,53 @@ $("#search-button").trigger("click"); } }); - + + $("#search-button").mouseover(function(evt){ + popupFlag = true; + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13) + .css({width:"100px"}) + .text("Go to the site") + .show("fast", function(){ + if(!popupFlag) + popupText.hide(); + }); + }); + + $("#back-button").mouseover(function(evt){ + popupFlag = true; + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13) + .css({width:"90px"}) + .text("Previous site") + .show("fast", function(){ + if(!popupFlag) + popupText.hide(); + }); + }); + + $("#forward-button").mouseover(function(evt){ + popupFlag = true; + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13) + .css({width:"70px"}) + .text("Next site") + .show("fast", function(){ + if(!popupFlag) + popupText.hide(); + }); + }); + + $("#search-button, #back-button, #forward-button").mousemove(function(evt){ + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13); + }); + + $("#search-button, #back-button, #forward-button").mouseout(function(evt){ + popupText.hide(); + popupFlag = false; + }); + $("#textbox").keypress(function(e) { if(e.keyCode == 13) { $("#search-button").trigger("click"); diff --git a/resources/library/interactive/Wikipedia.wgt/config.xml b/resources/library/interactive/Wikipedia.wgt/config.xml index 449aa286..d1d4102c 100644 --- a/resources/library/interactive/Wikipedia.wgt/config.xml +++ b/resources/library/interactive/Wikipedia.wgt/config.xml @@ -3,8 +3,8 @@ xmlns:ub="http://uniboard.mnemis.com/widgets" identifier="http://uniboard.mnemis.com/widgets/wikipedia" version="1.2" - width="350" - height="450" + width="370" + height="400" ub:resizable = "true">