0
help with javascript bubble text
I am trying to display a bubble with text when you click on a text. So far I am hard with it. any help? <span onclick="BubbleTalk('types are checked during compile time')">Static</span> <div id="Bubble" style="position: fixed; right: 250px; top: 200px; width:250px; height: 200px; visibility: hidden;"> <img src="bubble.png" alt="tip" height="200" width="250" style="position: fixed"> <p style="position: fixed; margin-left: 90px; margin-top: 80px;"></p> <script> function BubbleTalk(text) { var BBL = getElementById('Bubble'); BBL.style.visibility = 'visible'; BBL.p.innerHTML = text; }; </script>
4 Answers
+ 1
https://code.sololearn.com/WBW96bT2t9oC/?ref=app
0
No , no, this is not right. The text inside has to be the text you specified when you called the function. NOT "text".
0
Thank you very much