Tooltip using plain Javascript

Developer
Size
1,825 Kb
Views
12,144

How do I make an tooltip using plain javascript?

What is a tooltip using plain javascript? How do you make a tooltip using plain javascript? This script and codes were developed by Victor Yan on 05 January 2023, Thursday.

Tooltip using plain Javascript Previews

Tooltip using plain Javascript - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tooltip using plain Javascript</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h2 style="margin-left: 50px">Tooltip using plain Javascript<br>Try to move your mouse over the name box</h2>
<div class = "name" onmouseover="show(tooltip1)" onmouseout="hide(tooltip1)">
NAME <div class = "tooltip" id= "tooltip1"> PROFILE DETAILS </div>
</div>
<div class = "name" onmouseover="show(tooltip2)" onmouseout="hide(tooltip2)">
NAME 2 <div class = "tooltip" id= "tooltip2"> PROFILE DETAILS 2 </div>
</div>
<div class = "name" onmouseover="show(tooltip3)" onmouseout="hide(tooltip3)">
NAME 3 <div class = "tooltip" id= "tooltip3"> PROFILE DETAILS 3 </div>
</div> <script src="js/index.js"></script>
</body>
</html>

Tooltip using plain Javascript - Script Codes CSS Codes

.name{ float:left; margin-top:20px; margin-left:50px; margin-right:50px; margin-bottom:50px; border:1px solid black;
}
.tooltip{ position:absolute; margin:5px; width:200px; height:50px; border:1px solid black; display:none;
}

Tooltip using plain Javascript - Script Codes JS Codes

function show (elem) { elem.style.display="block";
}
function hide (elem) { elem.style.display="";
}
Tooltip using plain Javascript - Script Codes
Tooltip using plain Javascript - Script Codes
Home Page Home
Developer Victor Yan
Username tipsoftheday
Uploaded January 05, 2023
Rating 3
Size 1,825 Kb
Views 12,144
Do you need developer help for Tooltip using plain Javascript?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Victor Yan (tipsoftheday) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!