upgrading to newer versions
This commit is contained in:
parent
e1a0b462a1
commit
4d9af2c691
1271 changed files with 0 additions and 539033 deletions
|
|
@ -1,88 +0,0 @@
|
|||
<!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">
|
||||
<title>YUI Container - Tooltip: One Tooltip, Many Elements (YUI Library)</title>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="../../../build/reset-fonts-grids/reset-fonts-grids.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../docs/assets/dpSyntaxHighlighter.css">
|
||||
<link type="text/css" rel="stylesheet" href="../assets/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="doc3" class="yui-t5">
|
||||
<div id="hd">
|
||||
<a href="http://developer.yahoo.com/yui" id="logo"><div></div></a>
|
||||
<h1>YUI Container: Tooltip: One Tooltip, Many Elements</h1>
|
||||
</div>
|
||||
|
||||
<div id="bd">
|
||||
|
||||
<div id="toc" class="yui-b">
|
||||
<ul>
|
||||
<li class="sect"><a href="../index.html">YUI Container: Tutorials</a></li>
|
||||
|
||||
<li class="item"><a href="../module/1.html">Module: Quickstart</a></li>
|
||||
<li class="item"><a href="../overlay/1.html">Overlay: Quickstart</a></li>
|
||||
<li class="item"><a href="../tooltip/1.html">Tooltip: Quickstart</a></li>
|
||||
<li class="item selected"><a href="1.html">Tooltip: One Tooltip, Many Elements</a></li>
|
||||
<li class="child active"><a href="1.html">Setting up the Tooltip</a></li>
|
||||
<li class="child"><a href="2.html">Functional Example</a></li>
|
||||
<li class="item"><a href="../panel/1.html">Panel: Quickstart</a></li>
|
||||
<li class="item"><a href="../panelskin/1.html">Panel: Advanced Skinning using CSS</a></li>
|
||||
<li class="item"><a href="../panelwait/1.html">Panel: Creating a 'Loading' Popup</a></li>
|
||||
<li class="item"><a href="../panelphotobox/1.html">PhotoBox: Subclassing Panel</a></li>
|
||||
<li class="item"><a href="../panelresize/1.html">ResizePanel: Creating a Resizable Panel</a></li>
|
||||
<li class="item"><a href="../dialog/1.html">Dialog Quickstart</a></li>
|
||||
<li class="item"><a href="../simpledialog/1.html">SimpleDialog Quickstart</a></li>
|
||||
<li class="item"><a href="../effect/1.html">Using ContainerEffect</a></li>
|
||||
<li class="item"><a href="../overlaymanager/1.html">Using OverlayManager</a></li>
|
||||
<li class="item"><a href="../keylistener/1.html">Using KeyListener</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<h1 class="first">Setting up the Tooltip</h1>
|
||||
|
||||
<p>Tooltip can also be configured to reuse one Tooltip for multiple context elements with "title" attributes — by default, Tooltip will autopopulate its "text" configuration property with the contents of its context element's "title attribute. Reuse of Tooltip instances is an advisable performance enhancement strategy, especially when you have a large number of context elements that need to invoke Tooltips.</p>
|
||||
|
||||
<p>In this tutorial, we will dynamically create 25 links, and then associate a single Tooltip with all of the generated links. This is achieved by setting the <em>context</em> property to an array of element ids:</p>
|
||||
|
||||
<textarea name="code" class="JScript" cols="60" rows="1">
|
||||
var contextElements = [];
|
||||
|
||||
for (var i=1;i<=25;i++) {
|
||||
var a = document.createElement("a");
|
||||
a.id = "link" + i;
|
||||
a.href = "http://www.yahoo.com/";
|
||||
a.title = "This is link number " + i;
|
||||
a.innerHTML = i + ". Hover over me to see my Tooltip";
|
||||
|
||||
document.body.appendChild(a);
|
||||
document.body.appendChild(document.createElement("br"));
|
||||
document.body.appendChild(document.createElement("br"));
|
||||
|
||||
contextElements[contextElements.length] = a.id;
|
||||
}
|
||||
|
||||
YAHOO.example.container.tt = new YAHOO.widget.Tooltip("tt", { context:contextElements } );
|
||||
</textarea>
|
||||
<div id="stepnav">
|
||||
<a class="next" href="2.html">Continue to <em>Functional Example</em> ></a> </div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="ft"> </div>
|
||||
</div>
|
||||
|
||||
<script src="../../../docs/assets/dpSyntaxHighlighter.js"></script>
|
||||
<script language="javascript">
|
||||
dp.SyntaxHighlighter.HighlightAll('code');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
<!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">
|
||||
<title>YUI Container - Tooltip: One Tooltip, Many Elements (YUI Library)</title>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="../../../build/reset-fonts-grids/reset-fonts-grids.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../docs/assets/dpSyntaxHighlighter.css">
|
||||
<link type="text/css" rel="stylesheet" href="../assets/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="doc3" class="yui-t5">
|
||||
<div id="hd">
|
||||
<a href="http://developer.yahoo.com/yui" id="logo"><div></div></a>
|
||||
<h1>YUI Container: Tooltip: One Tooltip, Many Elements</h1>
|
||||
</div>
|
||||
|
||||
<div id="bd">
|
||||
|
||||
<div id="toc" class="yui-b">
|
||||
<ul>
|
||||
<li class="sect"><a href="../index.html">YUI Container: Tutorials</a></li>
|
||||
|
||||
<li class="item"><a href="../module/1.html">Module: Quickstart</a></li>
|
||||
<li class="item"><a href="../overlay/1.html">Overlay: Quickstart</a></li>
|
||||
<li class="item"><a href="../tooltip/1.html">Tooltip: Quickstart</a></li>
|
||||
<li class="item selected"><a href="1.html">Tooltip: One Tooltip, Many Elements</a></li>
|
||||
<li class="child"><a href="1.html">Setting up the Tooltip</a></li>
|
||||
<li class="child active"><a href="2.html">Functional Example</a></li>
|
||||
<li class="item"><a href="../panel/1.html">Panel: Quickstart</a></li>
|
||||
<li class="item"><a href="../panelskin/1.html">Panel: Advanced Skinning using CSS</a></li>
|
||||
<li class="item"><a href="../panelwait/1.html">Panel: Creating a 'Loading' Popup</a></li>
|
||||
<li class="item"><a href="../panelphotobox/1.html">PhotoBox: Subclassing Panel</a></li>
|
||||
<li class="item"><a href="../panelresize/1.html">ResizePanel: Creating a Resizable Panel</a></li>
|
||||
<li class="item"><a href="../dialog/1.html">Dialog Quickstart</a></li>
|
||||
<li class="item"><a href="../simpledialog/1.html">SimpleDialog Quickstart</a></li>
|
||||
<li class="item"><a href="../effect/1.html">Using ContainerEffect</a></li>
|
||||
<li class="item"><a href="../overlaymanager/1.html">Using OverlayManager</a></li>
|
||||
<li class="item"><a href="../keylistener/1.html">Using KeyListener</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<h1 class="first">Functional Example</h1>
|
||||
|
||||
<p>You can see the full example in action below:</p>
|
||||
|
||||
<div id="solution" style="">
|
||||
<iframe src="solution.html" style="width:96%;height:325px"></iframe>
|
||||
<a href="solution.html" target="_blank">Open this example in a new window</a>
|
||||
</div>
|
||||
<div id="stepnav">
|
||||
<a class="back" href="1.html">< Back to <em>Setting up the Tooltip</em></a> </div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="ft"> </div>
|
||||
</div>
|
||||
|
||||
<script src="../../../docs/assets/dpSyntaxHighlighter.js"></script>
|
||||
<script language="javascript">
|
||||
dp.SyntaxHighlighter.HighlightAll('code');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
<!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">
|
||||
|
||||
<script>
|
||||
YAHOO.namespace("example.container");
|
||||
|
||||
function init() {
|
||||
var contextElements = [];
|
||||
|
||||
for (var i=1;i<=25;i++) {
|
||||
var a = document.createElement("a");
|
||||
a.id = "link" + i;
|
||||
a.href = "http://www.yahoo.com/";
|
||||
a.title = "This is link number " + i;
|
||||
a.innerHTML = i + ". Hover over me to see my Tooltip";
|
||||
|
||||
document.body.appendChild(a);
|
||||
document.body.appendChild(document.createElement("br"));
|
||||
document.body.appendChild(document.createElement("br"));
|
||||
|
||||
contextElements[contextElements.length] = a.id;
|
||||
}
|
||||
|
||||
YAHOO.example.container.tt = new YAHOO.widget.Tooltip("tt", { context:contextElements } );
|
||||
}
|
||||
|
||||
YAHOO.util.Event.addListener(window, "load", init);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body></body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue