JQuery Tooltip Plugin
How do I make an jquery tooltip plugin?
What is a jquery tooltip plugin? How do you make a jquery tooltip plugin? This script and codes were developed by James Podles on 23 November 2022, Wednesday.
JQuery Tooltip Plugin - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>jQuery Tooltip Plugin</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { background: #314963; font-family: 'Helvetica Neue', 'Arial', sans-serif;
}
#tooltipme { color: #fafafa; border-radius: 4px; padding: 10px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; display: block; height: 1em; text-align: center; border: 2px solid #fafafa; width: 100px;
}
.tooltip { position: absolute; height: 2em; width: 100%; background-color: #fafafa; color: #444; display: none; border-radius: 4px; left: 0; top: -3em; padding-top: .5em; box-sizing: border-box;
}
.tooltip::after { content: ''; position: absolute; bottom: -10px; left: 45%; width: 0; height: 0; border-style: solid; border-width: 10px 10px 0 10px; border-color: #fafafa transparent transparent transparent;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <span id="tooltipme">Hello!</span> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
JQuery Tooltip Plugin - Script Codes CSS Codes
body { background: #314963; font-family: 'Helvetica Neue', 'Arial', sans-serif;
}
#tooltipme { color: #fafafa; border-radius: 4px; padding: 10px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; display: block; height: 1em; text-align: center; border: 2px solid #fafafa; width: 100px;
}
.tooltip { position: absolute; height: 2em; width: 100%; background-color: #fafafa; color: #444; display: none; border-radius: 4px; left: 0; top: -3em; padding-top: .5em; box-sizing: border-box;
}
.tooltip::after { content: ''; position: absolute; bottom: -10px; left: 45%; width: 0; height: 0; border-style: solid; border-width: 10px 10px 0 10px; border-color: #fafafa transparent transparent transparent;
}
JQuery Tooltip Plugin - Script Codes JS Codes
(function ($) { $.fn.tooltip = function(text) { this.append('<span class="tooltip">' + text + '</span>'); };
}(jQuery));
$('#tooltipme').tooltip('I am a tooltip!');
$('span').hover(function(){ $(this).children('.tooltip').toggle();
});
Developer | James Podles |
Username | jpod |
Uploaded | November 23, 2022 |
Rating | 3 |
Size | 2,968 Kb |
Views | 12,144 |
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!
Name | Size |
Adaptive Text Color | 2,874 Kb |
Envelope Email Form | 4,653 Kb |
Movie Marathon Calculator | 5,766 Kb |
SoundCloud CoverFlow | 3,430 Kb |
Stack of Cards | 2,633 Kb |
Band Name Generator | 2,840 Kb |
Scrambled City | 6,489 Kb |
Reading Progress Bar | 4,260 Kb |
Document Width Display | 2,580 Kb |
A Pen by James Podles | 2,656 Kb |
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!
Name | Username | Size |
Using Flickr API | MoyArt | 6,761 Kb |
SVG Text Masking | JMChristensen | 2,141 Kb |
Background Images | Jooonebug | 2,100 Kb |
Stylize Stories | Jvhti | 2,465 Kb |
Canvas Orbital Trails v2 | Jackrugile | 3,421 Kb |
A Pen by panstable | Panstable | 2,940 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Bootstrap 3 Price Table | Honglio | 2,655 Kb |
Front in Aracaju Logo Pure CSS | Shankarcabus | 2,581 Kb |
Border image | JohnRiordan | 2,120 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!