Powered by Blogger.

Examples 3 of HelpBalloon.js

Toggling Balloons Externally


Use the show and hide methods to toggle the balloons externally: <script type="text/javascript"> var hb5 = new HelpBalloon({ title: 'Non-Ajax Balloon', content: 'This is an example of static ' + 'balloon content.' }); </script> <button id="btnShow" onclick="hb5.show();">Show</button> <!-- Prototype Event.observe method --> <button id="btnHide">Hide</button> <script type="text/javascript"> Event.observe('btnHide', 'click', hb5.hide.bind(hb5)); </script>

Bannerad

Artikel Terpopuler

Tags

Blogumulus by Roy Tanck and Amanda Fazani