aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/tooltipfix.htc
blob: 4ce943af19817a44e0d7c56477796136fe754407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<public:attach event="onmouseover" onevent="montrer()" />
<public:attach event="onmouseout"  onevent="cacher()" />

<script langage=javascript>
var thisImg = this;
var thisTitle = this.title;
var thisAlt = this.alt;
var thisA = this.parentNode;
var aTitle = thisA.title;

function montrer()
{
  if (aTitle)
  {
    thisAlt=thisImg.alt;
    thisImg.alt=aTitle;
    thisImg.title=aTitle;
  }
  return;
}

function cacher() {
  if (thisAlt)
  {
    thisImg.alt=thisAlt;
    thisImg.title=thisTitle;
  }
  return;
}
</script>