<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> No title page </title>
<Style type = "text/CSS">
# Tooltip {border: 1px solid #999; Background: Silver; color: # FFF; padding: 5px; display: none; position: absolute ;}
</Style>
<SCRIPT type = "text/JavaScript" src = "JS/jquery-1.2.6.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
$ (Function (){
VaR x = 0;
Var y = 20;
$ ("A. tooltip"). Mouseover (function (e ){
This. mytitle = This. title;
This. Title = "";
VaR tooltip = "<Div id = 'tooltip '>" + this. mytitle + "</div> ";
$ ("Body"). append (tooltip );
$ ("# Tooltip ")
. CSS ({
"TOP": (E. Pagey-x) + "PX ",
"Left": (E. pagex + Y) + "PX"
}). Show ("fast ");
}). Mouseout (function (){
This. Title = This. mytitle;
$ ("# Tooltip"). Remove ();
}). Mousemove (function (e ){
$ ("# Tooltip ")
. CSS ({
"TOP": (E. Pagey-x) + "PX ",
"Left": (E. pagex + Y) + "PX"
});
});
});
</SCRIPT>
</Head>
<Body>
<P> <a href = "#" class = "tooltip" Title = "this is my hyperlink prompt 1."> tip 1 </a> </P>
<P> <a href = "#" class = "tooltip" Title = "this is my hyperlink prompt 2."> Tip 2 </a> </P>
<P> <a href = "#" Title = "NOTE 1."> Note 1 </a> </P>
<P> <a href = "#" Title = "NOTE 2."> Note 2 </a> </P>
</Body>
</Html>