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>

19th Oct 2018, 7:32 PM
Stanislav Vladev
Stanislav Vladev - avatar
4 Respostas
22nd Oct 2018, 7:21 PM
Mirko Klotzsche
Mirko Klotzsche - avatar
+ 1
https://code.sololearn.com/WBW96bT2t9oC/?ref=app
21st Oct 2018, 10:19 PM
Mirko Klotzsche
Mirko Klotzsche - avatar
0
No , no, this is not right. The text inside has to be the text you specified when you called the function. NOT "text".
22nd Oct 2018, 12:40 AM
Stanislav Vladev
Stanislav Vladev - avatar
0
Thank you very much
22nd Oct 2018, 10:30 PM
Stanislav Vladev
Stanislav Vladev - avatar