source: branches/1.6/template-common/tooltipfix.htc @ 27569

Last change on this file since 27569 was 1478, checked in by chrisaga, 18 years ago
  • Property svn:keywords set to Author Date Id Revision
File size: 523 bytes
Line 
1<public:attach event="onmouseover" onevent="montrer()" />
2<public:attach event="onmouseout"  onevent="cacher()" />
3
4<script langage=javascript>
5var thisImg = this;
6var thisTitle = this.title;
7var thisAlt = this.alt;
8var thisA = this.parentNode;
9var aTitle = thisA.title;
10
11function montrer()
12{
13  if (aTitle)
14  {
15    thisAlt=thisImg.alt;
16    thisImg.alt=aTitle;
17    thisImg.title=aTitle;
18  }
19  return;
20}
21
22function cacher() {
23  if (thisAlt)
24  {
25    thisImg.alt=thisAlt;
26    thisImg.title=thisTitle;
27  }
28  return;
29}
30</script>
31
Note: See TracBrowser for help on using the repository browser.