How to create popop window with Css(or mayabe JavaScript) in the code I've written?

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How to create popop window with Css(or mayabe JavaScript) in the code I've written?

Hi everyone, I'm new here. I've written a code that contains CSS & HTML & JavaScript , in the code below There must be 4 buttons next to an area , & by clicking each buttons , you should see different information [using JavaScript] , but here I don't want to replace the new information by previous content of <p> tag! I want to use a popup window [similar to alert or text box somehow] to show the content of my buttons, I need the exact code to see if the result is as the same as what I've wanted or not, so I'll be glad to write me the exact code & complete my code below :

</body>
</html>
<script>
function myFunction(v)
{
var r = document.getElementsByClassName("bt");
var x = document.getElementById("demo");
switch (v)
{
case 1:
x.innerHTML="Farnoosh Hejazi is one of the webdevelopers works at Datis Netwrok, her field is JavaScript.";
break;
case 2:
x.innerHTML="Hamed is one of the webdevelopers works at Datis Netwrok, his field is everything!.";
break;
case 3:
x.innerHTML="Shayan is one of the webdevelopers works at Datis Netwrok, his field is HTML & CSS.";
break;
case 4:
x.innerHTML="Majid is one of the webdevelopers works at Datis Netwrok, his field is Networking.";
break;
default:
break;
}
}

OK, but at least you should know what popup window is, popup window is a window similar to "alert" , but with different displaying, that you can use CSS to create a special style window. & in that window you can show whatever kind of information, now make me sure if you've already get what I mean. Thanks

aha, for that part I've said "...I need the exact code to see if the result is as the same as what I've wanted or not..." : I meant that if you find out any solution or answer , please rewrite the full code for me

Yes , Of curse , I know , But I'm novice , indeed I know how to search but actually I need a stronger start to lessen the gap between my self & other members we're working at somewhere so speedy , it's not a method that I used to! however I'll come herein this forum for very often , but thanks for advice (but I didn't ever mean to do my homework guys! just I wanted a quick reply) Thanks every one