UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

35 lines (32 loc) 2.3 kB
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>jqxTooltip supports 12 built-in position modes: "top, bottom, left, right, top-left, bottom-left, top-right, bottom-right, absolute, mouse, mouseenter, default". In this demo, the tooltip for the first movie will be displayed from its 'left' side. The tooltip for the second movie will be displayed below the picture and the tooltip for the third movie will be displayed on its 'right' side. </title> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxtooltip.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#filmPicture1").jqxTooltip({ content: 'The Amazing Spider-man', position: 'left', name: 'movieTooltip'}); $("#filmPicture2").jqxTooltip({ content: 'The Avengers', position: 'bottom', name: 'movieTooltip'}); $("#filmPicture4").jqxTooltip({ content: 'Harry Potter and the Deathly Hallows', position: 'right', name: 'movieTooltip'}); }); </script> </head> <body> <div style="margin-left: 200px; width: 400px;" id="container"> <img style="margin: 8px;" src="../../../images/The_Amazng_Spider_Man.jpeg" id="filmPicture1" /><br /> <img style="margin: 8px;" src="../../../images/Harry_Potter_7_Part_1.jpg" id="filmPicture4" /><br /> <img style="margin: 8px;" src="../../../images/The_Avengers.jpg" id="filmPicture2" /><br /> </div> <div style="position: absolute; bottom: 5px; right: 5px;"> <a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a> </div> </body> </html>