36 lines
No EOL
1.4 KiB
HTML
36 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<link type="text/css" rel="stylesheet" href="../../../build/fonts/fonts.css">
|
|
<link type="text/css" rel="stylesheet" href="../../../build/reset/reset.css">
|
|
|
|
<script type="text/javascript" src="../../../build/yahoo/yahoo.js"></script>
|
|
<script type="text/javascript" src="../../../build/event/event.js" ></script>
|
|
<script type="text/javascript" src="../../../build/dom/dom.js" ></script>
|
|
|
|
<script type="text/javascript" src="../../../build/container/container.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="../../../build/container/assets/container.css">
|
|
|
|
<style>
|
|
#ctx { background:orange;width:200px;height:200px; }
|
|
</style>
|
|
|
|
<script>
|
|
YAHOO.namespace("example.container");
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div id="ctx">Hover over me to see a Tooltip!</div>
|
|
|
|
<a id="link" href="http://www.yahoo.com/" title="Do You Yahoo?">Hover over me to see a Tooltip!</a>
|
|
|
|
<script type="text/javascript">
|
|
YAHOO.example.container.tt1 = new YAHOO.widget.Tooltip("tt1", { context:"ctx", text:"My text was set using the 'text' configuration property" });
|
|
YAHOO.example.container.tt2 = new YAHOO.widget.Tooltip("tt2", { context:"link" });
|
|
</script>
|
|
|
|
</body>
|
|
</html> |